View previous topic :: View next topic |
Author |
Message |
hftz n00b
Joined: 18 Jul 2002 Posts: 55 Location: Gawguh.
|
Posted: Thu Mar 25, 2004 11:11 pm Post subject: root-tail and /var/log permissions |
|
|
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 |
|
|
rfujimoto Apprentice
Joined: 22 Mar 2004 Posts: 195
|
Posted: Thu Mar 25, 2004 11:42 pm Post subject: |
|
|
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 |
|
|
hftz n00b
Joined: 18 Jul 2002 Posts: 55 Location: Gawguh.
|
Posted: Fri Mar 26, 2004 12:07 am Post subject: |
|
|
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 |
|
|
rfujimoto Apprentice
Joined: 22 Mar 2004 Posts: 195
|
Posted: Fri Mar 26, 2004 12:18 am Post subject: |
|
|
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 |
|
|
hftz n00b
Joined: 18 Jul 2002 Posts: 55 Location: Gawguh.
|
Posted: Fri Mar 26, 2004 12:22 am Post subject: |
|
|
ugh, I cant believe that I didnt see that. It works now, thanks alot. |
|
Back to top |
|
|
|