We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Fake user adm and domain logs?
-
- Posts: 57
- Joined: Thu Apr 27, 2017 7:40 pm
- Os: Ubuntu 15x
- Web: apache + nginx
Fake user adm and domain logs?
Okay so inside /var/log it seems almost every file and directory is listed as group www-data and user adm.
Problem 1: user adm doesn't exist. Why are all the logs listed under a user that does not exist?
Problem 2: no users cannot access any log files. They get a "failed to stat" error when the try.
Now if I chown them to the username, I cannot switch them back as the account adm - is not real.
I have tried changing permissions and usernames:
I have checked the symlinks:
Yet still when downloading an error log the user gets:
Only root seems to be able to access logs.
This is a default install using the base options (the latest version), no special configuration ubuntu 16.04
Problem 1: user adm doesn't exist. Why are all the logs listed under a user that does not exist?
Problem 2: no users cannot access any log files. They get a "failed to stat" error when the try.
Now if I chown them to the username, I cannot switch them back as the account adm - is not real.
I have tried changing permissions and usernames:
I have checked the symlinks:
Yet still when downloading an error log the user gets:
Only root seems to be able to access logs.
This is a default install using the base options (the latest version), no special configuration ubuntu 16.04
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: Fake user adm and domain logs?
https://ubuntuforums.org/showthread.php?t=1318346adm: Group adm is used for system monitoring tasks. Members of this group can read many log files in /var/log, and can use xconsole. Historically, /var/log was /usr/adm (and later /var/adm), thus the name of the group.
-
- Posts: 57
- Joined: Thu Apr 27, 2017 7:40 pm
- Os: Ubuntu 15x
- Web: apache + nginx
Re: Fake user adm and domain logs?
That would be correct.... except you'll note from my screenshot the user is adm not the group - which is www-data
And still doesn't solve the "user can't access log files".
And still doesn't solve the "user can't access log files".
-
- Posts: 57
- Joined: Thu Apr 27, 2017 7:40 pm
- Os: Ubuntu 15x
- Web: apache + nginx
Re: Fake user adm and domain logs?
Has anyone ever found a solution to this problem as every time my logs are rotated I have to manually go through and again issue the commands:
This is getting more and more problematic with each new user.
Code: Select all
chown www-data:username /var/log/apache2/domains/whatever.domain.error.log
Code: Select all
chown www-data:username /var/log/apache2/domains/whatever.domain.log
This is getting more and more problematic with each new user.
Re: Fake user adm and domain logs?
You're right. I never really pay attention to this. I usually just view the log from the panel and not really accessing the file. Probably a good bug to report. I'm on Ubuntu. The actual file under /var/log/apache2/domains is own by www-data:adm but the file under the user logs folder is root:root when rotated.
The log that was not rotated kept the original permission as user:user
The log that was not rotated kept the original permission as user:user