MCQs>IT & Programming>System Programming>It is not possible to set the sticky bit of a file when creating it. Therefore it is necessary to create the directory and then set the sticky bit by executing: mkdir(“/tmp/dir”, 0744); chmod(“/tmp/dir”, 07744). Why?
System Programming MCQs
It is not possible to set the sticky bit of a file when creating it. Therefore it is necessary to create the directory and then set the sticky bit by executing: mkdir(“/tmp/dir”, 0744); chmod(“/tmp/dir”, 07744). Why?
Answer
Correct Answer: The behavior of mkdir() is undefined if anything other than permission bits is set
Explanation:
Note: This Question is unanswered, help us to find answer for this one