Search code examples
linuxfile-permissions

What is the number permission for o+t in linux


What is the number permission for o+t

It has to be close to 1755 but that's not right.

Using chmod o+t mydir. I get drwxrwsr-t

Using chmod 1755 mydir. I get d-wx-ws--t

I want to know what the number permissions are for o+t


Solution

  • It is simple to find that out:

    touch test
    chmod 0000 test
    chmod o+t test
    stat test
    

    ... gives you: 1000 (octal)