LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Blogs > brownie_cookie
User Name
Password

Notices

Rate this Entry

Chmod

Posted 05-24-2011 at 05:02 AM by brownie_cookie

Thanks to Colucix, it became clear how to use chmod.
I hope this helps for other people who are starting to learn Linux !!

They are octal numbers. If you consider a triplet of permissions
Code:
Code:
rwx
they correspond to 4, 2, 1 respectively:
Code:
Code:
421
If you sum these values you obtain uniquely identified permission sets. For example, you have:
Code:
Code:
rwx = 4 + 2 + 1 = 7
r-x = 4 + 0 + 1 = 5
rw- = 4 + 2 +0 = 6
The chmod command requires this sum for each of the three triplets so that 755 is the same as
Code:
Code:
rwxr-xr-x
421401401
 7  5  5
Hope this helps.

If you got any questions, don't hesitate to PM me or post to my blog !!
Posted in Uncategorized
Views 436 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 07:39 AM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration