<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>linuxbuddies.com &#187; User administration</title>
	<atom:link href="http://linuxbuddies.com/category/user-administration/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxbuddies.com</link>
	<description>For linux documentations.</description>
	<lastBuildDate>Fri, 11 Sep 2009 10:11:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Limiting FTP users to their home directory</title>
		<link>http://linuxbuddies.com/2009/01/16/limiting-ftp-users-to-their-home-directory/</link>
		<comments>http://linuxbuddies.com/2009/01/16/limiting-ftp-users-to-their-home-directory/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 15:22:01 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[FTP]]></category>
		<category><![CDATA[User administration]]></category>
		<category><![CDATA[server tweak]]></category>
		<category><![CDATA[limit ftp user]]></category>
		<category><![CDATA[pro-ftpd]]></category>
		<category><![CDATA[pure-ftpd]]></category>
		<category><![CDATA[vsftpd]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=280</guid>
		<description><![CDATA[ Purpose
Unless the ftp users are limited to their home directories, they will able to access all files &#38; folders on the server .
How to
Below you may see how this can done to 3 of the ftp servers used in common.
Pro-ftpd
vsftpd
pure-ftpd
Pure-ftpd 
vi  /etc/pure-ftpd.conf
And change the following line
ChrootEveryone=YES
pro-ftpd
 vi  /etc/proftpd.conf
DefaultRoot ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-279" title="ftp" src="http://linuxbuddies.com/wp-content/uploads/2009/01/ftp-150x150.gif" alt="ftp" width="150" height="150" /> <strong>Purpose</strong></p>
<p>Unless the ftp users are limited to their home directories, they will able to access all files &amp; folders on the server .</p>
<p><strong>How to</strong></p>
<p>Below you may see how this can done to 3 of the ftp servers used in common.</p>
<p>Pro-ftpd</p>
<p>vsftpd</p>
<p>pure-ftpd</p>
<p><strong>Pure-ftpd </strong></p>
<p style="padding-left: 30px;">vi  /etc/pure-ftpd.conf</p>
<p>And change the following line</p>
<p style="padding-left: 30px;">ChrootEveryone=YES</p>
<p><strong>pro-ftpd</strong></p>
<p style="padding-left: 30px;"><strong> </strong>vi  /etc/proftpd.conf</p>
<p style="padding-left: 30px;">DefaultRoot ~</p>
<p><strong>Vsftpd </strong></p>
<p style="padding-left: 30px;">vi /etc/vsftpd.conf</p>
<div class="codecontent" style="padding-left: 30px;">chroot_local_user=YES</div>
<p style="padding-left: 30px;"><strong><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2009/01/16/limiting-ftp-users-to-their-home-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu internet sharing</title>
		<link>http://linuxbuddies.com/2008/12/23/ubunthu-network-sharing/</link>
		<comments>http://linuxbuddies.com/2008/12/23/ubunthu-network-sharing/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 12:52:53 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Firewall]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Proxy]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[User administration]]></category>
		<category><![CDATA[ubunthu network]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=196</guid>
		<description><![CDATA[ The following will explain how to share your Internet connection:
Note: Type all the following commands in a root terminal, DO NOT use sudo.
1. Start by configuring the network card that interfaces to the other computers on you network:
# ifconfig ethX ip 
where ethX is the network card and ip is your ...]]></description>
			<content:encoded><![CDATA[<p> <img class="alignnone size-thumbnail wp-image-197" title="ubuntu-1280x1024" src="http://linuxbuddies.com/wp-content/uploads/2008/12/ubuntu-1280x1024-150x150.png" alt="ubuntu-1280x1024" width="150" height="150" />The following will explain how to share your Internet connection:<br />
Note: Type all the following commands in a root terminal, DO NOT use sudo.</p>
<p>1. Start by configuring the network card that interfaces to the other computers on you network:</p>
<blockquote><p># ifconfig ethX ip </p></blockquote>
<p>where ethX is the network card and ip is your desired server ip address (Usually 192.168.0.1 is used)</p>
<p>2. Then configure the NAT as follows:</p>
<blockquote><p># iptables -t nat -A POSTROUTING -o ethX -j MASQUERADE </p></blockquote>
<p>where ethX is the network card that the Internet is coming from </p>
<blockquote><p># echo 1 &gt; /proc/sys/net/ipv4/ip_forward</p></blockquote>
<p>3. Install dnsmasq and ipmasq using apt-get: </p>
<blockquote><p># apt-get install dnsmasq ipmasq</p></blockquote>
<p>4. Restart dnsmasq:</p>
<blockquote><p># /etc/init.d/dnsmasq restart</p></blockquote>
<p>5. Reconfigure ipmasq to start after networking has been started:</p>
<blockquote><p># dpkg-reconfigure ipmasq</p></blockquote>
<p>6. Repeat steps 1 and 2.<br />
7. Add the line &#8220;net.ipv4.ip_forward = 1&#8243; to /etc/sysctl.conf</p>
<blockquote><p># gedit /etc/sysctl.conf</p></blockquote>
<p>8. Reboot. (Optional) or sysctrl -p</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2008/12/23/ubunthu-network-sharing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to disable a specific command(s) for a certain user.</title>
		<link>http://linuxbuddies.com/2008/12/22/how-to-disable-a-specific-commands-for-a-certain-user/</link>
		<comments>http://linuxbuddies.com/2008/12/22/how-to-disable-a-specific-commands-for-a-certain-user/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 05:42:30 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[User administration]]></category>
		<category><![CDATA[certain user]]></category>
		<category><![CDATA[disable command]]></category>
		<category><![CDATA[limit user]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=80</guid>
		<description><![CDATA[Please follow the below steps to disable a specific command(s) for a certain user.
# su &#8211; riyesh
$ which rm (Here rm command as an example)
$ mkdir ~/bin
$ ln -s /bin/* ~/bin/ (/bin is the PATH for rm)
$ rm -rf ~/bin/rm
Take the output of $PATH for this user
$ echo $PATH &#62; ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-81" title="userlimt" src="http://linuxbuddies.com/wp-content/uploads/2008/12/userlimt-150x150.jpg" alt="userlimt" width="150" height="150" />Please follow the below steps to disable a specific command(s) for a certain user.</p>
<blockquote><p># su &#8211; riyesh<br />
$ which rm (Here rm command as an example)<br />
$ mkdir ~/bin<br />
$ ln -s /bin/* ~/bin/ (/bin is the PATH for rm)<br />
$ rm -rf ~/bin/rm</p></blockquote>
<p>Take the output of $PATH for this user</p>
<blockquote><p>$ echo $PATH &gt; MyPATH.txt</p></blockquote>
<p>Edit this file and replace /bin with ~/bin</p>
<p>Login as root</p>
<blockquote><p>$ su -<br />
# cat /home/riyesh/MyPATH.txt &gt;&gt; /home/rieysh/.bashrc</p>
<p>Change the permission of /home/riyesh/.bashrc<br />
# chmod 444 /home/riyesh/.bashrc<br />
# chattr +i /home/riyesh/.bashrc</p></blockquote>
<p>That’s all.<br />
But the user can reset the PATH variable anytime to overcome this.<br />
Please comment with alternatives for this.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2008/12/22/how-to-disable-a-specific-commands-for-a-certain-user/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Screen command for Remote assistance and Administration</title>
		<link>http://linuxbuddies.com/2008/12/22/screen-command-for-remote-assistance-and-administration/</link>
		<comments>http://linuxbuddies.com/2008/12/22/screen-command-for-remote-assistance-and-administration/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 05:33:30 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[User administration]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[remote administration]]></category>
		<category><![CDATA[remote assistance. linux]]></category>
		<category><![CDATA[screen]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=65</guid>
		<description><![CDATA[screen is a UNIX utility for giving remote assistance/administration. Suppose an unskilled colleague of your own is struggling with a server at some remote location with no idea of troubleshooting a problem.
If you are able to solve that with keeping your colleague to watch how you are sorting out the issues ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-66" title="screen" src="http://linuxbuddies.com/wp-content/uploads/2008/12/screen-150x150.png" alt="screen" width="150" height="150" /><a href="http://www.linuxmanpages.com/man1/screen.1.php">screen</a> is a UNIX utility for giving remote assistance/administration. Suppose an unskilled colleague of your own is struggling with a server at some remote location with no idea of troubleshooting a problem.</p>
<p>If you are able to solve that with keeping your colleague to watch how you are sorting out the issues you can use <strong>screen</strong>.</p>
<p>First of all ask your colleague for the username which he used to login into that remote machine. Now you can login to that remote machine as the same user. Imagine username is <strong>engineer</strong> and IP of the remote machine is <strong>192.168.1.1</strong>. Try the below</p>
<blockquote><p><strong># ssh engineer@192.168.1.1</strong></p></blockquote>
<p>Then after getting logged in run the screen command to set a session named myscreen</p>
<blockquote><p><strong>$ screen -S myscreen</strong></p></blockquote>
<p>Now tell your colleague to type the below for attaching his screen to your screen.</p>
<blockquote><p><strong>$ screen -x myscreen</strong></p></blockquote>
<p>Thats it. Now he can watch whatever you type and vice versa.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2008/12/22/screen-command-for-remote-assistance-and-administration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Limit number of Shell logins by a USER or GROUP</title>
		<link>http://linuxbuddies.com/2008/12/22/limit-number-of-shell-logins-by-a-user-or-group/</link>
		<comments>http://linuxbuddies.com/2008/12/22/limit-number-of-shell-logins-by-a-user-or-group/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 05:31:08 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[User administration]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[group]]></category>
		<category><![CDATA[limit user]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=63</guid>
		<description><![CDATA[ltiple Shell login by the same user on a Linux box you have to set a maximum number of logins in /etc/security/limits.conf for a user or a group.
For example:
# groupadd salesgroup
# useradd -G salesgroup salesman1
# useradd -G salesgroup salesmanager
# echo “@salesgroup &#8211; maxlogins 10? &#62;&#62; /etc/security/limits.conf
# echo “salesman1 &#8211; maxlogins 5? &#62;&#62; ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-thumbnail wp-image-62" title="useradministration" src="http://linuxbuddies.com/wp-content/uploads/2008/12/useradministration-150x150.gif" alt="useradministration" width="150" height="150" />ltiple Shell login by the same user on a Linux box you have to set a maximum number of logins in <span>/etc/security/limits.conf</span> for a user or a group.</p>
<p>For example:</p>
<blockquote><p><span># groupadd salesgroup<br />
# useradd -G salesgroup salesman1<br />
# useradd -G salesgroup salesmanager<br />
# echo “@salesgroup &#8211; maxlogins 10? &gt;&gt; /etc/security/limits.conf<br />
# echo “salesman1 &#8211; maxlogins 5? &gt;&gt; /etc/security/limits.conf</span></p></blockquote>
<p>Here the group salesgroup can make a maximum of 10 logins at a time.<br />
And the user salesman1 is limited to 5 simultaneous logins.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2008/12/22/limit-number-of-shell-logins-by-a-user-or-group/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
