Changes

From SME Server
Jump to navigationJump to search
1,891 bytes removed ,  01:19, 10 August 2007
symlink method changed, raid note moved up, file permissions pruned
Line 13: Line 13:     
You can replace the names bigdisk and mp3 with whatever valid name, just keep track of the names.
 
You can replace the names bigdisk and mp3 with whatever valid name, just keep track of the names.
 +
 +
== Notes about RAID ==
 +
*When you install SMEserver, ALL connected harddrives will be part of an RAID-array.
 +
 +
*When you add a drive to a running system, it will not take part of anything unless you do something about it. This is the case in this HowTo. Note that it will NOT take part in any RAID array and hence, get no redundancy.
 +
 +
*If you want the new drive to be part of an RAID array instead, get shell access, login as admin and select "5. Manage disk redundancy" and follow the instructions. The new disk should be empty and contain no partitions before doing this.
 +
 +
*For more info about RAID and disk management, take a look in the [[SME_Server:Documentation]].
    
== Step-by-step HowTo ==
 
== Step-by-step HowTo ==
Line 25: Line 34:  
  telinit 1
 
  telinit 1
   −
This will make you loose connection if you working tru an ssh-client (like Putty). You need direct access to the shell to proceed.
+
This will make you loose connection if you working through an ssh-client (like Putty). You need direct access to the shell to proceed.
    
=== 2 Partition ===
 
=== 2 Partition ===
Line 164: Line 173:     
4.10 If you want the ibay to be accessible from the internet, you also need to enable "follow symlinks" in apache:
 
4.10 If you want the ibay to be accessible from the internet, you also need to enable "follow symlinks" in apache:
mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
  −
  −
echo Options FollowSymLinks >> /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/85DefaultAccess
  −
  −
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
     −
  /etc/init.d/httpd graceful
+
  db accounts setprop IBAYNAME FollowSymLinks enabled
 +
signal-event ibay-modify IBAYNAME
    
=== 5 Quota (optional) ===
 
=== 5 Quota (optional) ===
Line 191: Line 196:     
If it looks fine, relax and tell the world about it, you made it!
 
If it looks fine, relax and tell the world about it, you made it!
  −
== Notes about RAID ==
  −
*When you install SMEserver, ALL connected harddrives will be part of an RAID-array.
  −
  −
*When you add a drive to a running system, it will not take part of anything unless you do something about it. This is the case in this HowTo. Note that it will NOT take part in any RAID array and hence, get no redundancy.
  −
  −
*If you want the new drive to be part of an RAID array instead, get shell access, login as admin and select "5. Manage disk redundancy" and follow the instructions. The new disk should be empty and contain no partitions before doing this.
  −
  −
*For more info about RAID and disk management, take a look in the [[SME_Server:Documentation]].
  −
      
== Notes about file permissions ==
 
== Notes about file permissions ==
The following are intended as help in the above situation.
  −
<br>This subject contains '''much''' more.
  −
=== 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
+
*For 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].
 
[http://www.ss64.com/bash/chmod.html ss64] or [http://www.oreillynet.com/linux/cmd/cmd.csp?path=c/chmod oreillynet].
  

Navigation menu