Skip to main content
IBM 
ShopSupportDownloads
IBM HomeProductsConsultingIndustriesNewsAbout IBM
IBM : developerWorks : Linux : Education - Tutorials
LPI certification 101 exam prep, Part 3
ZIPPDF (letter)PDF (A4)e-mail
Main menuSection menuFeedbackPreviousNext
3. The Linux permissions model
  


Changing suid and sgid page 19 of 23


Setting and removing the suid and sgid bits is fairly straightforward. Here, we set the suid bit:


# chmod u+s /usr/bin/myapp

And here, we remove the sgid bit from a directory. We'll see how the sgid bit affects directories in just a few panels:


# chmod g-s /home/drobbins

Main menuSection menuFeedbackPreviousNext
PrivacyLegalContact