- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- user with a rsh 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
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
06-04-2002 11:35 PM
06-04-2002 11:35 PM
user with a rsh shell
if I change shell (using command ksh) i lose all!
How can I deny possibilities to change shell?
Luca
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2002 11:43 PM
06-04-2002 11:43 PM
Re: user with a rsh shell
the command to change shell is chsh, which is allowed for every user normally. You simply change the permissions for this command:
chmod 550 /usr/bin/chsh
Then you have to change permissions for all shells which users should not be able to start, for example:
chmod 550 /usr/bin/csh
Also you could do the following trick:
Put the following two lines into the .profile files of your users:
/usr/bin/ksh (if you want them to use ksh)
exit 1
These lines as two last lines of .profile file.
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2002 11:48 PM
06-04-2002 11:48 PM
Re: user with a rsh shell
rsh provides minimal security because you can launch any of the higher-privileged shells from rsh itself.
# rsh
rsh> sh
If you want to restrict a specific user, one way is to set ACL on the shell binaries (use either setacl (JFS) or chacl (HFS).
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2002 12:10 AM
06-05-2002 12:10 AM
Re: user with a rsh shell
the following is disable by using a restricted shell:
- Changing directory (cd)
- Setting the value of SHELL, ENV, or PATH
- Specifying path or command names containing /
- Redirecting output (>, >|, <>, and >>)
A rather important setting is the user's PATH variable which has to be limited too!! If the user is able to start another shell (ksh, sh, csh, ...) all restrictions are gone again!
When using the restricted shell it is preferred to have a special directory which contains all executables this users need and limit their PATH variable to this directory (and other required application directories).
regards,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2002 01:16 AM
06-05-2002 01:16 AM
Re: user with a rsh shell
If so, then I am afraid that there is no 'cookbook' on how to *properly* setup rsh(1). The only documentation I know of is this part of the login(1) manual page:
> If the command name field is *, a chroot() to the directory named in
> the directory field of the entry is performed. At that point login is
> re-executed at the new level which must have its own root structure,
> including /bin/login and /etc/passwd.
See the ftpd(1M) manual page for some (more or less) general, i.e. *not*
rsh(1)-specific, information on how to set up "the new level which must
have its own root structure, including /bin/login and /etc/passwd.".
See also the very old (1995) Usenet discussion http://groups.google.com/groups?selm=3tuasi$1608@venere.inet.it (press "View: Complete Thread").