<?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/tag/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>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>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>
