ClearCase includes three utility programs for fixing protection problems on Windows:
ccase-home-dir\etc\utils\vob_sidwalk.exe repairs permissions on VOB storage directories. It can also be used to change ownership on VOB objects. For details, see Using vob_sidwalk to Change or Update VOB Users and Groups.
ccase-home-dir\etc\utils\fix_prot.exe repairs permissions on VOB or view storage directories
ccase-home-dir\etc\utils\lsacl.exe displays NTFS DACLs for file-system objects
fix_prot [-f·orce] { -root [-r·ecurse] [-recover {-chown user | -chgrp group } |
-replace·_server_process_group|
[-r·ecurse] [-type { d | f }] [-chown user] [-chgrp group] [-chmod permissions] } pname ...
owner
, group
, other
(world). Both symbolic and absolute codes are valid, such as go-x
(symbolic) or 0644
(absolute).To create a UNIX .identity directory after moving a VOB from Windows to UNIX. The VOB has been moved to the storage directory /vobstg/winvob.vbs. The new owner is vobadm and the new group is ccusers. You must run this command as root.
ccase-home-dir/etc/utils/fix_prot -root -recurse -chown vobadm -chgrp ccusers
/vobstg/winvob.vbs
To repair ACLs damaged when a view storage directory was coped to C:\ClearCaseStorage\integration.vws using a copy utility that did not preserve Windows ACLs:
ccase-home-dir\etc\utils\fix_prot -root -recover C:\ClearCaseStorage\integration.vws
To display the protection modes Clearcase associates with the directory E:\vobstg\myvob:
ccase-home-dir\etc\utils\fix_prot E:\vobstg\myvobdrwxr-xr-x MYDOMAIN\me MYDOMAIN\mygroup E:\vobstg\myvob
NOTE: fix_prot may return an error message that begins with the following text:
fix_prot: Error: unknown style protections on foo: The data is invalid.
If it does, you must rerun fix_prot and specify all of the -chown, -chgrp, and -chmod options with the absolute codes. For example:
ccase-home-dir\etc\utils\fix_prot -chown owner -chgrp group -chmod 0666 pname
lsacl [ -s | -l ] [ -n ] [ -f ] path-name
Note that you can also use %SystemRoot%\system32\cacls to display a DACL, but cacls cannot read a security descriptor from a file.
Feedback on the documentation in this site? We welcome any comments!
Copyright © 2001 by Rational Software Corporation. All rights reserved. |