$title = "The File Mode"; $area = "Unix Support"; $metadata = "unix, file, mode"; $pfloc = ""; require '/usr/local/wwwdocs/ucs/fragments/header.phtml'; require '/usr/local/wwwdocs/ucs/fragments/header-bc.phtml'; ?>
Access permissions are shown in the file mode, which can be displayed by the ls command. Permissions can be changed using the chmod command and default permissions set by using umask.
The file mode consists of a string of 10 characters:
-rw------- 2 nabc 3287 Apr 8 12:10 file1The owner of the file has read and write permission.
-rw-r--r-- 2 nabc 3287 Apr 8 12:11 file2The owner has read and write permission. Everyone else (the group and all other users) can read the file.
-rwx--x--x 2 nabc 3287 Apr 8 12:10 myprog
drwxr-x--- 2 nabc 1024 Jun 17 10:00 SCCSThe owner has read, write and execute permission to this directory. The group can read and search it. Nobody else can get access.