Kenji Lefevre wrote:
Hello,i'm trying to use amrecover but it doesn't work. I got this line in amidxtaped.20080728141244.debug Could not rewind device '/dev/nst0': tape_rewind: tape open: /dev/nst0: Permission denied could not open tape device /dev/nst0: Permission denied though i'm running amrecover as root with id uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) context=root:system_r:unconfined_t:SystemLow-SystemHigh and /dev/nst0 has permission crw-rw---- 1 root disk 9, 128 Jun 25 11:39 /dev/nst0 So root belongs to group disk.
But amrecover contacts a program on the server, and that programs runs a the amandabackup user (or whatever you specified in xinetd config. So make sure that that user is added to the group "disk" and that that xinetd option "groups = yes" is set as well.
Moreover amverify works (launched by root).
Because amverify does not contact another process, but does the verification itself.
