- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Restriction of Particular Commands
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-02-2003 11:53 AM
06-02-2003 11:53 AM
Restriction of Particular Commands
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2003 11:56 AM
06-02-2003 11:56 AM
Re: Restriction of Particular Commands
You should utilize a "restricted shell". Look at the 'sh_posix' man pages for more information.
Essentially you create a directory called '/usr/rbin' and copy into it the commands the user is allowed to execute. Make sure to add this directory to the user's PATH.
The biggest drawback to this mechanism is that file output redirection is prohibited.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2003 11:57 AM
06-02-2003 11:57 AM
Re: Restriction of Particular Commands
You should utilize a "restricted shell". Look at the 'sh_posix' man pages for more information.
Essentially you create a directory called '/usr/rbin' and copy into it the commands the user is allowed to execute. Make sure to add this directory to the user's PATH.
The biggest drawback to this mechanism is that file output redirection is prohibited.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2003 11:57 AM
06-02-2003 11:57 AM
Re: Restriction of Particular Commands
You should utilize a "restricted shell". Look at the 'sh_posix' man pages for more information.
Essentially you create a directory called '/usr/rbin' and copy into it the commands the user is allowed to execute. Make sure to add this directory to the user's PATH.
The biggest drawback to this mechanism is that file output redirection is prohibited.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2003 11:58 AM
06-02-2003 11:58 AM
Re: Restriction of Particular Commands
Check Jame's answer in this post.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf9428b82cc91d711abdc0090277a778c,00.html
Regards,
DR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2003 11:59 AM
06-02-2003 11:59 AM
Re: Restriction of Particular Commands
alias rm='cat /dev/null'
alias ls='cat /dev/null'
That way when they try using the command
nothing happens :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2003 12:02 PM
06-02-2003 12:02 PM
Re: Restriction of Particular Commands
As an additional, general note, you should set the sticky bit on shared directories. This restricts deletion of files in the directory to only the owner. For example:
# chmod 1777 /tmp
...while will appear as:
drwxrwxrwt
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2003 06:03 PM
06-02-2003 06:03 PM
Re: Restriction of Particular Commands
Restricted shell is a better way to go....if you are worried about users - then why do they have access at all?
IMHO - Just make sure your system is hardened so that they can only damage their own files....they should have the ability to delete files they create - else they will call you all the time - and you don't really want that now do you? :)
Rgds...Geoff