Re: Can I change group and permissions on the messages file?
- From: Ohmster <nowayin@xxxxxxxx>
- Date: Mon, 25 Sep 2006 01:17:10 +0000 (UTC)
Bit Twister <BitTwister@xxxxxxxxxxxxxxxx> wrote in
news:slrnehe7cr.u2.BitTwister@xxxxxxxxxxxxxxx:
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 *********************
Ahhh, where there is a will, there is a way. Good looking out buddy, that
will work!
--
~Ohmster
theohmster at comcast dot net
Put "messageforohmster" in message body
to pass my spam filter.
.
- 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
- Re: Can I change group and permissions on the messages file?
- From: Bit Twister
- Can I change group and permissions on the messages file?
- Prev by Date: Re: Were is SuSE 8.0? =)
- Next by Date: Re: Can I change group and permissions on the messages file?
- 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
|