rbash user with cd command
Dear all,
In linux server there is a user called 'iidas'. The user detail is as below. HOME DIRECTORY=/var/www/html/dr-site/gif/ SHELL=/var/www/html/dr-site/gif/rbash Right now the user functioning well but a requirement is come that allow the user to use "cd" command. When I am giving "cd" command from the user login it gives below error. -rbash-4.1$ cd test -rbash: cd: restricted Requesting you to please guide me how to allow the user to use "cd" command. Plese help me in simple instruction because I am very new to linux. Thanks and Regards, hbchok |
restricted shell
cd is built into the shell and with a restricted shell it is one of the activities that is prohibited. In rbash and rksh and so on, cd is not an option. There may be another way. Why do you need cd?
|
All times are GMT -5. The time now is 04:50 PM. |