Hi
* Richard Gooch (rgooch@xxxxxxxxxxxxxxx) wrote:
> Yep. Doesn't matter. If you grab a recent util-linux, you'll find that
> that annoying error message will go away. At least, I think I sent
Excellent, thanks for clearing that up.
> It's not clear what the problem is. Sure, when you reboot, the default
> permissions will change. Is something being change that you think
> shouldn't?
> Or is something not being changed that you think should?
It's kind of both, as my machine is now, /dev/v4l/video0 is owned
cmsj.root with 600 permissions. I want to change this so it's owned
root.core (core is a group I created) with 660 permissions:
(this is going to look very wrong when its wrapped)
# ls -l /dev/v4l/radio0
crw------- 1 cmsj root 81, 64 Jan 1 1970 /dev/v4l/radio0
# ls -l /var/state/devfs/v4l/radio0
crw------- 1 cmsj root 81, 64 Mar 4 2001
/var/state/devfs/v4l/radio0
# chown root.core /dev/v4l/radio0
# chmod 660 /dev/v4l/radio0
# ls -l /var/state/devfs/v4l/radio0
crw-rw---- 1 root core 81, 64 Mar 4 2001
/var/state/devfs/v4l/radio0
# ls -l /dev/v4l/radio0
crw-rw---- 1 root core 81, 64 Jan 1 1970 /dev/v4l/radio0
At this point everything seems to be ok, but if I reboot,
/dev/v4l/radio0 will come back as cmsj.root and have 600 permissions. I
really can't figure out why it keeps coming back owned by cmsj.root, I
did have it owned that way at one point as an easy way of getting
permissions to the device. I've scoured every inch of my bootup scripts
and I'm positive that it isn't being manually forced to cmsj.root
ownership:
# grep -r cmsj /etc/rc.d/
#
I've also checked to make sure that it isn't something in any .bashrc's
or .profiles and there doesn't seem to be anything there that could
cause it.
The only thing I can think of that could possibly explain it is that the
devfs /dev is being mounted on top of the real /dev (ie the one on the
ext2 filesystem) and the on-disk /dev/v4l/radio0 is owned cmsj.root, but
I don't then understand how that could propogate to /var/state/devfs
because after a reboot the permissions/ownership are wrong there too.
Thanks for your help,
--
Chris "Ng" Jones
chris@xxxxxxxxxxxxxxx
www.linuxdude.co.uk
|