Le jeudi 11 juin 2009 à 13:04 +0200, Arno Lehmann a écrit : > Which user does the SD run as? > bacula-sd runs as 'bacula' user :
burp:/etc/bacula# ps x aux|grep sd bacula 19313 0.0 0.0 89768 2292 ? Ssl 06:17 0:00 /usr/sbin/bacula-sd -c /etc/bacula/bacula-sd.conf -u bacula -g tape > Also do a 'ls -l /dev/nst0 /dev/sg4' to see if the user the SD runs as > has permissions on those devices. > > (udev rules - a fun thing :-) > looks ok for me : owner is root:tape, and bacula is tape member : burp:/etc/bacula# ll /dev/sg* /dev/nst* crw-rw---- 1 root tape 9, 128 jun 10 11:46 /dev/nst0 crw-rw---- 1 root tape 9, 224 jun 10 11:46 /dev/nst0a crw-rw---- 1 root tape 9, 160 jun 10 11:46 /dev/nst0l crw-rw---- 1 root tape 9, 192 jun 10 11:46 /dev/nst0m crw-rw---- 1 root tape 9, 129 jun 10 11:46 /dev/nst1 crw-rw---- 1 root tape 9, 225 jun 10 11:46 /dev/nst1a crw-rw---- 1 root tape 9, 161 jun 10 11:46 /dev/nst1l crw-rw---- 1 root tape 9, 193 jun 10 11:46 /dev/nst1m crw-rw---- 1 root root 21, 0 jun 10 11:46 /dev/sg0 crw-rw---- 1 root root 21, 1 jun 10 11:46 /dev/sg1 crw-rw---- 1 root root 21, 10 jun 10 11:46 /dev/sg10 crw-rw---- 1 root root 21, 11 jun 10 11:46 /dev/sg11 crw-rw---- 1 root root 21, 12 jun 10 11:46 /dev/sg12 crw-rw---- 1 root root 21, 13 jun 10 11:46 /dev/sg13 crw-rw---- 1 root root 21, 14 jun 10 11:46 /dev/sg14 crw-rw---- 1 root root 21, 2 jun 10 11:46 /dev/sg2 crw-rw---- 1 root tape 21, 3 jun 10 11:46 /dev/sg3 crw-rw---- 1 root tape 21, 4 jun 10 11:46 /dev/sg4 crw-rw---- 1 root tape 21, 5 jun 10 11:46 /dev/sg5 crw-rw---- 1 root tape 21, 6 jun 10 11:46 /dev/sg6 crw-rw---- 1 root root 21, 7 jun 10 11:46 /dev/sg7 crw-rw---- 1 root root 21, 8 jun 10 11:46 /dev/sg8 crw-rw---- 1 root root 21, 9 jun 10 11:46 /dev/sg9 burp:/etc/bacula# grep bacula /etc/group tape:x:26:bacula bacula:x:108: Anyway you made me on the right way : burp:/etc/bacula# sudo -u bacula /etc/bacula/scripts/mtx-changer /dev/sg4 list 10 /dev/nst0 0 touch: ne peut faire un touch sur `/var/lib/bacula/mtx.log': Permission non accordée /etc/bacula/scripts/mtx-changer: line 62: /var/lib/bacula/mtx.log: Permission non accordée /etc/bacula/scripts/mtx-changer: line 62: /var/lib/bacula/mtx.log: Permission non accordée 1:BK0001L4 2:BK0004L4 5:BK0002L4 9:BK0003L4 12:CL0001L4 As I launched the script as root, it created logfile owned by root, so it wrote garbage when launched as bacula ! Now it works well :) Thanks ! -- Eric Belhomme - EVE SA - www.eve-team.com 2bis, voie la cardon, 91120 PALAISEAU, FRANCE Tel: +33 1 64 53 27 30,Fax: +33 1 64 53 27 40
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users