Linux permissions are basically split into two areas. These are: • File ownership • File access permissions Every file has an owner. This is usually the user who created the file, although this can be changed.Users can also be classed into groups, so similar users can be grouped together. The other element is the access permissions for the file. These are split into three areas: • Who can read (view) the file ( r) • Who can write to the file (w) • Who can run the file (this only applies to files that can be run) (x) Let’s look an example. Open a console and do a directory listing by typing: ls -al at the command line. This is simply a directory listing, but lets look at one line as an example: -rw-r r 1 jono jono 1701 Jul 13 15:23 test.txt A lot of information is given. Reading the information from left to right, this is what it means: - ...
KTU FOSS Lab Solutions-by Dr Binu V P