Bug 163940

Summary: chmod works wrong
Product: [Fedora] Fedora Reporter: michael mosmann <michael>
Component: coreutilsAssignee: Tim Waugh <twaugh>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-07-22 05:37:50 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description michael mosmann 2005-07-22 02:43:14 EDT
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):

How reproducible:

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 05:37:50 EDT
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)