- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- keep user in their dir.
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-29-2001 01:42 PM
06-29-2001 01:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2001 01:45 PM
06-29-2001 01:45 PM
Re: keep user in their dir.
That is what the sh -r (restricted mode) I mentioned in one of your previous postings does for you.
I suggest that you man sh-posix | lp and look over the Restricted Shell Section.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2001 02:38 PM
06-29-2001 02:38 PM
Re: keep user in their dir.
Do your users actually need a shell prompt? By writing a menu program and replacing their shell with the menu program, you can eliminate any problems with users doing unwanted things to the system.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2001 02:32 AM
06-30-2001 02:32 AM
Re: keep user in their dir.
You can put users in a chrooted
environment. You copy all binaries
used by them and do a "virtual"
root in users directory. To do
that the you can modify /etc/profile
or get login program src and add
a chroot command (for example to
work with the same syntax in /etc/passwd
than for ftpd) I did that and it worked
well.
See ftpd man page to have an idea
of how work a chrooted
environment
HTH
Herv?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2001 11:23 PM
06-30-2001 11:23 PM
Re: keep user in their dir.
restricted shell will help as long as the user can't start another shell!! If he's able to do that, then he's free again to go wherever he wants.
I prefer to keep the users in a menu system (as already mentioned) and keep them away from the command line. But you have to be aware that your applications don't have an open gate to the command line (e.g. vi allows you to execute shell commands).
regards,
Thierry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2001 04:09 AM
07-01-2001 04:09 AM
SolutionFollowing Thierry's advice (that is also compatible with restricted shell, well till now I havent had any feedback showing its not a 2 users with such configuration (menu driven and rsh), - I would set perm 755 root:bin to users home directory AND .profile in order to be sure the user cannot cp .profile to something else (and maybe modify it...), remove it and replacing it by his own although you set perms to root on it...
Dont forget to trap ctrl-C in users .profile:
(HPUX10.20 example)
# Inhibe la sortie par Ctrl+C
trap 'echo "^G^G^G" ;' 1 2 15
Good luck and all the best
Victor