Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Another FTP setup question

  1. #11
    Join Date
    Dec 2011
    Location
    Kalamazoo, Michigan
    Beans
    88
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Another FTP setup question

    Thank you!

  2. #12
    Join Date
    Dec 2011
    Location
    Kalamazoo, Michigan
    Beans
    88
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: system permissions

    Quote Originally Posted by PD24 View Post
    i did this and the existing ftp accounts now have access to the root folder!!!! this is badddd
    how can i change this?
    Thank you!

  3. #13
    Join Date
    Nov 2011
    Beans
    7

    Re: system permissions

    Quote Originally Posted by TFroehlich3 View Post
    Thank you!

    Thank You? I didnt realise this would happen!!!!! I thought the idea was setting the /var/www/ folder up so that the "webmaster" group could have access.

  4. #14
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    8,997
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: system permissions

    I set the DocumentRoot in Apache to $HOME/web for each virtual site. You need to make sure that /home/username has 711 permissions, and that /home/username/web has 755 permissions. That way when users connect with FTP or any other method, they end up in their home directories and far away from /var/www.

    If you want to increase the level of security between users, put the www-data user in each website user's group, then set /home/username to 710 and /home/username/web to 750. Now the Apache user can read the files, but no one else can.
    Last edited by SeijiSensei; January 20th, 2012 at 05:14 PM.

Page 2 of 2 FirstFirst 12

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
  •