IBM Support

Setting the sticky bit using the cleartool protect command

Technote (FAQ)


How do I properly set the UNIX® or Linux® sticky bit on IBM® Rational® ClearCase® elements using the cleartool protect command?


Use the following syntax to properly set the "sticky bit" using the cleartool protect command:

cleartool protect -chmod u=rxs <file>


% ls -l
total 2
-r--r--r--   1 joeuser    user1         58 Oct 22 09:59 joeuser_file_user1.c

% cleartool protect -chmod u=rxs joeuser_file_user1.c
Changed protection on "joeuser_file_user1.c".

% ls -l
total 2
sr--r--   1 joeuser    user1         58 Oct 22 09:59 joeuser_file_user1.c

Note: You need to include the x bit in the command or an error will occur.

% cleartool protect -chmod u=rs joeuser_file_user1.c
cleartool: Error: Execute permission required for set-ID on execution.
cleartool: Error: Unable to change protection on "joeuser_file_user1.c".

Cross Reference information
Segment Product Component Platform Version Edition
Software Development Rational ClearCase Cleartool

Document information

More support for: Rational ClearCase

Software version: 7.0, 7.0.1, 7.1, 2003.06.00

Operating system(s): AIX, HP-UX, IRIX, Linux, Solaris

Reference #: 1147131

Modified date: 27 October 2010

Translate this page: