1827823 Members
2090 Online
109969 Solutions
New Discussion

Restricting a user

 
Jees Joy
Frequent Advisor

Restricting a user

hi Friends,

I want to restrict a user to use only some specific commands and not to move from his home folder.

I tried rbash, but there he have a facility to access sh, which infact gives no result for my answers.

Is chroot good in this scenario, in that case could somebody suggest me how can i implement chroot only on one specific user.

Please help me freinds.

Thanks In advance
Jees
5 REPLIES 5
Ivan Ferreira
Honored Contributor

Re: Restricting a user

Can you explain why rbash is not a solution to you? How can access sh?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Ivan Krastev
Honored Contributor

Re: Restricting a user

Jees Joy
Frequent Advisor

Re: Restricting a user

rbash is not solution because, user can give the command sh and get the full privilage, the only option to restrict the user is by changing his ENV variables, but how can we change the env vairable permenantly for one particular user alone.
Jees Joy
Frequent Advisor

Re: Restricting a user

Friends, I got one link and this was helpful

http://www.howtoforge.com/chrooted_ssh_howto_debian_p2

and I would like to thank you guys for helping me out.
Jees Joy
Frequent Advisor

Re: Restricting a user

Please refer the above