• Home
  • Cisco
  • Exchange
  • Linux
  • Navision
  • Network
  • Virtualization
  • Windows
  • About
  •  

    Joomla filesystem permissions and setup ProFTPd


    The recommended default permissions of 755 for directories and 644 for files should be reasonably secure.
    Use this two commands to make your www direktory have this setup:

    find /www/wordpress/www/ -type f -print0 | xargs -I {} -0 chmod 0644 {}
    find /www/wordpress/www/ -type d -print0 | xargs -I {} -0 chmod 0755 {}
    

    For joomla you may need FTP to the local database.
    For that, you need to edit the proftp configuration.
    Se below:

    RequireValidShell off
    (/etc/password needs a false shell)

    <VirtualHost 127.0.0.1>
    RequireValidShell 		off
    FactsAdvertise		off
    DefaultRoot			~
    MasqueradeAddress		127.0.0.1
    PassivePorts 64000 65000
    Port 21
    <Directory />
    AllowOverwrite on
    </Directory>
    
    <Directory /www> 
    GroupOwner	www-data
    Umask		002 003
    </Directory>
    </VirtualHost>
    
    <VirtualHost 192.168.55.2>
    RequireValidShell 		off
    FactsAdvertise		off
    DefaultRoot			~
    MasqueradeAddress		80.80.80.80
    PassivePorts 64000 65000
    Port 21
    <Directory />
    AllowOverwrite on
    </Directory>
    <Directory /www> 
    GroupOwner	www-data
    Umask		002 003
    </Directory>
    </VirtualHost>
    
    Exit mobile version