Sun Microsystems 2.1 Server User Manual


 
Chapter 5 Sun MediaCenter Server Utilities 5-3
For the -d (delete) option, <title_users> stands for a comma-separated list of items of
the form:
...where <username> is a Solaris login name.
The -s, -m, and -d options accept an asterisk in the <username> field, so that you
can specify ACL changes for all users on a server. You must use a backslash (\) with
an asterisk, to prevent the shell from expanding the asterisk to mean the files in the
local directory.
For the -f option, <filename> is a text file containing a list of entries of the form of
<acl_entries>, above. Comments in the file, indicated by a hash mark (#) in column 1,
are ignored by smc_settacl.
You cannot use the -s and -f options with any other option. You can combine -m
and -d. The -s option replaces the current title ACL with the entry or entries you
specify. The -m option modifies the title ACL. Using -m, if you specify a user who is
not in the title ACL, that user is appended to the ACL. If you specify a user who is
in the ACL, that user’s permissions are changed to what you specify.
For all options, you can specify one or more title names, any of which can be local or
remote. Separate multiple title names with a space between each pair. For a remote
title, you prepend the name of the Sun MediaCenter server and a colon to the title
name. You can use an asterisk in the title name field to stand for all titles on a server.
smc_settacl has a companion command, smc_gettacl, which displays the ACL
for a specified title in the format used by smc_settacl. smc_gettacl is useful in
assigning the values in one title’s ACL to another title. For example, after you copy
titles from the server adam to the server eve, you want to give your colleague Raj
permissions to the files you just copied. Raj has r, w, a permissions on the title
ben_hur. You enter:
As with smc_settacl, smc_gettacl accepts multiple, space-separated title names.
Every title must have at least one user with admin permission. If you attempt to set
or modify a title ACL such that all users with admin permission would be removed
or have their admin permission removed, smc_settacl retains the last user with
admin permission.
u[ser]:<username>
adam% smc_gettacl ben_hur | smc_settacl -f - eve:\*