• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

What usernames to use with chown?

KoolioK

New Pleskian
Usually I use the root user to download zips and unzip them, afterwards I need to assign the files to a vhost user. But what are their usernames???

Sorry, I am totally new to Plesk. I only know confixx, and there everything was pretty straight forward. I simply used "chown webXY. %Folder% -r" to assign all files in %Folder% to user webXY.

What are the usernames that plesk creates? The domains don't work.

Thanks in advance!
 
Navigate to where your hosts are being stored and cd to the domain then httpdocs/.

Then type ls -la

You should see something like this.

-rwxr-xr-x 1 ftprun psacln 2988 Feb 25 17:35 style.css
-rwxr-xr-x 1 ftprun psaserv 2758 Feb 25 16:15 supplement.php
drwxr-xr-x 10 ftprun psaserv 4096 Feb 25 16:14 test
-rwxr-xr-x 1 ftprun psacln 2079 Feb 25 17:35 tips.php
-rwxr-xr-x 1 ftprun psacln 13617 Feb 25 17:36 training.php
-rw-r--r-- 1 ftprun psacln 5023 Feb 25 17:36 water.jpg


You can take the user account "ftprun" and chown

chown -R ftprun:psacln *


That will chown recursively through the directory and sub-folders.

*edit*

And if you need to reset their domains permissions for whatever reason you can use the following:

/usr/local/psa/admin/sbin/vhostmng --install-vhost --vhost-name=<domain name> --user-name=<ftp user name> --set-content-permissions
 
Last edited:
Back
Top