Results 1 to 1 of 1

Thread: Linux Permissions for Wordpress (LAMP)

Hybrid View

  1. #1
    Join Date
    Sep 2011
    Beans
    7

    Exclamation Linux Permissions for Wordpress (LAMP)

    I'm trying to configure a Linux server with secure permissions in /var/www. I've read that you shouldn't add your user account to the www-data group for various reasons. Instead, it's best (I'm told) to create a separate developer's group.

    Here's what I came up with:

    Code:
    group add developers

    Code:
    usermod -a -G developers my_account

    Code:
    chown -R root:developers /var/www

    Code:
    find /var/www/ -type d -exec chmod 2775 {} \;

    Code:
    find /var/www/ -type f -exec chmod 664 {} \;


    Finally, I'd set the default umask to:

    Code:
    umask 002


    Questions:
    (a). Is this reasonably secure? (b). Is any of this redundant? (c). Does this setup require any change of the default umask? If so, to what?
    Last edited by tts5; April 4th, 2012 at 10:24 PM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •