proftpd ftpuser vs. www-data user?

Discussion in 'Server Operation' started by unclecameron, Jun 11, 2009.

  1. unclecameron

    unclecameron New Member

    I have proftpd running for users to upload files to a webserver with many virtual hosts. Currently I've created ftpuser/ftpgroup as non-privileged user for proftpd, but this causes problems with php scripts that need to run as www-data once uploaded. I've added ftpuser to /etc/group for www-data, but this doesn't help. Is there any issue with telling proftpd to use the user/group www-data?
     
  2. falko

    falko Super Moderator ISPConfig Developer

    I don't think so.
     
  3. unclecameron

    unclecameron New Member

    I tried to do this through

    UserOwner www-data
    GroupOwner www-data

    but that needs to be in a <Directory> container I think, anyway, it didn't work.
    I then changed the ftpgroup table in msql to:
    groupname: www-data
    gid: 33
    members: www-data

    and my user login in the ftpuser table to:
    uid: 33
    gid: 33

    and I still get "permission denied" when attempting to upload, the folder is owned by

    www-data.www-data

    and I can login okay. There are no errors in the logs.
     
    Last edited: Jun 11, 2009
  4. falko

    falko Super Moderator ISPConfig Developer

    Can you go to the directory that you tried to upload to and post the output of
    Code:
    ls -la
    ?
     
  5. unclecameron

    unclecameron New Member

    Code:
    drwxr-xr-x 22 www-data www-data 4096 2008-09-27 17:34 foldername
    
    inside that folder
    Code:
    drwxr-xr-x  9 www-data www-data    12288 2008-08-16 17:36 somefolder
    -rw-r--r--  1 www-data www-data        6 2008-08-16 17:36 somefile.txt
    
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Can you post the full outputs?
     

Share This Page