Changes

From SME Server
Jump to navigationJump to search
1,733 bytes added ,  15:34, 17 April 2007
Added notes about file permissions
Line 145: Line 145:  
  chown -R admin:allstaff /mnt/bigdisk/ibays/mp3
 
  chown -R admin:allstaff /mnt/bigdisk/ibays/mp3
   −
4.4 Set permissions to the ibay mp3 as in the original. For help on this, look at [http://www.ss64.com/bash/chmod.html ss64] or [http://www.oreillynet.com/linux/cmd/cmd.csp?path=c/chmod oreillynet]. The "-R" (optional) means recursive, subdirectorys will be included in the command.  
+
4.4 Set permissions to the ibay mp3 as in the original. For help on this, look at bottom of this page. The "-R" (optional) means recursive, subdirectorys will be included in the command.  
 
  chmod 775 -R /mnt/bigdisk/ibays/mp3  
 
  chmod 775 -R /mnt/bigdisk/ibays/mp3  
   Line 201: Line 201:  
*For more info about RAID and disk management, take a look in the [[SME_Server:Documentation]].
 
*For more info about RAID and disk management, take a look in the [[SME_Server:Documentation]].
    +
 +
== Notes about file permissions ==
 +
 +
=== Basic style ===
 +
<code>---------</code> = 3+3+3 positions
 +
 +
'''Position'''
 +
<br>rwx------ = First set describes owner permissions
 +
<br>---rwx--- = Second set describes group permissions
 +
<br><code>------rwx</code> = Third set describes user permissions
 +
 +
'''Permissons and positions in a set'''
 +
<br>r-- = read
 +
<br>-w- = write
 +
<br>--x = execute
 +
 +
 +
=== 3 digit style ===
 +
000 = 3 positions
 +
 +
'''Position'''
 +
<br>n-- = owner
 +
<br>-n- = group
 +
<br>--n = user
 +
 +
'''Permission'''
 +
<br>read = 4
 +
<br>write = 2
 +
<br>execute = 1
 +
 +
Permissions are added together to a sum for one position.
 +
 +
 +
=== Translate basic style to a 3-digit style ===
 +
 +
'''Position'''
 +
<br>First set = first digit = owner
 +
<br>Second set = second digit = group
 +
<br>Third set = third digit = user
 +
 +
'''Permission'''
 +
<br>r = read = 4
 +
<br>w = write = 2
 +
<br>x = execute = 1
 +
 +
=== Examples ===
 +
<code>---------</code> = 000 [owner=0+0+0][group=0+0+0][user=0+0+0] Nobody can do anything.
 +
 +
r--r--r-- = 444 [owner=4+0+0][group=4+0+0][user=4+0+0] Everybody can read.
 +
 +
-w--w--w- = 222 [owner=0+2+0][group=0+2+0][user=0+2+0] Everybody can write.
 +
 +
--x--x--x = 111 [owner=0+0+1][group=0+0+1][user=0+0+1] Everybody can execute.
 +
 +
rw-rw-rw- = 666 [owner=4+2+0][group=4+2+0][user=4+2+0] Everybody can read and write.
 +
 +
rwxr----x = 741 [owner=4+2+1][group=4+0+0][user=0+0+1] Owner can read, write and execute. Group can read. User can execute.
 +
 +
rwxrwxrwx = 777 [owner=4+2+1][group=4+2+1][user=4+2+1] Everybody can read, write and execute.
 +
 +
rwxrwxr-x = 775 [owner=4+2+1][group=4+2+1][user=4+0+1] Owner can read, write and execute. Group can read, write and execute. User can read and execute.
 +
 +
*For more help about chmod and file permissions, look at
 +
[http://www.ss64.com/bash/chmod.html ss64] or [http://www.oreillynet.com/linux/cmd/cmd.csp?path=c/chmod oreillynet].
       
----
 
----
 
[[Category:Howto]]
 
[[Category:Howto]]
206

edits

Navigation menu