• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Are multiple FTP accounts possible with Plesk?

M

Mateo1041

Guest
I've been doing some playing and have used the following command line, but I still can't log in as this FTP user:

useradd -d/home/httpd/vhosts/xxxxx.com -g10001 -p123 -s/bin/false rvillage2

I have scoured the web, but have found nothing relating to getting this working in Plesk, even outside the control panel. Shouldn't the above command work? I even restarted the server remotely and it didn't help.

Any input or help would be appreciated. Thanks.

- Matt.
 
Since no one seems to answer any of my questions, I finally managed to find what I needed after hours of looking. After searching this forum, I didn't find a single helpful response regarding multiple FTP accounts as Plesk does not allow more than one.

For those who may have the same problem:

After much looking, I managed to get multiple FTP accounts working per domain in Plesk 7.5.2. By default the Plesk control panel does not allow you to have more than one FTP user account per domain, so this will have to be done manually via the prompt in SSH (http://www.chiark.greenend.org.uk/~sgtatham/putty/). Here's what I did:

1) Logged into SSH with root account.
2) Typed the following to add the user:

useradd -d/home/httpd/vhosts/xxxxx.com -g10001 -p123 -s/bin/false user

The above should work if you just insert the proper domain name, password, and user. You should be able to leave the other parameters as they are above.

The general syntax is the following:

useradd -d<HOME DIRECTORY> -g<GROUP> -p<FTP PASSWORD> -s<SHELL INFORMATION> <FTP USER>

More information can be found here:

http://www.computerhope.com/unix/useradd.htm

3) Next type the following to restart your FTP server. We want to make sure the changes take effect.

/etc/init.d/xinetd restart

Or the following may do as well:

service xinetd restart

Lastly, you can also try:

service proftpd restart

4) You may change this user's FTP password if needed by typing the following:

passwd <USER>

5) Lastly, make sure you add this user to the proper group so they can actually browse directories and work with files when logged in via FTP:

gpasswd -M<USER> psaserv

Documentation on this command can be found here:

http://node1.yo-linux.com/cgi-bin/man2html?cgi_command=gpasswd

Please note that "psaserv" is the same group regular FTP users are added to. So you can now have multiple FTP users under the same domain account!
 
After searching this forum, I didn't find a single helpful response regarding multiple FTP accounts as Plesk does not allow more than one.
This is not exactly true as plesk does allow for ftp users for subdomains and web users for domains, just not an additional ftp user for the httpdocs or httpsdocs directories for the main site.
 
Agreed. That is what I meant. In my case, a client needed two main FTP accounts for both himself and his website developer.
 
be warned!

i followed the instructions contained within the post to create a second ftp user.

running the following command broke every domain on the server!!!

gpasswd -M<USER> psaserv

after running useradd cmd adding the username to the end of

psaserv:!:2523:apache,psaftp,psaadm

in /etc/group will allow them to login via ftp.

also once you have added the user you don't need to restart any services.
 
Hi,

I have tried this method and i still could not ftp in using the new username and password.

Any advise?
 
Webuser modify

I tested this version of FTP-User creation, and works fine. The only reason, why i looked for another model was, i want to control all users from the Plesk-Panel (who's online) and i want to control the transfervolume they caused at all time.

So i just used this command to edit the existing Webusers:

usermod -d/home/httpd/vhosts/thedomain -g10001 -p123 -s/bin/false thewebuser

This one changes the Webuser "thewebuser" homedirectory of the domain "thedomain".

Once u changed the users homedirectory with that command u need to set the password to the user again. (u can do this via plesk or via passwd user)

To grand this user rights on directories just use chmod.

Greetz Gamba
 
The following works for me.

useradd -d<HOME DIRECTORY> -g<INITIAL GROUP> -G<GROUP> -p<FTP PASSWORD> -s<SHELL INFORMATION> <FTP USER>
useradd -d/home/httpd/vhosts/DOMAIN/httpdocs -g10001 -Gpsaserv -pPASSWORD -s/bin/false USER
/etc/rc.d/init.d/xinetd restart
passwd USER
chmod 777 HOME DIRECTORY
 
how do i create a group, because it is not working and maybe is because i have not created a user

thanks :confused:
 
How do I delete user?

This works great to add a user ... now how do I delete the user added?

:)
 
Use the 'userdel' command in linux.

userdel [-r] login

The '-r' option: Files in the user's home directory will be removed along with
the home directory itself and the user's mail spool. Files
located in other file systems will have to be searched for and
deleted manually.

Edit: Wow, I hate when I cross post, missed it by a minute!
 
Wow..this certainly helps alot. Does this work on plesk 8.0 as well?
 
It does, tried it!!

Plesk 8 - Debian 3.1 Sarge

Very excellent work, this plugin helps me with some users!

Cheere
Haggy
 
Back
Top