Hi all,
   I found out a way to restrict the user in many ways..
you just need to include pam_limit module in the login file and set the limits in the 
file /etc/security/limits.conf

Its work great... it stops user to bring down the system
with programme like while(1)fork();
It don't even require to do any thing with the bash or other programme...

If i am wrong some where plz do correct me and let me know..

Thanks all for the suggestions..

/Moyukh



>> vsnl used to use it for shell account.
>> But remember it is not truly restricted but for novice it will do.
>> Mail me if you need more details like how to come out of restricted shell
>> etc.
>>
> you can sometimes do things like using the "!" in a vi session. Allegedly
>it works for some
>
>On the other hand will the renamed ksh stop one from running a new shell (
>bash etc ?)
>

The rsh does not allow cd, >> and ./ may other thing. You can put all binary
in one directory and put that in user path. The user will not be able to
move any where else.
You can set all the quota and limits for the user. I feel for such
requirement ksh is much better.
Regards,
Mukund Deshmukh
Beta Computronics Pvt. Ltd.
Web Site - www.betacomp.com



----------------------------------------------
The mailing list archives are available at
http://lists.linux-india.org/cgi-bin/wilma/linux-india-help

_____________________________________________________
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com





----------------------------------------------
The mailing list archives are available at
http://lists.linux-india.org/cgi-bin/wilma/linux-india-help

Reply via email to