proftpd & apache on same user

Discussion in 'Server Operation' started by trashed, May 21, 2008.

  1. trashed

    trashed New Member

    Hi.
    I followed the tutorial proftpd+mysql+quota and I was trying to make it work so that it shares the running privileges with apache but I am having troubles doing so.
    Currently:

    * Apache: runs as www-data(33):www-data(33)
    * ProFTPd: runs as proftpd(106):nogroup

    I created ftpuser(2001):ftpgroup(2001) like the tutorial showed. I also added ftpuser to the www-data group.

    I now have (in ftpuser table):
    2 admin PASS 2001 2001 /www /sbin/nologin
    and in ftpgroup:
    ftpgroup 2001 ftpuser

    unfortunately, all the files created in /www from an ftp connection are owned by ftpuser:ftpgroup and not by ftpuser:www-data.
    How can I fix this so that both apache and proftpd can write the same files (without having to chmod them 777)?
    Thanks
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Add www-data to the ftpgroup group.
     

Share This Page