Re: Can I change group and permissions on the messages file?
- From: Bit Twister <BitTwister@xxxxxxxxxxxxxxxx>
- Date: Sun, 24 Sep 2006 19:06:50 -0500
On Sun, 24 Sep 2006 23:51:51 +0000 (UTC), Ohmster wrote:
If I change permissions on the /var/log/messages file, will the system
change it back again to root owner, root group, with root only rw
permissions and if so, how can I make it not change the permissions back?
Do not run FCx myself but you could create a script in
/etc/cron.daily to check/change it to whatever you like.
#********* start of my_kludge **************
_var_fn=/var/log/messages
_priv=$(/bin/stat -c %a $_var_fn)
if [ $_priv -ne 640 ] ; then
/bin/chmod 640 $_var_fn
fi
#************** end my_kludge *********************
.
- Follow-Ups:
- References:
- Can I change group and permissions on the messages file?
- From: The Ohmster
- Re: Can I change group and permissions on the messages file?
- From: Ohmster
- Can I change group and permissions on the messages file?
- Prev by Date: Re: Bit Twister: Is this the dhclient-exit-hooks you were talking about?
- Next by Date: Re: Bit Twister: Is this the dhclient-exit-hooks you were talking about?
- 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):
Relevant Pages
|