Applicable to:
- Plesk for Linux
Question
Why is an additional FTP user displayed as the owner of all content in Domains > example.com > File Manager instead of the subscription's system user?
Why is the PHP running under an additional FTP user instead of the subscription's system user?
Answer
Such behaivior related to the fact that recently, a system user of a subscription was renamed in Domains > example.com > Web Hosting Access. It is expected behavior.
System user of a subscription and additional FTP user are created with the same UID. It can be seen with the following command while connected to the server via SSH:
# grep 'FTPuser\|SYSuser' /etc/passwd
FTPuser:x:10013:1003::/var/www/vhosts/example.com:/bin/false
SYSuser:x:10013:1003::/var/www/vhosts/example.com:/bin/false
A username is requested by its UID. In case there are several usernames with the same UID, displayed username is the one which is placed higher in the file /etc/passwd
. It can be checked with the command below:
# getent passwd 10013
FTPuser:x:10013:1003::/var/www/vhosts/example.com:/bin/false
To display system user of the subscription as the owner of the subscription's files, rename the additional FTP user in Domains > example.com > FTP Access.
This will rewrite the file /etc/passwd
and put the additional FTP user at the bottom of the file. After that, the name of the FTP user can be changed back.
Comments
2 comments
In my case, I had to do the opposite: rename the system user in Domains > example.com > Web Hosting Access.
When you use several usernames with the same UID the behaviour in any Linux might become unspecified. We had issues in the past with sudo and cron. Probably programmers do assume a 1:1 relationship between user and UID.
Please sign in to leave a comment.