• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question grant ftp user access to all folders

saelwell

New Pleskian
Server operating system version
Ubuntu 20.04.4 LTS
Plesk version and microupdate number
Obsidian Version 18.0.42 Update #1
Hi. I am trying to grant global FTP access to copy files into the various subscriptions on my Plesk VPS. On a previous VPS I had the root password. Logging in as root gave me access to everything but I do not have the root password (a separate issue) on this new VPS. I have created a user ftproot and added it to the sudo group. This gives me access to the root but drilling down in my FTP client to var/www/vhosts I cannot go beyond there into the various subscriptions. Permissions look like:

drwx--x--- 10 chalmers psaserv 4096 Apr 16 23:09 domain1.org
drwx--x--- 6 dib psaserv 4096 May 3 03:33 domain2.uk
drwx--x--- 10 brenda psaserv 4096 May 3 16:13 domain3.uk
drwx--x--- 8 stephenme psaserv 4096 May 2 02:00 domain4.me.uk
drwx--x--- 9 stephenuk psaserv 4096 May 2 02:00 domain5.uk
...

Is there a way of granting my ftproot user global permissions to access these directories in a similar way to root access? Or is there another way of doing it? If I change the owner it will deny access to the different domain users.

I can access these directories on the server via SSH using 'sudo su -' but I really need access via an FTP client.

Any advice much appreciated.

Thanks,

Stephen
 
You should not use plain ftp with root access. Ever.

If you can sudo su, you can
  • set the root password, and/or
  • add an ssh public key to /root/.ssh/authorized_keys
  • (if not already done) change sshd_config and edit PermitRootLogin to without-password (this allows logging in as root only with the key you just added)
Then you can use sftp with ssh key instead of ftp(s) to connect.
 
Back
Top