• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Users error

webdig

New Pleskian
Server operating system version
AlmaLinux 8.9 (Midnight Oncilla)
Plesk version and microupdate number
18.0.58 Update #2
As you can see in the image, I have two users in the user column.

The user ascra.pt belongs to another domain, from another customer account and I have the user oqzxwmnv who is the account user.

This image belongs to /var/www/vhosts/domain.com, because the folder /var/www/vhosts/domain.com/public_html and the sub-folders belong to the correct user.

I was able to correct this using the commands:

# namei -om /var/www/vhosts/lojadafloresta.pt/public_html
# grep oqzxwmnv /etc/passwd
# chown webdigho:psaserv /var/www/vhosts/lojadafloresta.pt/public_html
# namei -om "/var/www/vhosts/lojadafloresta.pt/public_html"

However, I have tried these commands without the indication of public_html, but correcting the top folder, but without effect.

Can anyone help me?
 

Attachments

  • Captura de ecrã 2024-01-27 132550.png
    Captura de ecrã 2024-01-27 132550.png
    98 KB · Views: 2
The user ascra.pt belongs to another domain, from another customer account
Why has it been done this way? What's the purpose of the different user?

Would it not have been easier to simply change the owner of error_docs back to what is is supposed to be? What question is unanswered?
 
Why has it been done this way? What's the purpose of the different user?

Would it not have been easier to simply change the owner of error_docs back to what is is supposed to be? What question is unanswered?
Hi Peter,

I honestly don't know what happened. I was migrating Cpanel server accounts when Plesk updated to version 18.0.58 Update #2 and since then it started giving error after error.
I just wanted to have user A connected to domain A, the problem is that I have folders and files in this domain that belong to user 10002, others to user A and others to user XPTO, in domain B the same problem is some folders and files that belong to user 10003, others to user B and others to user A.
All this happened in all subscriptions, some created from scratch and others migrated.
It's a huge mess.
As much as I want to change it and I've already tried, it says that I don't have permissions to do so, despite being the administrator.

Best Regards
 
When you chown a file on the Linux shell, what error do you see?

Hi Peter,

I use the command via SSH:
I try the folder cache, without success, then I tried the tmp folder, there was no error, I tried the tmp folder, there was no error, but when I did ls -l, it didn't show any changes :(

Code:
[root@cyberdragon agrosanus.pt]# ls -l
total 60
lrwxrwxrwx.  1     10005 psacln   35 Oct 21 23:30 access-logs -> /etc/apache2/logs/domlogs/agrosanus
drwxr-xr-x.  2     10005 psacln 4096 Oct 22  2019 cache
drwxr-xr-x.  2     10005 psacln 4096 Jan 18 12:16 cpanel_raw_logs
drwxr-xr-x.  2 agrosanus psacln 4096 Jan 19 01:54 error_docs
drwxr-xr-x.  4     10005 psacln 4096 Jan 18 23:09 etc
drwxr-xr-x.  2 agrosanus psacln 4096 Jan 19 01:54 httpdocs
drwx------.  4     10005 root   4096 Jan 26 03:18 logs
drwxrws---. 19 apache    psacln 4096 Jan 19 01:54 lscache
drwxr-xr-x.  2     10005 psacln 4096 Feb 18  2023 lscmData
drwxr-xr-x.  3     10005 psacln 4096 Jan 19 20:48 private
drwxr-xr-x.  3     10005 psacln 4096 Feb  3  2017 public_ftp
drwxr-xr-x. 10 agrosanus psacln 4096 Jan 26 20:21 public_html
drwxr-xr-x.  3     10005 psacln 4096 Jan 22 05:34 softaculous_backups
drwxr-xr-x.  5     10005 psacln 4096 Jan 17 08:15 ssl
drwxr-xr-x.  7     10005 psacln 4096 Dec 20 22:40 tmp
drwxr-xr-x.  2     10005 psacln 4096 Oct 27  2022 wordpress-backups
lrwxrwxrwx.  1     10005 psacln   11 Feb  3  2017 www -> public_html

[root@cyberdragon agrosanus.pt]# chown agrosanus /cache
chown: cannot access '/cache': No such file or directory
[root@cyberdragon agrosanus.pt]# chown agrosanus /tmp

[root@cyberdragon agrosanus.pt]# ls -l
total 60
lrwxrwxrwx.  1     10005 psacln   35 Oct 21 23:30 access-logs -> /etc/apache2/logs/domlogs/agrosanus
drwxr-xr-x.  2     10005 psacln 4096 Oct 22  2019 cache
drwxr-xr-x.  2     10005 psacln 4096 Jan 18 12:16 cpanel_raw_logs
drwxr-xr-x.  2 agrosanus psacln 4096 Jan 19 01:54 error_docs
drwxr-xr-x.  4     10005 psacln 4096 Jan 18 23:09 etc
drwxr-xr-x.  2 agrosanus psacln 4096 Jan 19 01:54 httpdocs
drwx------.  4     10005 root   4096 Jan 26 03:18 logs
drwxrws---. 19 apache    psacln 4096 Jan 19 01:54 lscache
drwxr-xr-x.  2     10005 psacln 4096 Feb 18  2023 lscmData
drwxr-xr-x.  3     10005 psacln 4096 Jan 19 20:48 private
drwxr-xr-x.  3     10005 psacln 4096 Feb  3  2017 public_ftp
drwxr-xr-x. 10 agrosanus psacln 4096 Jan 26 20:21 public_html
drwxr-xr-x.  3     10005 psacln 4096 Jan 22 05:34 softaculous_backups
drwxr-xr-x.  5     10005 psacln 4096 Jan 17 08:15 ssl
drwxr-xr-x.  7     10005 psacln 4096 Dec 20 22:40 tmp
drwxr-xr-x.  2     10005 psacln 4096 Oct 27  2022 wordpress-backups
lrwxrwxrwx.  1     10005 psacln   11 Feb  3  2017 www -> public_html
[root@cyberdragon agrosanus.pt]#
 
chown without "-R" only changes the owner of the argument, but not recursively the content of the directory. If you want to change all content, you'll need to "chown -R".
 
Hi Peter,

thank you from the bottom of my heart, you've helped me a lot.
I've already solved the problem with one of the domains, but all the others are missing... now it's time to go domain by domain and correct them all calmly and patiently.

Thanks again
 
Back
Top