Setting the sticky bit using the cleartool protect command

Technote (FAQ)


Question

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

Answer

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

cleartool protect -chmod u=rxs <file>


Example:

% 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
-r-
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

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Rational ClearCase
Permissions

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:

2010-10-27

Translate my page

Machine Translation

Content navigation