User resource
A User resource gives ACLs (or profiles) to a user who logs in through a PAM console.
Examples
A PAM user
User {
Name = alice
Profile = operator
}
Directives
| Directive | Type | Default | Summary | |
|---|---|---|---|---|
| Name | name | required | Name of the user, as PAM authenticated it through a PAM console. | |
| Description | string | Free text describing the user. | ||
| Job ACL | ACL list | Which jobs this user may use. | ||
| Client ACL | ACL list | Which clients this user may use. | ||
| Storage ACL | ACL list | Which storages this user may use. | ||
| Schedule ACL | ACL list | Which schedules this user may use. | ||
| Pool ACL | ACL list | Which pools this user may use. | ||
| Command ACL | ACL list | Which console commands this user may use. | ||
| File Set ACL | ACL list | Which FileSets this user may use. | ||
| Catalog ACL | ACL list | Which catalogs this user may use. | ||
| Where ACL | ACL list | Which restore target paths (the where= of a restore) this user may use. | ||
| Plugin Options ACL | ACL list | Which plugin option strings a job may be started with this user may use. | ||
| Profile | resource list | Profiles whose ACLs the user gets. |
Name
Key: name · Type: name · Required
Name of the user, as PAM authenticated it through a PAM console.
User {
Name = "alice"
}
In the console:
configure add user name=alice
Description
Key: description · Type: string
Free text describing the user.
User {
Name = alice
Description = "Backup operator"
}
In the console:
configure add user name=alice description="Backup operator"
Job ACL
Key: jobacl · Type: ACL list
Which jobs this user may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.
User {
Name = alice
Job ACL = backup-web, restore-files
}
In the console:
configure add user name=alice jobacl="backup-web, restore-files"
Client ACL
Key: clientacl · Type: ACL list
Which clients this user may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.
User {
Name = alice
Client ACL = web-fd, db-fd
}
In the console:
configure add user name=alice clientacl="web-fd, db-fd"
Storage ACL
Key: storageacl · Type: ACL list
Which storages this user may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.
User {
Name = alice
Storage ACL = File
}
In the console:
configure add user name=alice storageacl=File
Schedule ACL
Key: scheduleacl · Type: ACL list
Which schedules this user may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.
User {
Name = alice
Schedule ACL = WeeklyCycle
}
In the console:
configure add user name=alice scheduleacl=WeeklyCycle
Pool ACL
Key: poolacl · Type: ACL list
Which pools this user may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.
User {
Name = alice
Pool ACL = Full, Incremental
}
In the console:
configure add user name=alice poolacl="Full, Incremental"
Command ACL
Key: commandacl · Type: ACL list
Which console commands this user may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. A console that may use restore needs the dot commands the restore uses as well (for the GUI: .api, .help, .bvfs_* or .ovfs_*). On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.
User {
Name = alice
Command ACL = status, list, llist, restore, .api, .help
}
In the console:
configure add user name=alice commandacl="status, list, llist, restore, .api, .help"
File Set ACL
Key: filesetacl · Type: ACL list
Which FileSets this user may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.
User {
Name = alice
File Set ACL = LinuxAll
}
In the console:
configure add user name=alice filesetacl=LinuxAll
Catalog ACL
Key: catalogacl · Type: ACL list
Which catalogs this user may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. A console that may use no catalog cannot list jobs or volumes. On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.
User {
Name = alice
Catalog ACL = MyCatalog
}
In the console:
configure add user name=alice catalogacl=MyCatalog
Where ACL
Key: whereacl · Type: ACL list
Which restore target paths (the where= of a restore) this user may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. An empty list forbids every where= other than the job’s own; *all* allows any path. On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.
User {
Name = alice
Where ACL = /tmp/bareos-restores
}
In the console:
configure add user name=alice whereacl=/tmp/bareos-restores
Plugin Options ACL
Key: pluginoptionsacl · Type: ACL list
Which plugin option strings a job may be started with this user may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.
User {
Name = alice
Plugin Options ACL = python:module_name=bareos-fd-local-fileset
}
In the console:
configure add user name=alice pluginoptionsacl=python:module_name=bareos-fd-local-fileset
Profile
Key: profile · Type: resource list
Profiles whose ACLs the user gets.
User {
Name = alice
Profile = "operator"
}
In the console:
configure add user name=alice profile=operator
See also: configuration reference, configure, show