7

Clear setuid permission using numeric mode

view full story
linux-howto

http://serverfault.com – On an Ubuntu Linux I have a directory with the setuid bit set (drwsr-xr-x) which I want to unset. Neither chmod 755 nor chmod 0755 nor chmod 00755 (I though maybe the first 0 is interpreted as just "this is octal") cleared the setuid bit. However, chmod u-s did. What is the correct numeric mode to clear the setuid bit? (HowTos)