- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Restict shell cannot use cd in owner directory
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2003 10:37 AM
07-02-2003 10:37 AM
Restict shell cannot use cd in owner directory
I created a user wiht rsh shell. I wish the user could run a cd command inside a directory created by him
Thanks,
valkiria
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2003 10:40 AM
07-02-2003 10:40 AM
Re: Restict shell cannot use cd in owner directory
As my dad used to say, wish in one hand and s_it in the other, and watch which one fills first.
For most things Unix is very flexible. Restricted shell is however a security measure to keep users in jail, and has no flexibility to maintain it's jail.
Sincerely,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2003 10:56 AM
07-02-2003 10:56 AM
Re: Restict shell cannot use cd in owner directory
This is the HUGEST disadvantage of the rsh or rksh. It means that each user has to have his/her own /bin, /sbin /usr/bin directories. With a lot of users, this becomes very difficult to maintain.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2003 10:58 AM
07-02-2003 10:58 AM
Re: Restict shell cannot use cd in owner directory
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2003 11:15 AM
07-02-2003 11:15 AM
Re: Restict shell cannot use cd in owner directory
Change directory is a shell internal command, not a command in /usr/bin or anywhere else. A person can sit in restricted shell all day long trying to set path statements, and it will still not change the fact that they cant use the cd command, or popd, pushd.
HP-UX does contain a "cd" command, but if you looked at it you would see that it's simply a pass through cheezy script, and why it was added is beyond me. Copying this to the users home would do as much as making a link, in this case absolutely nothing.
There are many reasons to use restricted shell, and keeping a personal bin directory is useless as it restricts more than just the cd command.
You may also want to pick up some basic shell books to learn the fundamental workings of shells. O'Reilly has an exceptional book on Korn shell, as well as Unix in a Nutshell which covers the basics of csh, sh, and ksh.
Sincerely,
Shannon