- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /usr/bin/rsh
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
08-13-2003 03:29 AM
08-13-2003 03:29 AM
I want to restrict one user in one shell. If I put the shell /usr/bin/rsh I cannot do the command "cd". I have prove to put de binary in the user's home but it doesn't work. Is there any way to have the command "cd" with a shell /usr/bin/rsh?
Thanks!
Carme.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2003 03:38 AM
08-13-2003 03:38 AM
SolutionIf you need to have some kind of restriction on your users to prevent them from using other commands, try the following;
Set the user to use /usr/bin/sh (or other shell)
add the line
ENV=$HOME/.kshrc
to /etc/profile. This will allow you to set up (and disable) features for them in a controlled manner.
Then in their home directory, add aliases to the .kshrc file, for example
alias su=/usr/bin/true
This will override the su command, making the user run /usr/bin/true instead, which will then just return immediately to the shell prompt.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2003 01:38 PM
08-13-2003 01:38 PM
Re: /usr/bin/rsh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2003 04:54 PM
08-13-2003 04:54 PM
Re: /usr/bin/rsh
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2003 07:55 AM
08-14-2003 07:55 AM
Re: /usr/bin/rsh
You could then link /usr/bin/cd and whatever else. Obviously don't put an editor in there, because then the user can change their setup scripts to get around many of the rsh and rksh restrictions...