Wednesday, June 15, 2011

--- FILE PERMISSIONS ---

Linux uses the most granular file permissions of any system today. As we
have seen the granular is due, in part, to the fact that everything gin
Linux is a file. Everything is editable, depending on who is editing and
how the permissions are set.

In the most basic Linux permissions is broken down to three sets of
Permissions:

Owner (or user)

The permissions granted to the user who owns the file

Group

The permissions granted to specific group of users. Users can be
Added to any number of available groups.

Other

The permissions granted to anyone who is not the owner, ot
member of available groups.

Each of these sets can grant any combination of the following
permissions:

Read
Write
Execute

What’s especially interesting in the Linux permission structure is how
these sets of three permissions interact. A particular user may belong
to a group that can only read, however the user might be the owner and
can then write.

-- Text view and Number view

I will only go in to text and number view, if you want to se permissions
in the graphical view simply right click it. To view permissions in a
shell use the command ls with the attribute -l

The text view is made up of ten characters. First indicates the file
type: if the file is a directory, this character till be d; if its a
regular file, it will be -. The remaining nice characters indicate the
read, write, and execute permissions for the owner, group, and other.
For example, -rw-rw-r-- represent a regular file with read and write
permissions to owner and group. And only read for other.

The numbers are more compact then text view. The numbers represent, from
left to right, the permissions given to the owner, the group, and other.

-- Last change

This field identifies the date and time at which the file was last
changed

No comments:

Post a Comment