Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/var/log permissions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
rogue
Tux's lil' helper
Tux's lil' helper


Joined: 15 May 2002
Posts: 99
Location: Falls Church, VA

PostPosted: Wed Aug 27, 2003 3:48 pm    Post subject: /var/log permissions Reply with quote

Hi,

I'm using root-tail to show some log messages on the desktop, but the default /var/log/messages permissions are just rw for root. If I change it to allow read access for everyone, eventually it just reverts back to rw for root. Is there a file I can edit that controls the default permissions on these files?
_________________
(rob)
Back to top
View user's profile Send private message
Petyr
Guru
Guru


Joined: 08 Jan 2003
Posts: 471
Location: San Diego, CA, USA

PostPosted: Wed Aug 27, 2003 7:23 pm    Post subject: Reply with quote

I think it might be your system logger "fixing" the permissions on the file. Take a look at the config file for it and the man pages and see if there are options for it.

Petyr
Back to top
View user's profile Send private message
rojaro
l33t
l33t


Joined: 06 May 2002
Posts: 732

PostPosted: Wed Aug 27, 2003 7:46 pm    Post subject: Reply with quote

let me guess, you are using syslog-ng. as i only want to have root and some priviledged users reading the log's, i've made the following configuration:
Code:
options {
        long_hostnames(off);
        sync(0);
        stats(43200);
};

source src { unix-stream("/dev/log"); internal(); pipe("/proc/kmsg"); };

destination messages { file("/var/log/messages" owner(root) group(wheel) perm(0640)); };
destination console_all { file("/dev/tty12"); };

log { source(src); destination(messages); };
log { source(src); destination(console_all); };

this only provides root and the users within the wheel group access to the messages logfile. man syslog-ng.conf :)
_________________
A mathematician is a machine for turning coffee into theorems. ~ Alfred Renyi (*1921 - †1970)
Back to top
View user's profile Send private message
rogue
Tux's lil' helper
Tux's lil' helper


Joined: 15 May 2002
Posts: 99
Location: Falls Church, VA

PostPosted: Wed Aug 27, 2003 8:05 pm    Post subject: Reply with quote

thanks. i thought that it was something to do with the syslog config but what rojaro said definitely did the trick
_________________
(rob)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum