Bug 89604
Summary: | Cannot delete file with correct group permissions | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Dan Forsyth (Dataforge Canada) <forsyth> |
Component: | kernel | Assignee: | Stephen Tweedie <sct> |
Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 9 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2003-04-30 13:48:57 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Dan Forsyth (Dataforge Canada)
2003-04-24 21:49:16 UTC
deleting a file is a directory operation, so the user needs permission on the directory. setuid shellscripts don't work in linux for security reasons I did some more testing, I have found the problem. It seems to happen only when the sticky bit is on the directory that the file is in? ie; drwxrwx--T 2 reedsjewelers bscbrar 4096 Apr 25 08:49 test cd test -rw-rwx--- 1 root bscbrar 3 Apr 25 08:49 hi rm: cannot remove `hi': Operation not permitted rm hi = permission denied. When user is IN the bscbrar group This is expected behaviour --- the whole point of sticky directories is to restrict deletes and renames to the owner of the file (or root). "man chmod" for the full definition of the behaviour of sticky directories. |