• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Finally unlimited number of FTP accounts

J

jaspet

Guest
I needed additional FTP accounts with separate logins and directories. There is no way to achieve this with Plesk console so I done some search in the forum and KB. After a day of experiments, I found the way.

I will try to explain it easies possible way so anyone could understand. Experienced admins - sorry me :)

1. connect with ssh, login as root
2. create directory of your choice
(mkdir /home/jaspetFTP)
3. add new user and set dir above as his home dir
(useradd -d /home/jaspetFTP jaspet)
4. set password (passwd jaspet)
5. assign user to "psacln" group
(usermod -g psacln jaspet)
6. change ownership of his homedir to user and group
(chown jaspet:psacln /home/jaspetFTP)
7. edit file /etc/ftpchroot and add new line with user login into it
(vim /etc/ftpchroot)
8. restart psa service
(/etc/init.d/psa restart)
 
Ok, I don't understand. Does this mean I can have more than one username/password combo so that I can have multiple user (using dreamweaver) make changes to a single website? Each user being able to edit all files on the domain?
Give me an example of the home directory I would set ?
Where does the password get set ?
I need a more simple set of instruction. Sorry.

Thanks
 
Originally posted by tobtob
Ok, I don't understand. Does this mean I can have more than one username/password combo so that I can have multiple user (using dreamweaver) make changes to a single website? Each user being able to edit all files on the domain?
Give me an example of the home directory I would set ?
Where does the password get set ?
I need a more simple set of instruction. Sorry.

Thanks

OMG!
Of course you could set it in way, that more users have same rights on same web, but what is point of this?
Sorry man but if you don't even understand what this is for, please dont try it.
 

1. connect with ssh, login as root
2. create directory of your choice
(mkdir /home/jaspetFTP)
3. add new user and set dir above as his home dir
(useradd -d /home/jaspetFTP jaspet)
4. set password (passwd jaspet)
5. assign user to "psacln" group
(usermod -g psacln)
6. change ownership of his homedir to user and group
(chown jaspet:psacln /home/jaspetFTP)
7. edit file /etc/ftpchroot and add new line with user login into it
(vim /etc/ftpchroot)
8. restart psa service
(/etc/init.d/psa restart) [/B]


3. useradd -d /home/jaspetFTP jaspet -s /bin/false

5. usermod -g psacln jaspet
 
WorstCase: Thanks for corrections

I should pay more attention writing it, specially missing nick in group assign was stupid, so I changed this in original post but the other thing - disabling shell access for user is logic and usefull, but not necessary in my opinion so I leave it in your post only, you should gain some credit too :)
 
@jaspet

yeah, its not necessary but plesk use by default /bin/false for it ftp-accounts.. so i thought...
 
ftpchroot file syntax?

Originally posted by jaspet
7. edit file /etc/ftpchroot and add new line with user login into it
(vim /etc/ftpchroot)

My ftpchroot file is empty, what is the syntax for adding user login into it? Is (vim /etc/ftpchroot) an SSH command?
 
empty ftpchroot

simply put your nick to the file

yes, vim etc/ftpchroot is ssh command and it launches vim text editor and desired file in it

nevertheless working with vim is quite a fight especially for the firt time so I recommend other way: connect with sFTP (as root), download ftpchroot, edit it locally and then upload back

dont use just ftp for that, it really isnt good idea to connect as root unsecurely
 
Back
Top