Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Can I safely conclude that the sticky bit is not used in current file sysems and reuse the bit for my own purpose.

share|improve this question

migrated from stackoverflow.com Nov 1 '11 at 14:54

This question came from our site for professional and enthusiast programmers.

4  
NO, YOU MAY NOT!! And, if I could set a larger, redder font, I would :-) –  paxdiablo Nov 1 '11 at 5:12

2 Answers 2

up vote 2 down vote accepted

No, you cannot assume that. It's not true for directories. You can make the narrower assumption that it's true for non-directory files.

share|improve this answer

Even if it's currently unused for non-directories, others have undoubtedly had the same idea and are probably currently using the sticky bit for their own nefarious purposes. The sticky bit is not meant for arbitrary user-defined marks on a file. Use extended attributes instead!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.