Alfonso Amato - Sintecnos srl schrieb:
> I agree and your position is true.
> 
> Can you tell me what method you have in mind for changing permissions? A 
> shell line inside /etc/init.d/bacula-sd.conf (I use Fedora) with the 
> chmod previously said or a different command?

If your system supports udev, you can write your own rule. This is for
a debian etch system.

/etc/udev/rules.d/010-local.rules

SUBSYSTEM=="scsi_generic", SYSFS{model}=="T40A            ",
SYMLINK+="NEC-T40A", GROUP="tape", MODE="0660"
KERNEL=="st*",                  GROUP="tape", MODE="0660"
KERNEL=="nst*",                 GROUP="tape", MODE="0660

VU0EM005:~# ls -l /dev/NEC-T40A 
lrwxrwxrwx 1 root root 4 2007-02-09 15:18 /dev/NEC-T40A -> sg11
VU0EM005:~# ls -l /dev/sg11 
crw-rw---- 1 root tape 21, 11 2007-02-09 15:18 /dev/sg11

VU0EM005:~# ls -l /dev/nst*
crw-rw---- 1 root tape 9, 128 2007-02-09 15:18 /dev/nst0
...

You can get the necessary information with udevinfo.

udevinfo -a -p $(udevinfo -q path -n /dev/$YOURDEVICE)

Ralf

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to