Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
root-tail and /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
hftz
n00b
n00b


Joined: 18 Jul 2002
Posts: 55
Location: Gawguh.

PostPosted: Thu Mar 25, 2004 11:11 pm    Post subject: root-tail and /var/log permissions Reply with quote

Im trying to get root-tail working with fluxbox, however when I try to run it I get permission denied on /var/log/messages. Can someone tell me a good way to fix this?
Back to top
View user's profile Send private message
rfujimoto
Apprentice
Apprentice


Joined: 22 Mar 2004
Posts: 195

PostPosted: Thu Mar 25, 2004 11:42 pm    Post subject: Reply with quote

depending on your logging daemon you may be able to create a new log and set the permissions of the log to user readable.

I did this once with syslog-ng.

It generally consisted of something like this.

source src { unix-stream("/dev/log"); internal(); pipe("/proc/kmsg"); };
destination messagesusr { file("/var/log/messagesusr" owner(YOUR_USERNAME)); };

log { source(src); destination(messagesusr);

--
Unfortunately my hdd died recently and I haven't gotten around to redoing my syslog-ng config. So it may spit out some syntax errors. More information, and the source I used when I set this up is at the main site.

Hope this helps in at least giving you a start.

[edit: I found a backup /]
Code:

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


destination messagesusr {file("/var/log/messagesusr" group("wheel") perm(0640)); };

log { source(src); destination(messagesusr); };


Another way is to install sudo and run root-tail with that

[/edit]
Back to top
View user's profile Send private message
hftz
n00b
n00b


Joined: 18 Jul 2002
Posts: 55
Location: Gawguh.

PostPosted: Fri Mar 26, 2004 12:07 am    Post subject: Reply with quote

thanks for the reply.

Upon restart of syslog-ng I get the error Parse error reading configuration file, exiting. (line 23)

On line 23 I have
destination messagesusr { file("/var/log/messagesusr" group("wheel") perm(0640)); );

anything that you can see wrong?
Back to top
View user's profile Send private message
rfujimoto
Apprentice
Apprentice


Joined: 22 Mar 2004
Posts: 195

PostPosted: Fri Mar 26, 2004 12:18 am    Post subject: Reply with quote

hftz wrote:
thanks for the reply.

Upon restart of syslog-ng I get the error Parse error reading configuration file, exiting. (line 23)

On line 23 I have
destination messagesusr { file("/var/log/messagesusr" group("wheel") perm(0640)); );

anything that you can see wrong?

Yep, my copy paste left off an important part :(
Code:

destination messagesusr {file("/var/log/messagesusr" group("wheel") perm(0640)); };


The last bracket should be a squigly brace (for lack of a better term).
Back to top
View user's profile Send private message
hftz
n00b
n00b


Joined: 18 Jul 2002
Posts: 55
Location: Gawguh.

PostPosted: Fri Mar 26, 2004 12:22 am    Post subject: Reply with quote

ugh, I cant believe that I didnt see that. It works now, thanks alot.
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