Difference between revisions of "Basic Unix file permissions"

From MyWiki
Jump to: navigation, search
Line 4: Line 4:
 
'''-rwxr-xr-x 1 george2 george2 315 Jul 30 23:41 RadioSure.desktop'''<br>
 
'''-rwxr-xr-x 1 george2 george2 315 Jul 30 23:41 RadioSure.desktop'''<br>
 
Lets look more closely at the permissions of this particular file<br>
 
Lets look more closely at the permissions of this particular file<br>
<span style="background:#7CFC00">-</span><span style="background:#FFDEAD">rwx</span><span style="background:#FFA07A">r-x</span>r-x 1 george2 george2 315 Jul 30 23:41 RadioSure.desktop
+
<span style="background:#7CFC00">-</span><span style="background:#FFDEAD">rwx</span><span style="background:#FFA07A">r-x</span><span style="background:#FFA07A">r-x</span> 1 george2 george2 315 Jul 30 23:41 RadioSure.desktop

Revision as of 23:52, 7 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