Different User/Group

Discussion in 'Server Operation' started by wfx, Mar 17, 2006.

  1. wfx

    wfx New Member

    Hi,
    First sorry for my ask in comments (have not see the note about that).
    I follow the HowTO:
    http://www.howtoforge.com/proftpd_mysql_virtual_hosting_p3
    And all works fine (is a realy good HowTo)!

    My problem is.
    I cant find the way how to use a different user and group for a ftp user.
    Example:
    FTP User: daisy
    Home: /home/daisy as
    User: daisy and
    Group: users

    FTP User: gambit
    Home: /home/gambit as
    User: www and
    Group: www

    thx.
    wfx
     
    Last edited: Mar 22, 2006
  2. falko

    falko Super Moderator ISPConfig Developer

    Are you referring to the ftpuser table? uid and gid must always have the same values!
     
  3. wfx

    wfx New Member

    I setup in ftpgroup:
    groupname gid members
    ftpgroup 2001 ftpuser
    www 33 www

    Then in ftpuser:
    userid uid gid
    daisy 2001 2001
    gambit 33 33

    i log in as gambit an create a directory "dada"
    and then i look on it :
    ftp> ls -l
    200 PORT command successful
    150 Opening ASCII mode data connection for file list
    drwxr-xr-x 2 gambit (?) 4096 Mar 18 19:10 dada
    226 Transfer complete.

    If i view it on the server i get:
    root@philoctetes:~# ls -l /home/gambit/
    drwxr-xr-x 2 65533 65533 4096 2006-03-18 20:10 dada

    The group www real exist.
    Please what do i wrong?
     
  4. wfx

    wfx New Member

    Maybe this is the point, referring from to and how?

    this looks right to me.
     
  5. falko

    falko Super Moderator ISPConfig Developer

    I meant that you must put the correct values into the ftpuser MySQL table.
     
  6. wfx

    wfx New Member

    Then in ftpuser:
    userid uid gid
    daisy 2001 2001
    gambit 33 33

    I use 33 for gambit with the result i post.

    Ok. thx maybe it is not the way for me to go.
     
  7. falko

    falko Super Moderator ISPConfig Developer

    Please try a group ID above 1000.
     
  8. wfx

    wfx New Member

    the group with the id 33 is set by the system (distribution) real name is
    www-data (for files under htdocs).

    thx.
     

Share This Page