- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Restricted Shell
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
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-20-2003 04:09 AM
08-20-2003 04:09 AM
I would like to lock users in their home directory. I'm confused with the rsh command. Is the rsh command restricted shell command or remote shell command ?
When I put rsh in my passwd file, user cannot login at all.
In redhat 9.0 I don't have krsh command. Please let me know what would be the correct way to configure the existing users.
Thank you,
Miro
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2003 04:13 AM
08-20-2003 04:13 AM
Re: Restricted Shell
From man sh:
rsh Restricted version of the POSIX or Bourne shell command
interpreter. Sets up a login name and execution
environment whose capabilities are more controlled
(restricted) than normal user shells.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2003 04:25 AM
08-20-2003 04:25 AM
Re: Restricted Shell
If you have an 'etc/shells' file, be sure to include the restricted shell you want to use in it. If you do *not* have '/etc/shells', then by default, the following shells are valid:
/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/usr/bin/keysh
Note that the "restricted" shell versions begin with "r". You transposed "rkrsh" to "krsh".
As for the "remote shell" command, that's 'remsh'. See its man pages for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2003 04:28 AM
08-20-2003 04:28 AM
Re: Restricted Shell
See
http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90046/B2355-90046_top.html&con=/hpux/onlinedocs/B2355-90046/00/00/8-con.html&toc=/hpux/onlinedocs/B2355-90046/00/00/8-toc.html&searchterms=rsh&queryid=20030820-062654
This is part of an online doc which explains everything
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2003 04:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2003 04:42 AM
08-20-2003 04:42 AM
Re: Restricted Shell
Miro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2003 04:47 AM
08-20-2003 04:47 AM
Re: Restricted Shell
Thank you, now I now that I was not going crazy!
So what would be the correct way to do this?
Do I put bash -r in a /etc/passwd file?
Miro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2003 04:58 AM
08-20-2003 04:58 AM
Re: Restricted Shell
yes, you need to put /bin/bash -r in /etc/passwd.
But the shell is highly restricted. Consult the RESTRICTED SHELL section of man pages for more info on your requirements.
HTH,
Umapathy