3
Access control for viewprivate files in dynamic views Any file created in a dynamic view is subject to Rational® ClearCase® access control, whether or not it is ever added to source control. In a dynamic view, the initial owner, group, and protection mode for a viewprivate file are determined differently on Linux® and on the UNIX® system than they are on Windows®. Initial owner, group, and protection mode on Linux and the UNIX system On Linux and the UNIX system, the initial owner, group, and protection mode for a view private file are determined by the following rules: Owner. The initial owner is the user of the process that creates the file or directory. Group. The initial group is the primary group of the process that creates the file or directory. Protection mode. The initial protection mode for a viewprivate file depends on the umask of the user who creates the file or directory. A umask is a setting supported on Linux and the UNIX system that specifies that some permissions are not granted when the user creates a file. (For details, see the umask reference page on Linux or the UNIX system.) When a user creates a viewprivate file or directory, Rational ClearCase begins with a set of permissions that depend on how the file or directory is created. The permissions specified by the user’s umask are then removed by Rational ClearCase. For example, if the user’s umask is 002, write permission for others is removed by Rational ClearCase. You can use the cleartool describe command or the Linux and UNIX systembased ls command to display the owner, group, and protection mode for a viewprivate file or directory. You can use the Linux and UNIX systembased chown command to change the owner, the chgrp command to change the group, and the Linux and UNIX systembased chmod command to change the protection mode. Initial owner, Group, and protection mode on Windows On Windows, the initial owner, group, and protection mode for a viewprivate file are determined by the following rules: Owner. The initial owner is the user of the process that creates the file or directory. Group. The initial group is assigned in one of two ways based on the group of the process that creates the file or directory: If the process’s primary group is the same as the VOB’s group, that group is assigned. Otherwise, the process’s group list is compared with the VOB’s supplementary group list and the first group that appears on both lists is assigned. Protection mode. A viewprivate file or directory initially has read, write, and execute permission for all users. You can use the cleartool describe command or the Properties of File or Properties of Directory window in Rational ClearCase Explorer or Windows Explorer to display the owner, group, and protection mode for a viewprivate file or directory. You cannot change the owner or group of a viewprivate file or directory. You can

Access Control for View Pvt Files

Embed Size (px)

DESCRIPTION

Access Control for View Pvt Files

Citation preview

Page 1: Access Control for View Pvt Files

3/19/2015 Access control for view­private files in dynamic views

http://www­01.ibm.com/support/knowledgecenter/api/content/nl/en­us/SSSH27_7.1.1/com.ibm.rational.clearcase.cc_admin.doc/topics/r_access_view_priv… 1/3

Access control for view­private files in dynamicviewsAny file created in a dynamic view is subject to Rational® ClearCase® access control,whether or not it is ever added to source control.

In a dynamic view, the initial owner, group, and protection mode for a view­private fileare determined differently on Linux® and on the UNIX® system than they are onWindows®.

Initial owner, group, and protection mode on Linux andthe UNIX systemOn Linux and the UNIX system, the initial owner, group, and protection mode for a view­private file are determined by the following rules:

Owner. The initial owner is the user of the process that creates the file ordirectory.Group. The initial group is the primary group of the process that creates the file ordirectory.Protection mode. The initial protection mode for a view­private file depends onthe umask of the user who creates the file or directory. A umask is a settingsupported on Linux and the UNIX system that specifies that some permissions arenot granted when the user creates a file. (For details, see the umask referencepage on Linux or the UNIX system.) When a user creates a view­private file ordirectory, Rational ClearCase begins with a set of permissions that depend on howthe file or directory is created. The permissions specified by the user’s umask arethen removed by Rational ClearCase. For example, if the user’s umask is 002, writepermission for others is removed by Rational ClearCase.

You can use the cleartool describe command or the Linux and UNIX system­based lscommand to display the owner, group, and protection mode for a view­private fileor directory. You can use the Linux and UNIX system­based chown command tochange the owner, the chgrp command to change the group, and the Linux andUNIX system­based chmod command to change the protection mode.

Initial owner, Group, and protection mode on WindowsOn Windows, the initial owner, group, and protection mode for a view­private file aredetermined by the following rules:

Owner. The initial owner is the user of the process that creates the file ordirectory.Group. The initial group is assigned in one of two ways based on the group of theprocess that creates the file or directory:

If the process’s primary group is the same as the VOB’s group, that group isassigned.Otherwise, the process’s group list is compared with the VOB’s supplementarygroup list and the first group that appears on both lists is assigned.

Protection mode. A view­private file or directory initially has read, write, andexecute permission for all users.

You can use the cleartool describe command or the Properties of File orProperties of Directory window in Rational ClearCase Explorer or WindowsExplorer to display the owner, group, and protection mode for a view­private file ordirectory.

You cannot change the owner or group of a view­private file or directory. You can

Page 2: Access Control for View Pvt Files

3/19/2015 Access control for view­private files in dynamic views

http://www­01.ibm.com/support/knowledgecenter/api/content/nl/en­us/SSSH27_7.1.1/com.ibm.rational.clearcase.cc_admin.doc/topics/r_access_view_priv… 2/3

use the Read­only check box in Windows Explorer Properties window or the attrib+R (equivalent to mode 777) and attrib –R (equivalent to mode 555) commands tospecify whether all users have write permission. You cannot change any otherpermissions.

Permission to create view­private filesA process must have write permission for both the view and a containing directory in theview to create a file or directory in the containing directory. For view permissions, seePermission to write views.

If the containing directory is an element version, the process must have write permissionfor the element. See Permission to write elements. If the containing directory is a view­private directory, the process must have write permission for the view­private directory.See Permission to write view­private files.

Permission to delete view­private filesA process must have write permission for both the view and a containing directory in theview to delete a file or directory in the containing directory. For view permissions, seePermission to write views.

If the containing directory is an element version, the process must have write permissionfor the element. See Permission to write elements. If the containing directory is a view­private directory, the process must have write permission for the view­private directory.See Permission to write view­private files.

Permission to read view­private filesA process must have read permission for both the view and a view­private file ordirectory in the view to read the file or directory. For view permissions, see Permission towrite views.

The algorithm used by Rational ClearCase considers the process’s user and group and theview­private file or directory’s owner, group, and protection mode to determine whether togrant read permission for the file or directory. See Access algorithm for VOB and viewdata.

Permission to write view­private filesA process must have write permission for both the view and a view­private file ordirectory in the view to write the file or directory. For view permissions, see Permission towrite views.

The algorithm used by Rational ClearCase considers the process’s user and group and theview­private file or directory’s owner, group, and protection mode to determine whether togrant write permission for the file or directory. See Access algorithm for VOB and viewdata.

Permission to execute view­private filesA process must have execute permission for both the view and a view­private file ordirectory in the view to execute the file or directory. For view permissions, see Permissionto write views.

The algorithm used by Rational ClearCase considers the process’s user and group and theview­private file or directory’s owner, group, and protection mode to determine whether togrant execute permission for the file or directory. See Access algorithm for VOB and view

Page 3: Access Control for View Pvt Files

3/19/2015 Access control for view­private files in dynamic views

http://www­01.ibm.com/support/knowledgecenter/api/content/nl/en­us/SSSH27_7.1.1/com.ibm.rational.clearcase.cc_admin.doc/topics/r_access_view_priv… 3/3

data.

Parent topic: Access control for views and objects they contain