- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- File deletion question
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-01-2006 09:41 AM
тАО03-01-2006 09:41 AM
If a file is not owned by a user but that user is in the group of the file, can the user delete the file if the permissions are set to group read only access but the directory group bit is set to "w".
Example:
$ whoami
supdba
$ ll
total 1
-rw-r----- 1 oracle dba 0 Feb 28 16:33 test1
$ rm test1
test1: 640 mode ? (y/n) y
$ ll test
test not found
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2006 09:47 AM
тАО03-01-2006 09:47 AM
Re: File deletion question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2006 10:06 AM
тАО03-01-2006 10:06 AM
SolutionYes the "w" octal bit for the dir group will let you remove a file within it. Since a dir is nothing but a list of files, hence "w" access means one has the capability of modifying the list i.e. adding/removing items on that list) unless the sticky bit is set on that particular dir.
cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2006 10:19 AM
тАО03-01-2006 10:19 AM
Re: File deletion question
supdba can not change the file but as Sandman explained delete it fro the directory.
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2006 01:03 PM
тАО03-01-2006 01:03 PM
Re: File deletion question
At this time only the file owner oracle or root can modify / delete the file or its permission.
Rgds
Ajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2006 01:30 PM
тАО03-01-2006 01:30 PM
Re: File deletion question
Bill Hassell, sysadmin