chmod
From Initq
Contents |
Change to 777
- chmod u=+rwx,g=+rwx,o=+rwx setuid.txt
Change to 000
- chmod u=-rwx,g=-rwx,o=-rwx setuid.txt
Sticky Bit
As of SUID or SetUID bit, the executable which has the SUID set runs with the ownership of the program owner. That is, if you own an executable, and another person issues the executable, then it runs with your permission and not his. The default is that a program runs with the ownership of the person executing the binary.
- chmod g+s /home/software
Permissions
- r is 4
- w is 2
- x is 1