Hi, 25.07.2007 23:54,, Craig White wrote:: > the 'end_of_backup.sh' script doesn't successfully eject the tape. > > dmesg says: > MTSETDRVBUFFER only allowed for root
This should not matter here. > bacula log says: > 25-Jul 08:27 SRV1: RunAfter: /dev/tape: Permission denied > 25-Jul 08:27 SRV1: RunAfter: /dev/tape: Permission denied Are you sure /dev/tape is the device node for your tape drive? > # grep bacula /etc/group > disk:x:6:root,bacula > bacula:x:103: > > # cat end_of_backup.sh > #! /bin/sh > /etc/bacula/delete_catalog_backup > mt rewind > mt eject > exit 0 Try lines like 'mt -f /dev/st0 rewind' (perhaps replacing rewind with rewoffl or offline) and use the device name you gave in your SD configuration. > # cat /etc/redhat-release > CentOS release 4.5 (Final) > > # rpm -q bacula-mysql > bacula-mysql-1.38.5-4 > > How can I solve this short of adding bacula to 'root' group? Adding the proper permission to the device node? Knowing which user the SD and the DIR runs as, and the exact permissions for your tape device would help, too... The former can be found out using, for example, ps or top while bacula is running, or by looking into the start script. The latter can be found out by ls -l /dev/st* /dev/tape* for example. Arno -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users