dafs access delete [-n] -h host [-e export_name | -p path]
dafs access set [-n] -h host_list [-e export_name | -p path]
dafs access get [-e export_name | -p path]
The following ACL entry types are defined:
Options are provided for adding and deleting individual hosts from a specific or all exports, for setting the access list for a specific or all exports, and for viewing the access list for all or specific exports.
For each option the export to use is specified by the -e argument. This is the preferred usage. For scripting purposes the -p argument may be used instead, which allows the path for the export to be specified. If the -p argument is used it must correspond to an export point directory, e.g. /vol/vol0. If no export name/path is provided then the access operation is applied to all exports.
delete [-n] -h host [-e export_name | -p path] Delete host from the access list for export. If no export is given then the host is deleted from all access lists. If -n is specified then the ACL for the host is of type NONE.
set [-n] -h host_list [-e export_name | -p path]
Replace the access list for export_name by host_list, which is a list of hosts names delimited by colons (:). If an empty host_list is given then the access list is made empty. If no export is given then the access list is replaced for all access lists. If -n is specified then the ACL for the hosts is of type NONE.
get [-e export_name | -p path]
Display the access list for export_name. If no
export is specified then the access lists for
all exports is displayed.
dafs access add -h new_host -e prod1
Do not allow host bad_host to access any exports. Remove any positive ACL ACCESS entries, then add NONE ACL entries:
dafs access delete -h bad_host
dafs access add -n -h bad_host
Display the access lists for all exports:
dafs access get
Reset the host list for export database_log to the default (empty) list:
dafs access set -h "" -e database_log