Tips Linux Explorers   All Things Linux Forum   Great Linux Links   Hometown   Email 


In Linux we talk about "users" and "groups" I´m sure know about this.
They have different permissions regarding access to files. There is a clever way to see how permissions are set.

Remember the command "ls" it gave a list of all files in the directory you´re in, "ls -a" even did show all the hidden files as well.

$ ls -l

( Will give you the files in "long" format, try: )

$ ls -l /etc/gnome/gnomerc

This is what you will get:

QUOTE (Text @ Screen)
-rwxr-xr-x          1        root    root  484 Feb 25 14:08 /etc/gnome/gnomerc

This does look a bit complicated but it really isn´t. The first 10 characters are built up like this:

- | rwx | r-x | r-x

The first one tells you whether it is a file ( - ) a directory ( d ) or a link ( l )
The next three are for the "user" 'r'ead 'w'rite and e'x'ecute. The next three for the "group" and the last three for all "others"

The next 1 stands for the number of links to the file. The owner. The group. The size in bytes. The date and time of the last modification to the file. And the name of the file.

$  ls -al /home/bruno  

Will give a long list of all the files in your home directory and their permissions.
The list is even to long for your screen:
"ls -al /home/bruno >permissions"
Places a textfile called permissions in your home directory, do print it out for further inspection, there is a lot to learn there.


-- May 4 2003 ( Revised Dec 10 2005 ) --

Tips Linux Explorers   All Things Linux Forum   Great Linux Links   Hometown   Email