GNU bug report logs - #25223
chmod +w does not work

Previous Next

Package: coreutils;

Reported by: Eugen Dedu <eugen.dedu <at> univ-fcomte.fr>

Date: Sun, 18 Dec 2016 17:23:01 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 25223 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Eugen Dedu <eugen.dedu <at> univ-fcomte.fr>, 25223 <at> debbugs.gnu.org
Subject: Re: bug#25223: chmod +w does not work
Date: Sun, 18 Dec 2016 17:34:22 +0000
tag 25223 notabug
close 25223
stop

On 18/12/16 12:37, Eugen Dedu wrote:
> Hi,
> 
> chmod +w file does not work:
> 
> snoopy:~$ touch ff
> snoopy:~$ ls -l ff
> -rw-r--r-- 1 ededu ededu 0 Dec 18 13:31 ff
> snoopy:~$ chmod +w ff
> snoopy:~$ ls -l ff
> -rw-r--r-- 1 ededu ededu 0 Dec 18 13:31 ff
> snoopy:~$ chmod +x ff
> snoopy:~$ ls -l ff
> -rwxr-xr-x 1 ededu ededu 0 Dec 18 13:31 ff
> snoopy:~$ chmod --version
> chmod (GNU coreutils) 8.26

From the man page, taking particular note of the last line...

"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."





This bug report was last modified 6 years and 210 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.