glite-catalog-setacl — Modify the ACL of files and directories
glite-catalog-setacl [ -h ] [ -q ] [ -s SERVICE ] [ -V ] [ -v ] [ -b NUM ] [ -r ] { -d PRINCIPAL ...} { -m ACL ...} LFN...
glite-catalog-setacl [ -h ] [ -q ] [ -s SERVICE ] [ -V ] [ -v ] [ -b NUM ] [ -r ] { -x ACL ...} LFN...
glite-catalog-setacl [ -h ] [ -q ] [ -s SERVICE ] [ -V ] [ -v ] [ -b NUM ] [ -r ] { -D FILE | -M FILE | -X FILE } LFN...
glite-catalog-setacl is a command-line tool for modifying the ACL of files and directories.
Print a short help message on parameters and usage, and exit.
Quiet operation.
Specifies the service endpoint to use. If SERVICE starts with http://, https:// or httpg://, then it is taken as a direct service endpoint URL. Otherwise SERVICE is taken as a service instance name and Service Discovery is invoked to look up the endpoint.
If this option is not specified, Service Discovery will be invoked and the first available catalog will be used. If the Service Discovery fails, the program will exit with an error.
If this option is not specified, only services with a known good status will be returned by Service Discovery. However if you explicitely specify a service name or an endpoint, the tool will try to use it regardless of its registered status.
If you specify an HTTP URL with an empty host name, the tool will dump the SOAP requests to the standard output and will read the SOAP reply from stdin.
Increases the verbosity level.
Print the version number and exit.
Set the number of modifications that will be sent in a single batch operation.
Request recursive processing of directories.
Delete the ACL entry for the specified PRINCIPAL. If there was no previous ACL entry for PRINCIPAL, the command does nothing. The same PRINCIPAL must not appear in a -m option. May not be used together with the -x option.
Add or modify an existing ACL entry. ACL entries have the form of PRINCIPAL:PERMISSION, as described by the glite-catalog-getacl(1) command. If there LFN has no previous ACL entry for PRINCIPAL, a new entry will be added, otherwise the existing ACL entry will be modified. The same PRINCIPAL must not appear in a -d option. May not be used together with the -x option.
Set the list of ACL entries to exactly the set specified at the command line. Any other previous ACL entries will be discarded. ACL may be NONE, which will cause all existing ACL entries to be deleted and no new ACL entries to be added. May not be used together with the -d and -m options.
Delete the ACLs listed in FILE. FILE must contain one ACL specification per line. Lines starting with # (hash sign) are treated as comments and ignored. Reading of the file stops at the first empty line. When deleting ACLs, only the principal name is used, the permissions listed in the file are not checked. If FILE is - (dash), the ACLs are read from the standard input.
The output of the glite-catalog-getacl(1) command is suitable as input for this option.
Add or modify the ACLs listed in FILE.
Set the list of ACLs to exactly what is listed in FILE.
Name of the files and/or directories to modify. The following URI formats are recognized:
LFN - Logical File Name. It can be either <path> or lfn://<path>. <path> must be absolute and must start with a slash (/). <path> may contain wildcards (? meaning any character and * meaning any string). Wildcards may appear at any part of the path, so you can specify constructs like /*/*/foo meaning every file named foo in any subdirecory two levels below the root directory.
GUID - Globally Unique Identifier. It must be given in the form of guid://<GUID>. The LFN belonging to the GUID will be looked up in the catalog and used for subsequent operations. GUID must have the form XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX, where every X means a hexadecimal digit.
SURL - Storage URL. This is an URL of the form srm://<path>. The tool will look up the LFN for which the SURL is registered as a replica and will use that LFN for subsequent operations.
Specifies the type of the Fireman catlog service to use during service discovery. The default value is org.glite.FiremanCatalog.
Specifies the type of the Storage Element Index service to use during service discovery. The default value is org.glite.SEIndex.
Specifies the type of the Metadata service to use during service discovery. The default value is org.glite.Metadata.