- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: rm: xyz not removed. Permission denied
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-17-2005 04:01 AM
06-17-2005 04:01 AM
rm: xyz not removed. Permission denied
$ ll xyz
rw-rw---- 1 batch1 rst 0 Jun 17 23:50 xyz
$ whoami
batch2
$ rm -f xyz
rm: xyz not removed. Permission denied
What could be the reason?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2005 04:03 AM
06-17-2005 04:03 AM
Re: rm: xyz not removed. Permission denied
fuser -cu might help you find the process and kill it.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2005 04:12 AM
06-17-2005 04:12 AM
Re: rm: xyz not removed. Permission denied
$ touch xyz
Then login as batch2 and try to remove the file but it doesn't.
The file xyz is not open.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2005 04:14 AM
06-17-2005 04:14 AM
Re: rm: xyz not removed. Permission denied
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2005 04:18 AM
06-17-2005 04:18 AM
Re: rm: xyz not removed. Permission denied
Did you log out of batch2 and back in to make the changes?
What does
$id
show?
Do you have the link for /etc/logingroup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2005 04:19 AM
06-17-2005 04:19 AM
Re: rm: xyz not removed. Permission denied
There is one consideration called the sticky bit. If the directory has 777 permissions (like /tmp) then anyone can remove any file in /tmp, even if the file is owned by root and has 000 permissions. But change the directory to 1777 permissions (drwxrwxrwxt - the t is the sticky bit) and now, only the file's owner can remove or rename/move a file in that directory.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2005 04:20 AM
06-17-2005 04:20 AM
Re: rm: xyz not removed. Permission denied
uid=18056(batch1) gid=205(rst)
$ id
uid=18056(batch2) gid=205(rst)
The folder permission is
drwxr-x---
I think the folder permission is the cause.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2005 04:21 AM
06-17-2005 04:21 AM
Re: rm: xyz not removed. Permission denied
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2005 04:24 AM
06-17-2005 04:24 AM
Re: rm: xyz not removed. Permission denied
Except that in the case of drwxrwxrwt perms it says
rm: xyz not removed. Not owner.
So it looks like you need a case of g+wx on the directory as said above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2005 04:56 AM
06-17-2005 04:56 AM
Re: rm: xyz not removed. Permission denied
It's clearly the cause. You didn't put it, but I imagine that group for the directory is rst. This group doesn't have w permission on the directory and so cannot remove a file in it (neither create).
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2005 07:03 AM
06-17-2005 07:03 AM
Re: rm: xyz not removed. Permission denied
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2005 09:44 AM
06-17-2005 09:44 AM
Re: rm: xyz not removed. Permission denied
Bill Hassell, sysadmin