Skip to main content

Clearcase Element Permissions on Unix

I was wondering how to set permissions on an element in clearcase under unix. You can’t just use your normal chmod. After reading “Phil for Humanity” I had the answer:
cleartool protect -chmod 550 myscript.sh
Quite simple after all. Your file, in this case myscript.sh, will now have the permissions you want.
Remember however, if you try to set write permissions on a file element, it wont set. The clearcase man page for protect advises that write perms are ignored – instead to obtain write permission to a file element, it must be checked out.
In the case of a directory element the write permission allows you to create view-private files.
Don’t forget the umask should be set correctly before you start creating files!