Results 1 to 2 of 2

Thread: Help setting user permissions

  1. #1
    Junior Member
    Join Date
    Dec 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default Help setting user permissions

    I have a ubuntu lts server setup. I connect to it using ssh through terminal.

    I created a new user on the server, added him to a group, and am trying to set group permissions so they can write to the /var/www directory.

    The problem I have is if I connect to the server using root, I can write to the /var/www folder. If I use the new user I created I cannot.

    I'm looking for a step by step walk-through on how I can configure this from the ssh terminal window.

    Thank you in advance!

  2. #2
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,515
    Thanks
    17
    Thanked 815 Times in 511 Posts
    Rep Power
    10

    Default

    It is recommended that you use root only or different users for /var/www/ directory other than www-data (or apache user) for security. Are you looking for virtual hosting or a single website? For virtual hosting I recommend creating /home/www/$username pattern with their own permissions.
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. vsftpd virtual user permissions
    By charless in forum CentOS / RHEL / Fedora
    Replies: 0
    Last Post: 18th May 2010, 02:07 AM
  2. Replies: 1
    Last Post: 29th April 2010, 05:13 AM
  3. User not able to write on a file with 770 permissions
    By abhinav4 in forum CentOS / RHEL / Fedora
    Replies: 2
    Last Post: 5th April 2010, 05:06 PM
  4. User rights and permissions
    By ProfiMK in forum Ubuntu / Debian
    Replies: 3
    Last Post: 11th February 2010, 04:02 PM
  5. Secure vsftpd FTP permissions on anonymous user uploads
    By nixcraft in forum Getting started tutorials
    Replies: 6
    Last Post: 20th December 2006, 03:00 AM

Posting Permissions

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