1820096 Members
3429 Online
109608 Solutions
New Discussion юеВ

rbash (does not exist)

 
SOLVED
Go to solution
Adam Noble
Super Advisor

rbash (does not exist)

Hi,

I need to setup a user so that he cannot traverse directories. I would like to use rbash however it does not appear to exist on the server. How can I get around this.

Cheers
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: rbash (does not exist)

Shalom,

Restricted shell should be called rsh, not rbash.

Try that.

Make sure the user can link to the utils that are needed such as ls.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Adam Noble
Super Advisor

Re: rbash (does not exist)

On linux there is no rsh. rsh is actually remote shell.
Alexander Chuzhoy
Honored Contributor
Solution

Re: rbash (does not exist)

create the rbash with:

ln -s /bin/bash /bin/rbash

and then specify rbash as the default shell for a user:
usermod -s /bin/rbash


Regards.