LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-04-2014, 05:02 AM   #1
hbchok
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/
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
 
Old 03-04-2014, 05:24 AM   #2
Turbocapitalist
Member
 
Registered: Apr 2005
Distribution: Ubuntu, Devuan, OpenBSD
Posts: 954
Blog Entries: 3

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


Reply


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 11:03 AM
[SOLVED] Needed to be $HOME/.bashrc disabled when user shell is 'rbash' (restricted shell) mgumbau Linux - General 2 06-16-2011 07:17 AM
manage bash or rbash camry Linux - Security 4 06-10-2009 09:10 AM
need more restricted shell then rbash redss Linux - General 3 01-26-2006 10:55 AM
rbash - internal commands junkken Linux - Security 5 02-02-2005 09:46 AM


All times are GMT -5. The time now is 04:14 PM.

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