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
  


Resetting permissions page 10 of 23


In addition to flipping permission bits on and off, we can also reset them altogether. By using the = operator, we can tell chmod that we want the specified permissions and no others:


$ chmod =rx scriptfile.sh

Above, we just set all "read" and "execute" bits, and unset all "write" bits. If you just want to reset a particular triplet, you can specify the symbolic name for the triplet before the = as follows:


$ chmod u=rx scriptfile.sh

Main menuSection menuFeedbackPreviousNext
PrivacyLegalContact