• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

custom ftp access for a custom dir

D

Dawn

Guest
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
 
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.
 
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
 
You are correct, if you don't want them having shell access, then /bin/false would be fine.
 
Back
Top