Re: Can I change group and permissions on the messages file?
- From: Steve Ackman <steve@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 25 Sep 2006 00:03:39 -0400
In <slrnehdqto.fl3.ohmster@xxxxxxxxxxx>, on Sun, 24 Sep 2006 20:34:00
+0000 (UTC), The Ohmster wrote:
I have been talking with bit twister and he showed me a real neat
xconsole command to view the system messages while in xwindows.
xconsole -fg lawngreen -bg black -geom 1000x50+7+00 -file
/var/log/messages &
(All one line.)
Anyway, I am not able to open the /var/log/messages file as a
non-privileged user so I changed the group on the file from root to
ohmster and then changed the default permissions from rw owner only to
rw owner, rw group. Now I can open and view the file while I am in
xwindows with the cool xconsole command.
I went from this:
-rw------- 1 root root 432K Sep 24 16:17 messages
To this:
-rw-rw---- 1 root ohmster 432K Sep 24 16:17 messages
My question is: Is it alright to change group and permission on the
messages file and will this change "stick" or will it be lost when the
log files rotate? What would you all suggest for me to do so that I can
view the messages file anytime, as a non-root user (Me only, not
everyone on the system.)?
Paul,
You should leave the permissions alone and just,
sudo xconsole -fg lawngreen -bg black -geom 1000x50+7+00 -file /var/log/messages &
If you're the only one in the sudoers list, only
you can use the sudo command.
.
- Follow-Ups:
- References:
- Can I change group and permissions on the messages file?
- From: The Ohmster
- Can I change group and permissions on the messages file?
- Prev by Date: Re: Can I change group and permissions on the messages file?
- Next by Date: Re: Were is SuSE 8.0? =)
- Previous by thread: Re: Can I change group and permissions on the messages file?
- Next by thread: Re: Can I change group and permissions on the messages file?
- Index(es):