1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

custom ftp access for a custom dir

Discussion in 'Plesk for Linux - 8.x and Older' started by Dawn, Jun 22, 2006.

  1. Dawn

    Dawn Guest

    0
     
    Hi,

    I've read the GREAT thread @ http://forum.swsoft.com/showthread.php?postid=118777&highlight=add+AND+ftp+AND+user#post118777http://forum.swsoft.com/showthread.php?postid=118777&highlight=add+AND+ftp+AND+user#post118777 about creating a custom ftp account.

    I need a similiar thing, but I don't want to have a "copy" of my main-ftp-user of the domain. I only want to create a custom ftp-account which has rights for a specific directory on a specific domain.

    Can anybody tell me how can that be done?

    Greets and thanks,
    Dawn
     
  2. jamesyeeoc

    jamesyeeoc Guest

    0
     
    Basically the same instructions, but leave out the following options:

    -u 10041 (or whatever UID)
    -o

    Leaving out the -u will cause useradd to pick the next highest UID (see 'man useradd' or 'info useradd')

    Leaving out the -o will cause useradd to use unique UIDs

    Then just modify the -d path to what you need and leave the other options the same as in my post. (The -d option specifies the users home login directory)
    Example: /home/httpd/vhosts/domain.com/httpdocs/userdirectoryname

    Remember, this creates a *nix user, but will not show up in the Plesk CP, nor can it be modified through the Plesk CP.
     
  3. Dawn

    Dawn Guest

    0
     
    Hi jamesyeeoc,

    Thanks a lot for your very fast and very useful answer. It worked exactly in the way I wanted to :)

    There is only one thing on your instructions which isn't secure enough for me: When you do it in the way you explained, you give the new user shell acces. I wan't allow that.

    I used the following command instead:
    useradd -d /var/www/vhosts/[domain]/[ftpdir] -g psacln -s /bin/false [username]

    The "-s /bin/false" switch prevents that as I know.

    Greets and big THX,
    Dawn
     
  4. jamesyeeoc

    jamesyeeoc Guest

    0
     
    You are correct, if you don't want them having shell access, then /bin/false would be fine.
     
Loading...