bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#23853: chmod can unset sticky bits using octet format


From: westlake
Subject: bug#23853: chmod can unset sticky bits using octet format
Date: Sun, 26 Jun 2016 20:56:24 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.8.0

According to chmod's manpage,
"chmod preserves a directory's set-user-ID and set-group-ID bits unless you explicitly specify otherwise. You can set or clear the bits with symbolic modes like u+s and g-s, and you can set (but not clear) the bits with a numeric mode."

contrary to documentation, chmod can otherwise clear sticky bits using the octet notation but by using a 5th octal

commands used,
mkdir abc
chmod u+s,g+s abc
chmod 0755 abc (no effect on the sticky bits)
chmod 00755 abc (sticky bits cleared using the 5th octal position)







reply via email to

[Prev in Thread] Current Thread [Next in Thread]