Hi Jari,

I configured sudo that no password is needed for user "bacula" to run mount and unmount.
The corresponding line from /etc/sudoers is:
bacula  ALL = (ALL) NOPASSWD: /bin/mount, /bin/umount

Nils

Jari Fredriksson schrieb:
Hello list!

I am running bacula 2.4.2 from fschwarz's EL5 rpms on
CentOS 5.2

My mount command (from storage definition) is:
    "/usr/bin/sudo /bin/mount -t iso9660 -o ro %a %m"
I can mount and unmount the dvd-writer as user bacula with
"/usr/bin/sudo /bin/mount -t iso9660 -o ro
/dev/dvdwriter-hda /mnt/bacula-dvd" without any problems.

How can you use sudo in the mount command? It asks for a password, doesn't it? 
Bacula hardly can respond to such request.



!DSPAM:492bcae7231886581397638!

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to