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

How do I : Set up two ftp users on a single domain ?

Discussion in 'Plesk for Linux - 8.x and Older' started by tobtob, Mar 14, 2007.

  1. tobtob

    tobtob Guest

    I need to let an additional developer into a domain to do some design work. He needs to access the site via Dreamweaver (FTP). The owner of the site doesn't want to supply hime with the domains username and password and wants me to set up an additional username and password that can access everything under HTTPDOCS.
    This is easy for me on Windows but I can't find and info on adding an additional FTP user with plesk? How is this done ?

    I'm running Plesk 8.1 on RHEL3

    Thanks in advance you your help.
  2. jwdick

    jwdick Guest

    It cannot be done through the Plesk interface but you can do it manually if you have terminal access through SSH

    These are not my instructions ( sorry, I did not save that info to give the credit where credit is due )

    Using the shell since the Plesk control panel won't allow it in the GUI.

    Assuming you already have an existing domain (example.com) with the primary FTP user
    (jack) with password (schmidt) with home directory (/home/httpd/vhosts/example.com),
    and you wish to create additional ftp users (jill and bob) with the same access privileges as jack:


    Login to server via SSH as root.

    Issue the shell command:
    cat /etc/passwd |grep 'jack'

    This will show you a line similar to the following:

    The first number (after the 2nd colon : ) is 10041, so this is the UID of user jack.
    You will need this in the 'useradd' lines since useradd wants a number for the UID.

    The second number (after the 3rd colon : ) is 10001, this is the GID (psacln), we won't need that right now.

    Then do the following shell commands to create the users and passwords:
    useradd -u 10041 -o -d /home/httpd/vhosts/example.com -g psacln -s /usr/local/psa/bin/chrootsh jill
    useradd -u 10041 -o -d /home/httpd/vhosts/example.com -g psacln -s /usr/local/psa/bin/chrootsh bob
    passwd jill (enter the new password and confirm it, does not have to be the same as jack's)
    passwd bob (enter the new password and confirm it, does not have to be the same as jack's)

    You should now be able to use an FTP client to login with that user's name and password.
    User jill and bob should be able to see the example.com docroot just as user jack can.
    You should NOT be able to browse above the example.com docroot directory.

    All 3 users should have the same access to the files since they belong to the same group, so no matter
    which of the users created or edited the file(s), all should be able to access/edit/whatever the same files.

    For more information on the shell utilities used, use:
    man useradd
    man passwd


    Since these are users defined at the OS level, when connecting with an FTP client, they would login with
    username 'jill', 'bob', or 'jack'. They would NOT use 'jill@example.com'.

    This also means that USERNAMES MUST BE UNIQUE.
  3. tobtob

    tobtob Guest

    Well, I thought there might be a big response to this. Has anyone tried the instruction above? Does it work? Or does everyone have a simpler way of setting up multiple users on a domain? If so, please supply a simple step by step method for doing this.
    I'd try it but being a linux novice if I run into problems I'll have a tough time recovering.
    Has anyone had success with the above instructions ?
  4. jaspet

    jaspet Guest

    Why you need extra ftp account in the first place? you could both use same login and password.
  5. s.huisman

    s.huisman Guest