LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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, 04: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, 04:24 AM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,258
Blog Entries: 3

Rep: Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713
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 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:00 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
Open Source Consulting | Domain Registration