Re: Does Debian change permissions automatically??
--- Iwan Mouwen <iwan@vvier.tudelft.nl> wrote:
> > > As a regular user (not root) I want to be able
> to do a 'tail -f
> > > /var/log/messages' whenever I dialup my ISP.
> This is all set up fine
> > > but there is a recurring permissions problem:
> every time I reboot,
> > > *something* changes the group permissions of
> /var/log/messages
> > > FROM:
> > > -rw-r----- 1 root adm 225523 May
> 18 13:15 /var/log/messages
> > > ^^^
> > > BACK TO:
> > > -rw-r----- 1 root root 225523 May
> 18 13:15 /var/log/messages
> > > ^^^^
> > > I chgrp back to adm, and something changes it
> back to root, etc.
> > >
>
> AFAIK only /etc/cron.weekly/sysklogd touches
> /var/log/messages.
>
> check that this file contains this line (or
> something similar):
> savelog -g adm -m 640 -u root -c 4 $LOG
> >/dev/null
> ^^^^^
>
> also:
> man syslogd-listfiles && man savelog
>
>
> Iwan.
Hi,
I have the same problem but with /dev/dri. I am
trying to have user access to /dev/dri/card0 (Matrox
G400) for hardware accellerated games. To do this I
created a group called 'dri' and added my user to it.
Then I logged in as root and "chgrp -R dri /dev/dri"
so users of the dri group have access to /dev/dri/* (I
figured it was like group 'audio' for audiocard
access).
This works for <24 hours and when I check /dev/dri
after failure I receive:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ra:/etc/cron.daily# l /dev/dri
total 0
crw-rw---- 1 root root 10, 63 May 13
11:33 card0
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
As you can see I have been following this thread
and am looking in /etc/cron.daily/ for a script that
is changing the permissions automagically.......and I
may have just found the 'culprit':
/etc/cron.daily/sxid ???
The file is laid out as follows:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#!/bin/sh
SXID_OPTS=
if [ -x /usr/bin/sxid ]; then
/usr/bin/sxid ${SXID_OPTS}
fi
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
If I "man sxid" I receive the following:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
SXID(1)
SXID(1)
NAME
sxid - check for changes in s[ug]id files and
directories
SYNOPSIS
sxid [ --config <file> ] [ --nomail ] [
--spotcheck ] [
--listall ]
DESCRIPTION
Sxid checks for changes in suid and sgid files
and direc
tories based on its last check. Logs are stored
by default
in /var/log/sxid.log. The changes are then
emailed to the
address specified in the configuration file.
The default
location for the config file is /etc/sxid.conf
but this
can be overridden with the --config option and
specifying
an alternate location.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
This leads me to beleive that if I edit the
/etc/sxid.conf to exclude this specific directory from
checking that I will have this situation rectified.
I will post results of the 'test'. I hope this may
help you and that if another user sees huge gaping
holes in my logic they will correct me.
=====
Regards- Tim Stetson Whiskey Sour Nuhn O. Yobiznez
Licq # 14373626
Why?.........Why not?..............Why not try?
The rule of an inquisitive mind.
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
Reply to: