FreeBSD Bugzilla – Attachment 152020 Details for
Bug 197007
[patch] sysutils/bacula-server suggestions for device permission handling
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Extend pkg-message with devd(8) config guide
sysutils_bacula-server_pkg-message.patch (text/plain), 2.11 KB, created by
Harald Schmalzbauer
on 2015-01-22 17:26:57 UTC
(
hide
)
Description:
Extend pkg-message with devd(8) config guide
Filename:
MIME Type:
Creator:
Harald Schmalzbauer
Created:
2015-01-22 17:26:57 UTC
Size:
2.11 KB
patch
obsolete
>--- sysutils/bacula-server/files/pkg-message.server.in 2014-08-08 10:57:50.299073020 +0200 >+++ inofficial/bacula-server/files/pkg-message.server.in 2015-01-22 18:02:02.685922103 +0100 >@@ -2,6 +2,44 @@ > > bacula server was installed > >+The Bacula Storage Daemon (bacula-sd) needs write access to backup devices. >+Best method is to use devd(8) which works for devices which get powered on after >+the system finished booting and also for those which were already connected and >+powered on before machine finished booting. >+For tape drives, utilizing the sa(4) device driver, you can use the following >+example to change the owner of all /dev/nsa? nodes along with their /dev/pass? >+counterparts (copy'n'paste to your command line): >+---------------------------- >+mkdir -p /usr/local/etc/devd >+cat > /usr/local/etc/devd/sa_bacula.conf <<'EOF' >+# bacula-sd (StorageDaemon of sysutils/bacula-server) needs write access >+# to tape drives, i.e. nsa? and pass? >+ >+notify 10 { >+ match "system" "DEVFS"; >+ match "type" "CREATE"; >+ match "cdev" "nsa[0-9]+"; # evaluates to "^nsa[0-9]+$", >+ # so no nsa?.? matches, only the link >+ action "camcontrol periphlist $cdev | >+ sed -n 's/\(^pass[[:digit:]]\{1,3\}\):[[:blank:]].*/\1/p' | >+ xargs -I PASS chown bacula /dev/PASS ; >+ chown bacula /dev/$cdev"; >+}; >+'EOF' >+---------------------------- >+ >+If you use 'smartctl' with an "Alert Command" in the device section for bacula-sd, >+xpt(4) must also be accessable by bacula. You can achieve this by adding >+the following lines: >+ >+1) to ---> /etc/devfs.rules: >+[localrules=10] >+ add path 'xpt0' mode 0660 group bacula >+ >+2) to ---> /etc/rc.conf: >+devfs_system_ruleset="localrules" >+ >+ > An auto-changer manipulation script based on FreeBSDs > chio command is included and installed at > >@@ -12,8 +50,7 @@ > > %%PREFIX%%/etc/bacula/bacula-dir.conf > >-Take care of correct permissions for changer and >-tape device (e.g. /dev/ch0 and /dev/n[r]sa0) i.e. >+Take care of correct permissions for changer (e.g. /dev/ch0) i.e. > they must be accessible by user bacula. > > Due to lack of some features in the FreeBSD tape driver
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 197007
: 152020 |
152021