Re: Can I change group and permissions on the messages file?
- From: Ohmster <nowayin@xxxxxxxx>
- Date: Mon, 25 Sep 2006 01:47:28 +0000 (UTC)
Bit Twister <BitTwister@xxxxxxxxxxxxxxxx> wrote in
news:slrnehecbt.22h.BitTwister@xxxxxxxxxxxxxxx:
On Mon, 25 Sep 2006 01:26:04 +0000 (UTC), Ohmster wrote:or
[root@ohmster scripts]# /root/scripts/change_messages_perms
/root/scripts/change_messages_perms: line 4: /bin/stat: No such file
directory
Post the script you used. I am supprised FC3 does not have the
stat program. Maybe it is in a different location.
Do a
locate stat | grep bin
Thought you was going to watch a movie. ;/
Yeah, well I missed so much of the movie that it is a lost cause now, the
movie is over. :(
The script:
[root@ohmster scripts]# cat change_messages_perms
#********* 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 *********************
[root@ohmster scripts]#
Did the locate stat |grep bin and came back with plenty, this one seems
relevelt:
/usr/bin/stat
Let's try it again with an updated path to stat.
Well, the file ran and gave no output, perhaps it works. Will put it in
place as a cron daily and see if it works.
I really did want to see that movie, too. :(
--
~Ohmster
theohmster at comcast dot net
Put "messageforohmster" in message body
to pass my spam filter.
.
- Follow-Ups:
- Re: Can I change group and permissions on the messages file?
- From: Bit Twister
- Re: Can I change group and permissions on the messages file?
- 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
- 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: Can I change group and permissions on the messages file?
- 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
|