Bjorn
Basic Pleskian
Hi,
We have several system users that are added through CLI adduser [username]. I know this is wrong, nevermind how and why.
Everything works except with FTP the users are able to traverse up the dir tree to the server root...
When I create a new subscription everything is fine.
When I add an additional FTP user in the same domain all is ok.
What I've done/checked so far:
- I tried several plesk repair utilities, all return OK.
- Update system user in Plesk panel -> domain -> Web Hosting Access (change username)
- checked /etc/passwd / home dir is ok and /bin/false is set.
- checked DB psa -> sys_users: home value is correct
- xinetd.service restart
- Checked /etc/proftpd.conf, default group:
<Directory /var/www/vhosts>
GroupOwner psacln
</Directory>
Something to note.
- When I use the problem system user in FileZilla, I do arrive in the correct vhosts dir, but I'm still able to go up the tree. The Remote site value is: /var/www/vhosts/domain.com, this should be / and arrive in vhosts/domain dir.
- When I use the problem system user in Atom (code editor) FTP add-on, I arrive in the server root.
I'm guessing there's a config issue for these system users somewhere?
Can I repair or update the system user to fix this, or what config should I check?
Thanks!
We have several system users that are added through CLI adduser [username]. I know this is wrong, nevermind how and why.
Everything works except with FTP the users are able to traverse up the dir tree to the server root...
When I create a new subscription everything is fine.
When I add an additional FTP user in the same domain all is ok.
What I've done/checked so far:
- I tried several plesk repair utilities, all return OK.
- Update system user in Plesk panel -> domain -> Web Hosting Access (change username)
- checked /etc/passwd / home dir is ok and /bin/false is set.
- checked DB psa -> sys_users: home value is correct
- xinetd.service restart
- Checked /etc/proftpd.conf, default group:
<Directory /var/www/vhosts>
GroupOwner psacln
</Directory>
Something to note.
- When I use the problem system user in FileZilla, I do arrive in the correct vhosts dir, but I'm still able to go up the tree. The Remote site value is: /var/www/vhosts/domain.com, this should be / and arrive in vhosts/domain dir.
- When I use the problem system user in Atom (code editor) FTP add-on, I arrive in the server root.
I'm guessing there's a config issue for these system users somewhere?
Can I repair or update the system user to fix this, or what config should I check?
Thanks!