浏览代码

bareus-dir: add web console config

lt07 admin 7 年之前
父节点
当前提交
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
   CommandACL = status, .status
   JobACL = *all*
   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*
+}