# User with access to logs

**URL:** <https://forums.suse.com/t/user-with-access-to-logs/27117>\
**Category:** SLES Configure-Administer\
**Created:** [June 5, 2015, 11:16am UTC](https://forums.suse.com/t/user-with-access-to-logs/27117 "2015-06-05T11:16:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![susehoush](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@susehoush](https://forums.suse.com/u/susehoush)\
**Post date:** [June 5, 2015, 11:16am UTC](https://forums.suse.com/t/user-with-access-to-logs/27117/1 "2015-06-05T11:16:53Z")

</div>

Hello,

we want to create a new user with access to the logs of a sles11sp3 machine.

the log files in /var/log all belong to root:root so standard users cannot read them

is there any way to create a non-root user to provide access to the logs?

thx,  
hugo

---

<div class="post-metadata">

**Author:** ![mikewillis](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@mikewillis](https://forums.suse.com/u/mikewillis)\
**Post date:** [June 5, 2015, 11:55am UTC](https://forums.suse.com/t/user-with-access-to-logs/27117/2 "2015-06-05T11:55:41Z")

</div>

[QUOTE=susehoush;28234]Hello,

we want to create a new user with access to the logs of a sles11sp3 machine.

the log files in /var/log all belong to root:root so standard users cannot read them

is there any way to create a non-root user to provide access to the logs?  
[/QUOTE]

If you want all non-root users to have access to the logs simply add global read on everything in /var/log/

If you want only a specific non-root user to have access you could use access control lists. E.g. to give user mike read access to everything in /var/log (-R is recursive)

[CODE]$ linux-pgyf:~ # getfacl /var/log/messages  
getfacl: Removing leading ‘/’ from absolute path names

# file: var/log/messages

# owner: root

# group: root

user::rw-  
group::r–  
other::—

$ linux-pgyf:~ # setfacl -R -m u:mike:-r /var/log/  
linux-pgyf:~ # getfacl /var/log/messages  
getfacl: Removing leading ‘/’ from absolute path names

# file: var/log/messages

# owner: root

# group: root

user::rw-  
user:mike:r–  
group::r–  
mask::r–  
other::—

linux-pgyf:~ #[/CODE]
