accurev setacl { depot <depot-name> | stream <stream-name> }
{ anyuser | authuser | <user-name> | <group-name> }
{ none | all | clear } [ inherit | noinherit ]The setacl command changes the access control list (ACL) for a depot or stream. (For controlling ACLs on individual elements, see the eacl command.) For this command, “stream” includes dynamic streams, workspace streams, and snapshots. This command either creates an ACL entry (also called a permission), or deletes one or more ACL entries.By default, AccuRev is wide open: all users can access all depots and all streams within the depots.The following commands check ACL entries on one or more workspaces/streams before proceeding. For instance, if a user does not have access to the gizmo stream, then the command accurev cat -v gizmo myfile.c causes a not-authorized error.
•
• annotate, cat, and co check the stream of the version being accessed. co also checks the current workspace.
• promote checks the stream to which the version(s) are being promoted.
• incl -b and clear check both streams involved in the cross-link.
• diff checks the streams of both versions being compared.
• merge checks the workspaces/streams of both contributor versions, but not the closest common ancestor version.
•
• mkws, mkstream, and mksnap check the specified backing stream for the workspace/stream/snapshot being created.
• chws and chstream check the stream being changed (and, if appropriate, its new backing stream).
• show streams checks the depot.
• hist -s checks the stream.setacl commands that create permissions all follow the same pattern:
• depot <depot-name> sets a permission that controls access to all the data within a particular depot. This includes the AccuWork issues, if any, stored in the depot.
• stream <stream-name> sets a permission that controls access to all the data within a particular stream hierarchy in a particular depot. (There is no need to specify the depot, because stream names are unique throughout the repository — i.e. across all depots.)
• anyuser specifies all users who do not have a password.
• authuser specifies all users who do have a password.
• <user-name> specifies a particular AccuRev user.
• <group-name> specifies all users in a particular AccuRev group.
• all grants access to the data in the specified data structure to the specified users.
• none prohibits access to the data in the specified data structure for the specified users.Section Commands that Check Permissions above details the meaning of “access”.
• Depot permission (default = inherit): noinherit specifies that the permission will apply only to the AccuWork issues in the depot. inherit specifies that the permission will also apply to all of the depot’s streams.
• Stream permission (default = noinherit): noinherit specifies that the permission will apply only to the specified stream. inherit specifies that the permission will also apply to all streams below it.Note: For a user with an AccuWork-only license, a depot-level determines whether that user can access the AccuWork issues in that depot. Such a user cannot access any of the depot’s version-controlled files, regardless of the stream-level permissions.
• Each existing depot permission is assigned the inherit flag.
• Each existing stream permission is assigned the noinherit flag.Any number of permissions can apply to the same depot or stream. For example, to grant three users access to stream kestrel_tst:Two or more permissions on a resource can apply to the same user, or to the same depot or stream. In such cases, an all permission overrides one or more none permissions. This makes it easy to implement “all but” access controls. For example, these permissions prevent everyone in the famgrp group — except for users justine and mary — from accessing stream spider_dvt:To delete an individual permission, use the clear keyword:To delete all the permissions for a particular depot or stream, use the clearall keyword:To delete all the permissions for the entire repository, use the clearall keyword without specifying a depot or stream (use with caution!):Grant access to depot gizmo only to users who have passwords:Remove all ACL permissions on stream talon_tst:
Micro Focus |