Difference between revisions of "Basic Unix file permissions"

From MyWiki
Jump to: navigation, search
Line 1: Line 1:
 
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.<br>
 
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.<br>
 
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.<br>
 
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.<br>
To see the files permissions you need to type "ls -l" which for example give the following result <br>
+
To see the files permissions, you need to type "ls -l", which for example give the following result <br>
-rwxr-xr-x 1 george2 george2 315 Jul 30 23:41 RadioSure.desktop
+
-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>

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