New answers tagged chmod
0
votes
`chmod g+s` returns success even though it actually fails, and only works as root
The manual for chmod (run man chmod) explains this behavior (emphasis mine):
chmod clears the set-group-ID bit of a regular file if the file's group ID does not match the user's effective group ID or ...
Top 50 recent answers are included
Related Tags
chmod × 618permissions × 359
linux × 103
chown × 71
files × 48
sudo × 33
ubuntu × 28
find × 28
acl × 27
bash × 23
directory × 22
centos × 21
root × 21
shell-script × 20
filesystems × 20
mount × 19
umask × 19
group × 18
executable × 18
shell × 16
setuid × 16
debian × 15
users × 14
security × 13
command-line × 11