Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-04-2014, 04:02 AM   #1
LQ Newbie
Registered: Nov 2012
Posts: 14

Rep: Reputation: Disabled
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/

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,
Old 03-04-2014, 04:24 AM   #2
Senior Member
Registered: Apr 2005
Distribution: Ubuntu, Devuan, OpenBSD
Posts: 2,363
Blog Entries: 3

Rep: Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046
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?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Shell Script in rbash benjam1nrk Linux - Newbie 2 06-30-2012 10:03 AM
[SOLVED] Needed to be $HOME/.bashrc disabled when user shell is 'rbash' (restricted shell) mgumbau Linux - General 2 06-16-2011 06:17 AM
manage bash or rbash camry Linux - Security 4 06-10-2009 08:10 AM
need more restricted shell then rbash redss Linux - General 3 01-26-2006 09:55 AM
rbash - internal commands junkken Linux - Security 5 02-02-2005 08:46 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:59 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration