Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
file permissions change at boot - /var/log/messages
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
blackrax
n00b
n00b


Joined: 06 Mar 2004
Posts: 9

PostPosted: Sun Mar 14, 2004 8:47 pm    Post subject: file permissions change at boot - /var/log/messages Reply with quote

gentoo comrades,

i normally keep a tail on /var/log7messages -- the default permission is -rw------ root:root; i manually have to set them to -rw-r---- root:adm, but after reboot the file permission reverts back to the original - how do i overcome this? is there any /etc/ file where i can configure permissions on files and folders (short of adding it to rc.conf)?

cheers,
//blackrax
Back to top
View user's profile Send private message
grimshaw
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2003
Posts: 101
Location: Greensboro, NC 27403, USA, Earth

PostPosted: Sun Mar 14, 2004 9:22 pm    Post subject: Reply with quote

The option you are looking with syslog-ng is...

perm(0640) owner("root") group("adm")

(http://www.campin.net/syslog-ng/faq.html#perms)

If you are using another syslogger, look through the docs on how to change the UMASK or FILE MASK.

- John
_________________
All that is necessary for the triumph of evil is that good men do nothing.
-- Edmund Burke (1729-1797)
Back to top
View user's profile Send private message
blackrax
n00b
n00b


Joined: 06 Mar 2004
Posts: 9

PostPosted: Sun Mar 14, 2004 10:41 pm    Post subject: Reply with quote

ah - wonderful; i skimmed through the syslog-ng and syslog-ng.conf man pages, but didn't find anything there.

thanks for the reply,
//blackrax
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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