Changes

From SME Server
Jump to navigationJump to search
31 bytes removed ,  18:32, 1 February 2012
m
Please do not use extensive spaces, one space indents are enough and cause text to be preformatted
Line 32: Line 32:  
For example, say you created a user called '''fred''', then in order for '''fred''' to be able to ftp the required files via the Drupal interface, then you give them permission to do so like this:
 
For example, say you created a user called '''fred''', then in order for '''fred''' to be able to ftp the required files via the Drupal interface, then you give them permission to do so like this:
   −
    cd /home/e-smith/files/ibays/Primary/html/
+
cd /home/e-smith/files/ibays/Primary/html/
    chown -R fred:www .
+
chown -R fred:www .
    find . -type d -exec chmod u=rwx,g=rx,o= {} \;
+
find . -type d -exec chmod u=rwx,g=rx,o= {} \;
    find . -type f -exec chmod u=rw,g=r,o= {} \;
+
find . -type f -exec chmod u=rw,g=r,o= {} \;
    
Where '''fred''' is the user account you will use in Drupal to ftp the files (for example installing a new theme) and www is the account that smesever runs the web server under.
 
Where '''fred''' is the user account you will use in Drupal to ftp the files (for example installing a new theme) and www is the account that smesever runs the web server under.
Line 41: Line 41:  
Lastly you have to modify the /etc/proftpd.conf file and comment out the "DefaultRoot" line ( I used the nano editor for this ):
 
Lastly you have to modify the /etc/proftpd.conf file and comment out the "DefaultRoot" line ( I used the nano editor for this ):
   −
    cp /etc/e-smith/templates/etc/proftpd.conf/05DefaultRoot /etc/e-smith/templates-custom/etc/proftpd.conf/
+
cp /etc/e-smith/templates/etc/proftpd.conf/05DefaultRoot /etc/e-smith/templates-custom/etc/proftpd.conf/
    nano /etc/e-smith/templates-custom/etc/proftpd.conf/05DefaultRoot
+
nano /etc/e-smith/templates-custom/etc/proftpd.conf/05DefaultRoot
    
Comment out the DefaultRoot like:
 
Comment out the DefaultRoot like:
   −
    #DefaultRoot            /home/e-smith/files
+
#DefaultRoot            /home/e-smith/files
    
Now save the file by going pressing the '''control''' and '''o''' keys together, then exit nano by pressing the '''control''' and the '''x''' keys together.
 
Now save the file by going pressing the '''control''' and '''o''' keys together, then exit nano by pressing the '''control''' and the '''x''' keys together.
Line 52: Line 52:  
Then you need to expand the template:
 
Then you need to expand the template:
   −
    expand-template /etc/proftpd.conf
+
expand-template /etc/proftpd.conf
    
To confim this:
 
To confim this:
   −
    config show ftp
+
config show ftp
    
Should return:
 
Should return:
   −
    ftp=service
+
ftp=service
 
     LoginAccess=private
 
     LoginAccess=private
 
     TCPPort=21
 
     TCPPort=21

Navigation menu