Просмотр исходного кода

bareus-dir: add web console config

lt07 admin 7 лет назад
Родитель
Сommit
db9cbfc693
3 измененных файлов с 31 добавлено и 0 удалено
  1. 7 0
      bareos-dir.conf
  2. 8 0
      bareos-dir.d/console/admin.conf
  3. 16 0
      bareos-dir.d/profile/webui-admin.conf

+ 7 - 0
bareos-dir.conf

@@ -222,3 +222,10 @@ Console {
   CommandACL = status, .status
   JobACL = *all*
 }
+
+# needed for bareus-web
+@/etc/bareos/bareos-dir.d/profile/webui-admin.conf
+
+@/etc/bareos/bareos-dir.d/console/admin.conf
+
+

+ 8 - 0
bareos-dir.d/console/admin.conf

@@ -0,0 +1,8 @@
+#
+# Restricted console used by bareos-webui
+#
+Console {
+  Name = admin
+  Password = "Mataji"
+  Profile = "webui-admin"
+}

+ 16 - 0
bareos-dir.d/profile/webui-admin.conf

@@ -0,0 +1,16 @@
+#
+# bareos-webui webui-admin profile resource
+#
+Profile {
+  Name = "webui-admin"
+  #CommandACL = !.bvfs_clear_cache, !.exit, !.sql, !configure, !create, !delete, !purge, !sqlquery, !umount, !unmount, .help, help, *all*
+  CommandACL = list, llist, rerun, cancel, run, enable, disable, .bvfs_.*, .filesets, .jobs, restore, .schedule, show, status, import, export, release, update, label, .pools,  *all*
+  Job ACL = *all*
+  Schedule ACL = *all*
+  Catalog ACL = *all*
+  Pool ACL = *all*
+  Storage ACL = *all*
+  Client ACL = *all*
+  FileSet ACL = *all*
+  Where ACL = *all*
+}