Ralf Gross wrote: > Maria McKinley schrieb: >> Falk Sauer wrote: >>> please make shure that your changer device has the correct permissions eg.: >>> >>> crw-rw---- root disk /dev/sg0 >>> >>> and for the potentially next problem ... >>> by your tapedrive device i'm unshure, i think this should /dev/nst0, i >>> don't >>> know how its correct on exabyte tapes. >>> >>> Normally the /dev/st* device makes a automatic rewind after write, >>> the /dev/nst* make no auto rewind. Bacula needs imho a non auto rewinding >>> device. You dosn't write wich OS you use, here are little differences >>> between >>> the OSes. >> My permissions are: >> >> crw------- 1 root root 21, 0 2005-02-25 22:38 sg0 >> >> so, maybe that is my problem. Can I just change this, like any file, >> with chown (assuming that the disk part is important) and chmod? > > udev might override the permissions again. I would create an udev rule > to set the right permissions (check if your system uses udev). > > You could try something like that: > > /etc/udev/rules.d/010-local.rules > > KERNEL=="st*", GROUP="tape", MODE="0660" > KERNEL=="nst*", GROUP="tape", MODE="0660" > > /etc/init.d/udev restart (or reload...) > > The bacula user has to be member of group tape. > > Ralf >
Hmm, udev does not seem to be installed, although curiously, the config files are there. On the machine I had working previously with this tape drive and an earlier version of bacula (1.36), udev was also not installed, but again the config files were there, so it seems some other package is using and installing these config files. Weirder still, the permissions on the old machine are: crw-rw---- 1 bacula bacula 9, 128 Nov 4 2001 /dev/nst0 crw------- 1 bacula bacula 21, 0 Nov 4 2001 /dev/sg0 But there is no script in /etc/udev to set this, so I'm not sure how it got set, but it does tell me that permissions are almost certainly the problem. Additionally, mtx and and mt-st work from the command line, and btape has no problem with the auto test, so I almost certainly Falk is right, and it is a bacula permission problem. I'm still not entirely sure what to do about it. Since udev isn't actually installed, I'm not sure what to restart to read my script. Seems like something should be reading the udev config files, since I didn't put the default ones there, so some package must have. I'd rather not reboot this machine, but I will if no one knows, and then I can see if the permissions were updated. But how on earth did this get set in my previous installation without a script in udev? thanks for everyone's help! cheers, maria ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users