Difference between revisions of "Basic Unix file permissions"

From MyWiki
Jump to: navigation, search
Line 7: Line 7:
 
<span style="background:#7CFC00">- The little dash</span> means that the file is a normal file, as opposed to a directory, for a directory this would be "d"<br>
 
<span style="background:#7CFC00">- The little dash</span> means that the file is a normal file, as opposed to a directory, for a directory this would be "d"<br>
 
<span style="background:#FFDEAD">The following rwx</span> states the Owners permissions, here we have read, write and execute permissions.<br>
 
<span style="background:#FFDEAD">The following rwx</span> states the Owners permissions, here we have read, write and execute permissions.<br>
<span style="background:#FFA07A">For the Group members r-x</span> we have just read and execute permissions.<br>
+
<span style="background:#FFA07A">Group members get permission of  r-x</span> which is read and execute permissions.<br>

Revision as of 00:00, 8 August 2014

In the Unix world of file permissions users wishing to access a file (or directory) are divided int three categories, Owner, Group member and Other.
Files and directories have an owner and group associated with them, so if you won the file ou get the owners permissions and if one belongs to the files group thn one gets the groups permissions. Outside these categories persons get the Other permissions.
To see the files permissions, you need to type "ls -l", which for example give the following result
-rwxr-xr-x 1 george2 george2 315 Jul 30 23:41 RadioSure.desktop
Lets look more closely at the permissions of this particular file
-rwxr-xr-x 1 george2 george2 315 Jul 30 23:41 RadioSure.desktop
- The little dash means that the file is a normal file, as opposed to a directory, for a directory this would be "d"
The following rwx states the Owners permissions, here we have read, write and execute permissions.
Group members get permission of r-x which is read and execute permissions.