- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Preventing user to delete file
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-18-2005 11:34 AM
08-18-2005 11:34 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 12:33 PM
08-18-2005 12:33 PM
Re: Preventing user to delete file
But you cant really get away with the files he owns. The files he owns, he can delete,modify etc.. but with the other files and directories make sure that they are not world writeable, avoid 777 permissions.
Run to find commands to see the security holes in system like find -mode
Enable ACL support if you like to give more deep control over the permissions of files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 12:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 01:05 PM
08-18-2005 01:05 PM
Re: Preventing user to delete file
Users then can not
Change directory
Set value of SHELL, ENV, or PATH
Specify path or command names containing /
Redirect output (>, >|, <>, and >>)"
1)Create user accounts, you can use sam() or command useradd.
Assign users restricted shell
2)To restrict available command(s),
2a) Create a directory /usr/rbin and copy Copy (or symbolic link) commands you want to give access to, e.g. date,ls,pwd,banner
etc.
2b)Create users .profile file in home directory with the PATH variable:
export PATH=/usr/rbin
2c)Ensure the user owns his .profile file in
the home directory.
Test it. After you create these accounts, login as restricted user and command access will be limited to /usr/rbin.
Plus the standard rsh restrictions also apply.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 01:27 PM
08-18-2005 01:27 PM
Re: Preventing user to delete file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 01:40 PM
08-18-2005 01:40 PM
Re: Preventing user to delete file
alias rm = '/sbin/rrr.sh'
because rrr.sh does not exist on the system so user can not use it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 01:41 PM
08-18-2005 01:41 PM
Re: Preventing user to delete file
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 01:48 PM
08-18-2005 01:48 PM