next up previous contents index
Next: FIREWALLS AND PROXY SERVERS Up: GENERAL LINUX Previous: Services and Daemons   Contents   Index


Groups and Users

File and directory permissions are the basic means for providing security on a system. They are also the last line of defense against an unauthorized user reading or modifying information that does not belong to them. A properly configured system contains files and directories which are only accessible to the users in which were authorized to access those files and directories. The set of rules that a file or directory is given to tell it who can and can't access it are known as permissions. These file and directory permissions are assigned by both user and group.

Each file and directory has three sets of permissions associated with it. It gives permissions to owner, group and other. Below is the result of a sample directory listing produced by executing ls -l, displayed with each field broken down:



\resizebox*{4.4in}{!}{\includegraphics{images/Permissions.eps}}



There are three options for file permissions. Read (r), write (w) and execute (x). These three options can each be assigned to the user, group and other attributes of each file and directory. We can break down field one above as follows:

1222333444

-rw-r-r-

  1. Special Flag
  2. Owner permissions
  3. Group permissions
  4. Other permissions
We have S as a special attribute. Here is a list of special attributes:

Next we have the owner of the file, followed by the group and finally the other. Each one can have their own set of read, write and executable permissions.


next up previous contents index
Next: FIREWALLS AND PROXY SERVERS Up: GENERAL LINUX Previous: Services and Daemons   Contents   Index