Posted by: Gangadhar on: June 17, 2009
One must be wondering how come the executable permission of a shell script file got changed after check-in. Well, at least I did when I need to re-release the patch just because of these Permissions.
Usually, when we make some script file to Clearcase elements, its permission will still be maintained. But when we check-in the same file, it’ll be having Read-Only permissions.
So, how to retain the permissions of a file after check in also? Use ‘protect’ option.
ct protect -r -chmod 555 <directory-or-file-name>
Note: ‘-r’ option is valid only for Directories.