(Answer) (Category) SCO UnixWare 7/OpenUNIX 8/OpenServer 6 FAQ : (Category) User Related Information :
What do the permissions -rw-r--r do? How about drwxr-xr-x ?
Permissions control whether users can list, create, delete, access, read, modify, or run a file. Definitions are as follows:
      Directory Perms                              File Perms
     -----------------                            ------------
      r = ls the directory                         r = cat a file
      w = create / delete files in the dir.        w = modify file with vi
      x = access the directory                     x = execute a file
To answer the question, the first example lets the owner read and write to the file, and everyone else can only read it (excluding root). In the second example, the directory is set up so that the owner of the directory can list files in the directory, create/delete them, and access the directory. Everyone else, except root, can only list the files and access the directory.
Note that DELETING a file depends on the directory w permission and the directory's owner/group, NOT on the file's w permission! Permissions can be listed with the 'ls -l' command.
   Permission numerical equivalents:
read = 4 write = 2 execute = 1
You add the numerical equivalents together, eg on files:
644 755 111 / | \ / | \ / | \ rw-r--r-- rwxr-xr-x --x--x--x


<mschalit@pacbell.net>
gerberb@zenez.com

[Append to This Answer]
Previous: (Answer) What is User Equivalence and why is it important?
Next: (Answer) How do I use Korn shell commands and recall (history)?
This document is: http://www.zenez.com/cgi-bin/ou8faq/faq?file=53
[Search] [Appearance]
This is a Faq-O-Matic 2.721.