On Sat, Jun 24, 2006 at 11:18:06PM -0700, Robert Grey enlightened us: > On Jun 24, 2006, at 6:27 PM, Jon LaBadie wrote: > > >On Sat, Jun 24, 2006 at 05:46:27PM -0700, Robert Grey wrote: > >>I am setting up Amanda on a Gentoo box with an Overland > >>LoaderXPress and > >>can't seem to get past an amcheck issue. The amdump operation > >>works fine > >>but amcheck gives this error: > > > >amdump is working but amcheck is not? > >I'd first check permissions on amcheck. > >It should be root owned and setuid'ed. > > > > setuid is set and the owner is root; this was set by the gentoo > emerge (build) process: > > dev64 daily # ls -la /usr/sbin/amcheck > -rws--x--- 1 root amanda 40640 Jun 23 00:08 /usr/sbin/amcheck > > I am fairly sure the permissions are correct because amcheck running > as amanda does switch the tapes after it can't work with the drive: > > dev64 ~ # ls -la /dev/sg0 > crw-rw---- 1 root tape 21, 0 Jun 23 00:43 /dev/sg0 > dev64 ~ # ls -la /dev/changer > lrwxrwxrwx 1 root root 3 Jun 24 12:07 /dev/changer -> sg0 > dev64 ~ # ls -la /dev/nst0 > crw-rw---- 1 root tape 9, 128 Jun 23 00:43 /dev/nst0 > dev64 ~ # ls -la /dev/tape > lrwxrwxrwx 1 root root 4 Jun 24 12:07 /dev/tape -> nst0 > dev64 ~ # sudo -u amanda id > uid=87(amanda) gid=87(amanda) groups=26(tape),87(amanda) > > > > >>----------- > >>Here is my amanda.conf: > >>----------- > >>org "daily" > >>mailto "<removed>" # space separated list of operators at > >>your site > >>dumpuser "amanda" # the user to run dumps under > > > >is amanda user or amanda's group allowed to read the tape device? > > > > see above >
"tape" is the group which can read/write the tape drive. amanda is part of that group, but it is not it's primary group. I didn't see your xinetd config file, but do you have "groups = yes" set, so that xinetd will allow the permissions of secondary groups to be used? Matt -- Matt Hyclak Department of Mathematics Department of Social Work Ohio University (740) 593-1263