Write the permission in Octal format into the textbox or click on them in the table below
Special | User can | Group can | Others can |
---|---|---|---|
SETUID | READ | READ | READ |
SETGID | WRITE | WRITE | WRITE |
STICKY BIT | EXECUTE | EXECUTE | EXECUTE |
Owner | The user is the owner of the files. The user of a file or directory can be changed with the chown command. |
Group | A group is the set of people that are able to interact with that file. The group set on a file or directory can be changed with the chgrp command. |
Other | Represents everyone who isn't an owner or a member of the group associated with that resource. Other is often referred to as "world", "everyone" etc. |
Read | Allows files to be read Is denoted with "r" in the output of the ls command. |
Write | Allows files to be written Is denoted with "w" in the output of the ls command. |
Execute | Execute permissions allow binary files to be executed but they also control whether a directory is searchable. For example if a directory has permissions of 0600 you cannot use the cd command to "change directory" into it, nor can you list it's contents. Execute permissions are denoted with "x" in the output of the ls command. |
setuid | Binary executables with the setuid bit (chmod u+s path) can be executed with the privileges of the file's owner. Due to it's nature it should be used with care. In octal, the setuid bit is set with 4000 e.g: "chmod 4755 path". setuid has no effect if the user does not have execute permissions. setuid is represented with a lower-case "s" in the output of ls. In cases where it has no effect it is represented with an upper-case "S". |
setgid | Binary executables with the setgid bit (chmod g+s path) can be executed with the privileges of the file's group. A useful property is to set the setgid bit on a directory so that all files and directories newly created within it inherit the group from that directory. In octal, the setgid bit is represented by 2000 e.g: "chmod 2755 path" setgid has no effect if the group does not have execute permissions. setgid is represented with a lower-case "s" in the output of ls. In cases where it has no effect it is represented with an upper-case "S". |
Sticky bit | The sticky bit (chmod +t path) was introduced for use with executables as a way of telling an operating system to keep the text segment of the program in swap space after the process had terminated. This was a performance feature designed to make subsequent execution of the program faster. The sticky bit is more commonly used on directories where it allows the files or directories within to only be moved or deleted by that object's owner, the directory owner, or the super-user. In octal, the sticky bit is set with 1000 e.g: "chmod 1755 path". The sticky bit has no effect if other does not have execute permissions. The sticky bit is represented with a lower-case "t" in the output of ls. In cases where it has no effect it is represented with an upper-case "T". |