On Wed, 13 Jun 2007, Kendrick Hernandez wrote:

> Hello,
>
> I've got a Dell Optiplex 745 running RHEL5 server, which backs up
> nightly to our amanda server (a RHEL3 machine running amanda 2.4.4p1).
> Presently the amanda check barks about the permissions on /dev/root:
>
> ERROR: host: [could not access /dev/root (/): Permission denied]
>
> Which is initially set to:
>
> brw------- 1 root root 8, 2 Jun 13 10:08 /dev/root
>
> We work around this by changing the group to 'disk' and setting "g+r",
> but of course, these changes don't persist across reboots. So I took a
> look at the rules in /etc/udev/rules.d/50-udev.rules, which lists:
>
> # all block devices
> SUBSYSTEM=="block",             GROUP="disk", MODE="0640"
> KERNEL=="root",                 GROUP="disk", MODE="0640"
>
> If understand it correctly, this should be setting the proper
> permissions on /dev/root, but that's not happening.
>
> Has anyone else seen this, or have any suggestions?
>

One workaround (which we're using) is to tell the amanda server
(via the disklist file) to back up the root filesystem rather than
the mount point.  That is, use entries like

client1         /dev/hda6                       nocomp-user
client2         /dev/mapper/VolGroupSda-root    nocomp-user

rather than

client1         /                       nocomp-user
client2         /                       nocomp-user

This is because /dev/root has mode
brw-------  1 root root 3, 2 May  2 09:04 /dev/root
while /dev/hda6 is set as
brw-rw----  1 root disk 3, 2 May  2 09:04 /dev/hda6

Though if you can figure out a more elegant solution, like your udev
suggestion above, please post it!

 -Peter Ruprecht
  U of Colorado

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to