- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- How to revoke 'rm -rf' permissions
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
Discussions
Discussions
Discussions
Forums
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
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
тАО03-02-2010 03:06 AM
тАО03-02-2010 03:06 AM
How to revoke 'rm -rf' permissions
I would like to know how to remove 'rm -rf' permission for a file.
With the same user who has ownership of a file,we can delete the file.I would like to know even with the same user who has ownership,file should not get deleted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2010 08:14 AM
тАО03-02-2010 08:14 AM
Re: How to revoke 'rm -rf' permissions
Another possibility is to have the files owned by a different user, but with full access permissions for the user in question, and put them in a directory (owned by a different user) with the "sticky bit" (1000 octal in numeric form) added to the directory permissions. The sticky bit prevents removal of files from directories by anyone other than their owners, even if the permissions would otherwise allow it. This also might be cumbersome.
Martin
A quick resolution to technical issues for your HPE products is just a click away HPE Support Center
See Self Help Post for more details
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2010 08:35 PM
тАО03-02-2010 08:35 PM
Re: How to revoke 'rm -rf' permissions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2010 09:50 PM
тАО03-02-2010 09:50 PM
Re: How to revoke 'rm -rf' permissions
I think no because a user owns it...so I suppose he should be able to do anything with that file.
For other files may be use can use other stuffs.
but why cant u trust a user for his own file :)
You may use restricted shell, but it would allow only very few operations.
do a google for restricted shell.
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2010 11:59 PM
тАО03-02-2010 11:59 PM
Re: How to revoke 'rm -rf' permissions
For other users modify the path, or define an alias, to point to a special rm-script with limited options.