<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://linux-vserver.at/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://linux-vserver.at/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Datacompboy</id>
		<title>Linux-VServer - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://linux-vserver.at/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Datacompboy"/>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/Special:Contributions/Datacompboy"/>
		<updated>2026-04-09T14:42:49Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.20.2</generator>

	<entry>
		<id>http://linux-vserver.at/Standard_non-shared_quota</id>
		<title>Standard non-shared quota</title>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/Standard_non-shared_quota"/>
				<updated>2008-09-22T11:04:52Z</updated>
		
		<summary type="html">&lt;p&gt;Datacompboy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Want to enable quotas from within a vserver, nothing special, just plain old and good quota support? Then this might help you! &lt;br /&gt;
First things first, you will need a vserver enabled kernel that you have made working and you need to add vroot support to it (In menuconfig it is in Device Drivers &amp;amp;rarr; Block Devices &amp;amp;rarr; Virtual Root device support). &lt;br /&gt;
&lt;br /&gt;
After booting on the vroot enabled vserver kernel, you should have a directory '''/dev/vroot/''' with 8 vroot devices (0-7) you can use to set up your quota, if you don't, then you may make them by mknod /dev/vroot/n b 4 n (where n can be from 0 to 7). If your Linux distribution uses ''udev'', these will be at '''/dev/vroot[0-7]''' instead.&lt;br /&gt;
&lt;br /&gt;
== Initial Setup ==&lt;br /&gt;
Use ''vrsetup'' to tell the kernel what block device you want to handle quota for:&lt;br /&gt;
 vrsetup /dev/vroot/0 [partition]&lt;br /&gt;
Where [partition] is your /vservers partition. For example, this could be something like /dev/hda5 if you're just using standard partitioning, or something like /dev/lvm/vserver0 if you're using LVM.&lt;br /&gt;
&lt;br /&gt;
== Setting Up Vservers For Quota ==&lt;br /&gt;
Setting up the vserver for quota is straight forward: (you need util-vserver 30.208 or newer)&lt;br /&gt;
1. Create a default mtab for the guest. To do this, add:&lt;br /&gt;
 /dev/hdv1 / ufs rw,usrquota,grpquota 0 0&lt;br /&gt;
to '''/etc/vservers/&amp;lt;name&amp;gt;/apps/init/mtab'''&lt;br /&gt;
&lt;br /&gt;
2. Add the quota capability to the guest vserver. Add:&lt;br /&gt;
 quota_ctl &lt;br /&gt;
to '''/etc/vservers/&amp;lt;name&amp;gt;/ccapabilities'''&lt;br /&gt;
&lt;br /&gt;
3. Copy the vroot device which we setup earlier to the vserver:&lt;br /&gt;
 cp -af /dev/vroot/0 /vservers/&amp;lt;name&amp;gt;/dev/hdv1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Finishing the setup ===&lt;br /&gt;
&lt;br /&gt;
1. Start your guest.&amp;lt;br /&amp;gt;&lt;br /&gt;
2. Inside the guest, run:&lt;br /&gt;
 quotacheck -maugv&lt;br /&gt;
&lt;br /&gt;
3. Still inside the guest, turn quotas on.&lt;br /&gt;
&lt;br /&gt;
=== Save settings for reboot ===&lt;br /&gt;
To have setting persist on reboot, put vrsetup line into '''/etc/init.d/util-vserver''' start function, so after reboot vroot device get setup before it start.&lt;/div&gt;</summary>
		<author><name>Datacompboy</name></author>	</entry>

	<entry>
		<id>http://linux-vserver.at/Howto_HostAuth</id>
		<title>Howto HostAuth</title>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/Howto_HostAuth"/>
				<updated>2008-08-16T15:21:40Z</updated>
		
		<summary type="html">&lt;p&gt;Datacompboy: Unify styling&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is this? ==&lt;br /&gt;
&lt;br /&gt;
nss_vserver is a nss authentication module for linux-vserver powered systems which allows processes running on the host (sshd, getty) to authenticate users that exist on guests.&lt;br /&gt;
&lt;br /&gt;
The module should almost transparently drop in to a modern Linux system: PAM would call its pam_unix module, which would in turn look through the nss modules to complete the process.&lt;br /&gt;
&lt;br /&gt;
If you want to complete the guest login process, you should also get a modified version of vslogin linked to below. vslogin will pick up after authentication and deliver the user to a shell on his guest.&lt;br /&gt;
&lt;br /&gt;
Note that with nss_vserver you don't need the syncshadows included in the vserverauth tarball.&lt;br /&gt;
&lt;br /&gt;
== Why would I use it? ==&lt;br /&gt;
&lt;br /&gt;
Using nss_vserver and vslogin you could run a single instance of sshd on the host. This host-based server would verify the credentials of a user on a guest and then vslogin would take care of presenting the user a guest-based shell.&lt;br /&gt;
&lt;br /&gt;
== Installation Instructions ==&lt;br /&gt;
&lt;br /&gt;
1. Get appropriate version. On x86 versions there need to use pthread version, on amd64 (and possible x86_64) need to use cthreads version (listed as nss_vserver_64). Also, on amd64 it stored into /lib/, not into /lib/tls/.&lt;br /&gt;
&lt;br /&gt;
2. On linux, just run&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
3. After, try to run&lt;br /&gt;
 make test&lt;br /&gt;
To see if it works.&lt;br /&gt;
&lt;br /&gt;
== How to remove it from system? ==&lt;br /&gt;
&lt;br /&gt;
Just run&lt;br /&gt;
&lt;br /&gt;
 make uninstall&lt;br /&gt;
&lt;br /&gt;
== Use with vslogin ==&lt;br /&gt;
&lt;br /&gt;
After you have installed module, (and have vslogin copied to /sbin/ and suid-root) you are ready: try to login into a guest, say one named &amp;quot;test&amp;quot; with user &amp;quot;user&amp;quot;, by loggin in into the host with username &amp;quot;test-user&amp;quot; or &amp;quot;user@test.&amp;quot; You should find yourself logged into the guest.&lt;br /&gt;
&lt;br /&gt;
Note: vslogin requires vservers root too be at /vservers, so make it as symlink to your location. For example, for debian systems need to do&lt;br /&gt;
 ln -s var/lib/vservers /vservers&lt;br /&gt;
&lt;br /&gt;
== Caveats ==&lt;br /&gt;
&lt;br /&gt;
=== Security ===&lt;br /&gt;
WARNING! If you have installed vslogin, NEVER give shell access to your host to users -- any user on host, who able to execute programs and modify environment will be able to log into guests as anybody he wants!&lt;br /&gt;
&lt;br /&gt;
=== Usernames and guest names with dashes ===&lt;br /&gt;
&lt;br /&gt;
Avoid using usernames or guest names with dashes.&lt;br /&gt;
&lt;br /&gt;
The current version only tries one configuration while searching for the user in guest databases, which can cause problems:&lt;br /&gt;
&lt;br /&gt;
* User &amp;quot;user&amp;quot; on guest &amp;quot;ser-ver&amp;quot; when written as &amp;quot;user@ser-ver&amp;quot; will work fine, while &amp;quot;ser-ver-user&amp;quot; will be threated as user &amp;quot;ver-user&amp;quot; on vserver &amp;quot;ser&amp;quot;.&lt;br /&gt;
* User &amp;quot;us-er&amp;quot; on guest &amp;quot;server&amp;quot; when written as &amp;quot;guest-us-er&amp;quot; will work fine, while &amp;quot;us-er@guest&amp;quot; will be threated as user &amp;quot;er@guest&amp;quot; on vserver &amp;quot;us&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you must have dashes, use the syncshadows method instead.&lt;br /&gt;
&lt;br /&gt;
== Download links ==&lt;br /&gt;
&lt;br /&gt;
nss_vserver: http://dev.call2ru.com/vs/nss_vserver.tar.bz2&lt;br /&gt;
&lt;br /&gt;
nss_vserver_64 (for use on 64bit systems): http://dev.call2ru.com/vs/nss_vserver_64.tar.bz2&lt;br /&gt;
&lt;br /&gt;
modified vslogin: http://dev.call2ru.com/vs/vserverauth.tar.gz&lt;br /&gt;
&lt;br /&gt;
== Authors and copyright ==&lt;br /&gt;
&lt;br /&gt;
nss_vserver was written by Anton Fedorov &amp;lt;datacompboy@call2ru.com&amp;gt; 19 march 2006 and is public domain; feel free to use it as you want.&lt;br /&gt;
&lt;br /&gt;
vslogin was written by Alec Thomas (http://swapoff.org/LinuxVServer)&lt;/div&gt;</summary>
		<author><name>Datacompboy</name></author>	</entry>

	<entry>
		<id>http://linux-vserver.at/Howto_HostAuth</id>
		<title>Howto HostAuth</title>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/Howto_HostAuth"/>
				<updated>2008-08-08T09:30:25Z</updated>
		
		<summary type="html">&lt;p&gt;Datacompboy: added link to 64bit version of libnss_vserver&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is this? ==&lt;br /&gt;
&lt;br /&gt;
nss_vserver is a nss authentication module for linux-vserver powered systems which allows processes running on the host (sshd, getty) to authenticate users that exist on guests.&lt;br /&gt;
&lt;br /&gt;
The module should almost transparently drop in to a modern Linux system: PAM would call its pam_unix module, which would in turn look through the nss modules to complete the process.&lt;br /&gt;
&lt;br /&gt;
If you want to complete the guest login process, you should also get a modified version of vslogin linked to below. vslogin will pick up after authentication and deliver the user to a shell on his guest.&lt;br /&gt;
&lt;br /&gt;
Note that with nss_vserver you don't need the syncshadows included in the vserverauth tarball.&lt;br /&gt;
&lt;br /&gt;
== Why would I use it? ==&lt;br /&gt;
&lt;br /&gt;
Using nss_vserver and vslogin you could run a single instance of sshd on the host. This host-based server would verify the credentials of a user on a guest and then vslogin would take care of presenting the user a guest-based shell.&lt;br /&gt;
&lt;br /&gt;
== Installation Instructions ==&lt;br /&gt;
&lt;br /&gt;
On linux, just run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
make install&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After, try to run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
make test&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To see if it works.&lt;br /&gt;
&lt;br /&gt;
== How to remove it from system? ==&lt;br /&gt;
&lt;br /&gt;
Just run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
make uninstall&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use with vslogin ==&lt;br /&gt;
&lt;br /&gt;
After you have installed module, (and have vslogin copied to /sbin/ and suid-root) you are ready: try to login into a guest, say one named &amp;quot;test&amp;quot; with user &amp;quot;user&amp;quot;, by loggin in into the host with username &amp;quot;test-user&amp;quot; or &amp;quot;user@test.&amp;quot; You should find yourself logged into the guest.&lt;br /&gt;
&lt;br /&gt;
Note: vslogin requires vservers root too be at /vservers, so make it as symlink to your location. For example, for debian systems need to do&lt;br /&gt;
 ln -s var/lib/vservers /vservers&lt;br /&gt;
&lt;br /&gt;
== Caveats ==&lt;br /&gt;
&lt;br /&gt;
=== Security ===&lt;br /&gt;
WARNING! If you have installed vslogin, NEVER give shell access to your host to users -- any user on host, who able to execute programs and modify environment will be able to log into guests as anybody he wants!&lt;br /&gt;
&lt;br /&gt;
=== Usernames and guest names with dashes ===&lt;br /&gt;
&lt;br /&gt;
Avoid using usernames or guest names with dashes.&lt;br /&gt;
&lt;br /&gt;
The current version only tries one configuration while searching for the user in guest databases, which can cause problems:&lt;br /&gt;
&lt;br /&gt;
* User &amp;quot;user&amp;quot; on guest &amp;quot;ser-ver&amp;quot; when written as &amp;quot;user@ser-ver&amp;quot; will work fine, while &amp;quot;ser-ver-user&amp;quot; will be threated as user &amp;quot;ver-user&amp;quot; on vserver &amp;quot;ser&amp;quot;.&lt;br /&gt;
* User &amp;quot;us-er&amp;quot; on guest &amp;quot;server&amp;quot; when written as &amp;quot;guest-us-er&amp;quot; will work fine, while &amp;quot;us-er@guest&amp;quot; will be threated as user &amp;quot;er@guest&amp;quot; on vserver &amp;quot;us&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you must have dashes, use the syncshadows method instead.&lt;br /&gt;
&lt;br /&gt;
== Download links ==&lt;br /&gt;
&lt;br /&gt;
nss_vserver: http://dev.call2ru.com/vs/nss_vserver.tar.bz2&lt;br /&gt;
&lt;br /&gt;
nss_vserver_64 (for use on 64bit systems): http://dev.call2ru.com/vs/nss_vserver_64.tar.bz2&lt;br /&gt;
&lt;br /&gt;
modified vslogin: http://dev.call2ru.com/vs/vserverauth.tar.gz&lt;br /&gt;
&lt;br /&gt;
== Authors and copyright ==&lt;br /&gt;
&lt;br /&gt;
nss_vserver was written by Anton Fedorov &amp;lt;datacompboy@call2ru.com&amp;gt; 19 march 2006 and is public domain; feel free to use it as you want.&lt;br /&gt;
&lt;br /&gt;
vslogin was written by Alec Thomas (http://swapoff.org/LinuxVServer)&lt;/div&gt;</summary>
		<author><name>Datacompboy</name></author>	</entry>

	<entry>
		<id>http://linux-vserver.at/Howto_HostAuth</id>
		<title>Howto HostAuth</title>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/Howto_HostAuth"/>
				<updated>2008-08-08T09:12:00Z</updated>
		
		<summary type="html">&lt;p&gt;Datacompboy: vslogin and /vservers note&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is this? ==&lt;br /&gt;
&lt;br /&gt;
nss_vserver is a nss authentication module for linux-vserver powered systems which allows processes running on the host (sshd, getty) to authenticate users that exist on guests.&lt;br /&gt;
&lt;br /&gt;
The module should almost transparently drop in to a modern Linux system: PAM would call its pam_unix module, which would in turn look through the nss modules to complete the process.&lt;br /&gt;
&lt;br /&gt;
If you want to complete the guest login process, you should also get a modified version of vslogin linked to below. vslogin will pick up after authentication and deliver the user to a shell on his guest.&lt;br /&gt;
&lt;br /&gt;
Note that with nss_vserver you don't need the syncshadows included in the vserverauth tarball.&lt;br /&gt;
&lt;br /&gt;
== Why would I use it? ==&lt;br /&gt;
&lt;br /&gt;
Using nss_vserver and vslogin you could run a single instance of sshd on the host. This host-based server would verify the credentials of a user on a guest and then vslogin would take care of presenting the user a guest-based shell.&lt;br /&gt;
&lt;br /&gt;
== Installation Instructions ==&lt;br /&gt;
&lt;br /&gt;
On linux, just run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
make install&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After, try to run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
make test&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To see if it works.&lt;br /&gt;
&lt;br /&gt;
== How to remove it from system? ==&lt;br /&gt;
&lt;br /&gt;
Just run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
make uninstall&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use with vslogin ==&lt;br /&gt;
&lt;br /&gt;
After you have installed module, (and have vslogin copied to /sbin/ and suid-root) you are ready: try to login into a guest, say one named &amp;quot;test&amp;quot; with user &amp;quot;user&amp;quot;, by loggin in into the host with username &amp;quot;test-user&amp;quot; or &amp;quot;user@test.&amp;quot; You should find yourself logged into the guest.&lt;br /&gt;
&lt;br /&gt;
Note: vslogin requires vservers root too be at /vservers, so make it as symlink to your location. For example, for debian systems need to do&lt;br /&gt;
 ln -s var/lib/vservers /vservers&lt;br /&gt;
&lt;br /&gt;
== Caveats ==&lt;br /&gt;
&lt;br /&gt;
=== Security ===&lt;br /&gt;
WARNING! If you have installed vslogin, NEVER give shell access to your host to users -- any user on host, who able to execute programs and modify environment will be able to log into guests as anybody he wants!&lt;br /&gt;
&lt;br /&gt;
=== Usernames and guest names with dashes ===&lt;br /&gt;
&lt;br /&gt;
Avoid using usernames or guest names with dashes.&lt;br /&gt;
&lt;br /&gt;
The current version only tries one configuration while searching for the user in guest databases, which can cause problems:&lt;br /&gt;
&lt;br /&gt;
* User &amp;quot;user&amp;quot; on guest &amp;quot;ser-ver&amp;quot; when written as &amp;quot;user@ser-ver&amp;quot; will work fine, while &amp;quot;ser-ver-user&amp;quot; will be threated as user &amp;quot;ver-user&amp;quot; on vserver &amp;quot;ser&amp;quot;.&lt;br /&gt;
* User &amp;quot;us-er&amp;quot; on guest &amp;quot;server&amp;quot; when written as &amp;quot;guest-us-er&amp;quot; will work fine, while &amp;quot;us-er@guest&amp;quot; will be threated as user &amp;quot;er@guest&amp;quot; on vserver &amp;quot;us&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you must have dashes, use the syncshadows method instead.&lt;br /&gt;
&lt;br /&gt;
== Download links ==&lt;br /&gt;
&lt;br /&gt;
nss_vserver: http://dev.call2ru.com/vs/nss_vserver.tar.bz2&lt;br /&gt;
&lt;br /&gt;
modified vslogin: http://dev.call2ru.com/vs/vserverauth.tar.gz&lt;br /&gt;
&lt;br /&gt;
== Authors and copyright ==&lt;br /&gt;
&lt;br /&gt;
nss_vserver was written by Anton Fedorov &amp;lt;datacompboy@call2ru.com&amp;gt; 19 march 2006 and is public domain; feel free to use it as you want.&lt;br /&gt;
&lt;br /&gt;
vslogin was written by Alec Thomas (http://swapoff.org/LinuxVServer)&lt;/div&gt;</summary>
		<author><name>Datacompboy</name></author>	</entry>

	</feed>