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

    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

    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
     

Share This Page