Re: Can I change group and permissions on the messages file?



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.
.



Relevant Pages

  • Re: File Permissions
    ... directory and go to permissions, the Set UID, Set GID and Sticky boxes are ... For User and Group Classes, I have "show entries", "write ... root or as a member of the root group), but not using samba from WinXP. ...
    (comp.os.linux)
  • Re: [RFC] FUSE permission modell (Was: fuse review bits)
    ... >> root is denied all access. ... and the kernel checks the permission. ... The userspace can't enforce the permissions. ...
    (Linux-Kernel)
  • Re: MISSING PAGEFILE.SYS FILE
    ... Agree that there's a permissions problem. ... c:\ root and killed all permission groups except Everyone Group and System. ... "George Hester" wrote: ... the Everyone group includes the System account. ...
    (microsoft.public.windowsxp.general)
  • Re: MISSING PAGEFILE.SYS FILE
    ... "George Hester" wrote: ... Not a folder on C drive called root. ... There is no need to have a seperate permissions set for the System account ... Am beginning to wonder if I have a partial SP-2 installation problem. ...
    (microsoft.public.windowsxp.general)
  • Re: [PATCH 0/3] vfs: plug some holes involving LAST_BIND symlinks and file bind mounts (try #5)
    ... A process can run inside a subdirectory it doesn't have permissions to ... root, if that's how it was started - as well as having other ... to follow a /proc/pid symlink to a path that it wouldn't ordinarily be ... directory permissions or access files that aren't in their namespace ...
    (Linux-Kernel)