Bug 163940 - chmod works wrong
Summary: chmod works wrong
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: coreutils
Version: 3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-07-22 06:43 UTC by michael mosmann
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-07-22 09:37:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description michael mosmann 2005-07-22 06:43:14 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.10) Gecko/20050719 Fedora/1.7.10-1.3.1

Description of problem:
chmod set wrong permission under different users

Version-Release number of selected component (if applicable):
coreutils-5.2.1-31

How reproducible:
Always

Steps to Reproduce:
1.) mkdir testperm
2.) chmod +rwx testperm
3.) su
4.) chmod -rwx testperm
5.) ls -al



Actual Results:  d----w----    2 mosmann mosmann      4096 22. Jul 08:26 testperm


Expected Results:  d---------    2 mosmann mosmann      4096 22. Jul 08:26 testperm


Additional info:

does work under rh9

Comment 1 Tim Waugh 2005-07-22 09:37:50 UTC
This is working as documented:

       A combination of the letters âugoaâ controls which usersâ access to the
       file  will  be  changed:  the  user who owns it (u), other users in the
       fileâs group (g), other users not in the fileâs group (o), or all users
       (a).   If  none of these are given, the effect is as if âaâ were given,
       *but bits that are set in the umask are not affected*.

(my emphasis)



Note You need to log in before you can comment on or make changes to this bug.