When you create a new title on a Sun MediaCenter server by, for example, using smc_copy to copy a video file from one server to another, you (the copier) have read, write, and admin permissions for that title. Depending on the settings of the server ACL, other users can list your title (smc_ls) and get certain statistics on the title. However, a user besides you cannot copy your title, delete it, or append to it.

To extend access for a title that you own, use the smc_settacl command.

smc_settacl is analogous to the Solaris setfacl utility. smc_settacl has the following syntax:

smc_settacl -sm<acl_entries> [server:]<titlename> ...

smc_settacl -d<title_users> [server:]<titlename> ...

smc_settacl -f<filename> [server:]<titlename> ...

For the -s(set) and -m(modify) options, <acl_entries> stands for a comma-separated list of items of the form:

u[ser]:<username>:<permissions>

<username> is a Solaris login name; <permissions> is one or more of r, w, and a (read, write, and admin, respectively). In a smc_settacl command, you must specify three permissions. Replace any permission you are not setting with a hyphen. So, for example, if you are setting read and admin permission for the user Raj, any of the following ACL entries is valid:

user:raj:r-a user:raj:-ra user:raj:ar-

Permissions are defined in TABLE 5-1.

TABLE 5-1Title ACL Semantics

Permission

Title ACL

 

 

Read

Read this title data.

 

Get statistics for this title.

Write

Write/Append this title data.

Admin (owner)

Delete/rename this title.

 

Change ACL for this title.

 

 

5-2Sun MediaCenter Server Administrator’s Guide • December 1997

Page 74
Image 74
Sun Microsystems 2.1 manual Permissions are defined in Table