Adding manually an FTP user for a specific folder

Discussion in 'Installation/Configuration' started by Novacom, Dec 11, 2006.

  1. Novacom

    Novacom New Member

    Hi !

    Is it possible to add a specific user allowed to read/write by FTP in a specific folder inside ISPConfig ? I know it cannot be done with the current version and the control panel, but can I modify directly my /etc/passwd to add the user, then let him access by proftpd ?

    I host several small website (without domains for them, only subfolders on my domains), I just want to permit access to them to the end user...

    Thanks !
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can add the user manuall to /etc/passwd and /etc/shadow, then bloch the username in ISPConfig by adding it to the file /home/admispconfig/ispconfig/users
     
  3. Novacom

    Novacom New Member

    Adding a user for specific FTP folder.

    Hi Till,

    Sorry for the delay, I managed to get the user working now.

    Following your directions, from a root prompt :

    1. adduser webx_specificuser
    2. gave real name and password
    3. edited /etc/passwd to change the :/home/webx_specificuser to reflect my correct path (ie : /var/www/webx/web/myspecificfolder/)
    4. edited /etc/shadow, but i guess no changes were made here.
    5. added webx_specificuser to the end of /home/admispconfig/ispconfig/users
    6. chown -R webx_specificuser:www-data /var/www/webx/web/myspecificfolder
    7. Bingo, I have correct access to a folder inside a domain for a user.


    The only thing I wonder is why put the new user at the end of /home/admispconfig/ispconfig/users ?

    Thanks !

    Francis
     
    Last edited: Jan 11, 2007
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    If you add a user with a userid in the range of ISPConfig, you will get user conflicts that may corrupt your system.
     
  5. Novacom

    Novacom New Member

    Finalised. Everything is fine

    Thank you Till,

    I corrected my initial post to reflect the correct steps.

    Francis
     
  6. Alecs

    Alecs New Member

    Can you update this post please? I am interested in this .. ISPConfig 3 :)
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    This thread does not apply to ISPConfig 3. ISPConfig 3 offers unlimited additional FTP users for each website out of the box, just add the FTP user from within ISPConfig by clicking on the new FTP user button.
     
  8. Alecs

    Alecs New Member

    Ok, my mistake to post in here, but this is the only thing that I found. My issue is how to manually add a FTP user in ISPConfig 3?
    In the www folder I want to have a "test" folder for tests. How can I add a FTP user in ISPConfig 3 with no domain?
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Yiu can add a FTO user in the ftp_user table of the dbispconfig database manually.
     

Share This Page