You are not logged in.

#1 2009-07-14 11:37:25

fgrano
Member
Registered: 2006-10-25
Posts: 29

/var/log permissions

I recently helped setup arch on a friends computer, I don't currently have arch installed myself so I have no way of checking this. I added his user to the log group so that he would be able to view logfiles without being root, if I remember correctly this worked great for me, the problem is there's only a few logs he can view.. Is this something that has changed recently or have the permissions accidentally been changed somehow..?

calle ~ $  ls -al /var/log/
total 1040
drwxr-xr-x  6 root root    4096 2009-07-13 23:38 .
drwxr-xr-x 13 root root    4096 2009-07-13 21:25 ..
drwxr-xr-x  2 root root    4096 2009-07-13 20:54 ConsoleKit
-rw-r--r--  1 root users  15020 2009-07-13 22:21 Xorg.0.log
-rw-r--r--  1 root users  15346 2009-07-13 21:07 Xorg.0.log.old
-rw-r-----  1 root root   16741 2009-07-14 14:33 auth.log
-rw-------  1 root root    1536 2009-07-14 13:56 btmp
-rw-r--r--  1 root root    2536 2009-07-14 14:01 crond
-rw-r-----  1 root root   33353 2009-07-14 10:52 daemon.log
-rw-r--r--  1 root root   26946 2009-07-13 22:20 dmesg.log
-rw-r-----  1 root root    3196 2009-07-14 13:57 errors.log
-rw-r-----  1 root root  261858 2009-07-14 14:26 everything.log
-rw-------  1 root root   24024 2009-07-13 22:21 faillog
drwxr-xr-x  2 root root    4096 2009-03-29 16:07 gdm
-rw-r-----  1 root root  225692 2009-07-14 07:07 kernel.log
drwxr-xr-x  2 root root    4096 2009-07-13 23:42 lastfm
-rw-r--r--  1 root root  292292 2009-07-14 14:33 lastlog
-rw-r-----  1 root root  214065 2009-07-14 14:26 messages.log
drwxr-xr-x  2 root root    4096 2009-06-07 12:11 old
-rw-r--r--  1 root root   36756 2009-07-14 01:01 pacman.log
-rw-r-----  1 root root    1067 2009-07-13 22:20 syslog.log
-rw-r-----  1 root root     454 2009-07-13 23:08 user.log
-rw-r--r--  1 root root   97920 2009-07-14 14:33 wtmp
-rw-r--r--  1 root root     583 2009-07-13 22:20 wvdial
calle ~ $

How is this supposed to work?? Could someone post the output of "ls -al /var/log"?

Thanks! tongue

Offline

#2 2009-07-14 12:07:30

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: /var/log permissions

This was http://bugs.archlinux.org/task/15095 .  Should be fixed with the syslog-ng in [testing]

Offline

#3 2009-07-14 12:38:07

fgrano
Member
Registered: 2006-10-25
Posts: 29

Re: /var/log permissions

Ok, so will this be fixed when the package arrives in [core] or does one need to "chown root:log /var/log/*" or similar?

Offline

Board footer

Powered by FluxBB