LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rbash user with cd command (https://www.linuxquestions.org/questions/linux-newbie-8/rbash-user-with-cd-command-4175496971/)

hbchok 03-04-2014 04:02 AM

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

Turbocapitalist 03-04-2014 04:24 AM

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.