Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Fake user adm and domain logs?

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
viraladmin
Posts: 57
Joined: Thu Apr 27, 2017 7:40 pm

Os: Ubuntu 15x
Web: apache + nginx
Fake user adm and domain logs?
  • Quote

Post by viraladmin » Mon Jun 12, 2017 4:46 pm

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.

Image

Image

Now if I chown them to the username, I cannot switch them back as the account adm - is not real.

Image

I have tried changing permissions and usernames:

Image

I have checked the symlinks:

Image

Yet still when downloading an error log the user gets:

Image

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
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: Fake user adm and domain logs?
  • Quote

Post by tjebbeke » Tue Jun 13, 2017 9:04 am

adm: 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.
https://ubuntuforums.org/showthread.php?t=1318346
Top

viraladmin
Posts: 57
Joined: Thu Apr 27, 2017 7:40 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: Fake user adm and domain logs?
  • Quote

Post by viraladmin » Tue Jun 13, 2017 10:24 am

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".
Top

viraladmin
Posts: 57
Joined: Thu Apr 27, 2017 7:40 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: Fake user adm and domain logs?
  • Quote

Post by viraladmin » Mon Feb 05, 2018 9:56 pm

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:

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.
Top

noogen
Posts: 66
Joined: Thu Jan 05, 2017 9:20 pm

Re: Fake user adm and domain logs?
  • Quote

Post by noogen » Wed Feb 07, 2018 3:23 am

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
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password