The Cellar  

Go Back   The Cellar > Main > Technology
FAQ Community Calendar Today's Posts Search

Technology Computing, programming, science, electronics, telecommunications, etc.

Reply
 
Thread Tools Display Modes
Old 04-06-2002, 05:08 PM   #1
dave
Guest
 
Posts: n/a
Eh, it's pretty easy.

4 is read
2 is write
1 is execute

a permission has 4 "bits" associated with it. a common permission is 0755. starting at the right and reading left (which is how permissions are actually read - more on this in a minute), it's world-executable and world-readable (5), group executable and group readable, and owner readable, executable and writeable. anything not specified is interpreted as a leading zero. for example, if you do a

chmod 55 filename

the permissions will be 0055.

chmod 755 filename

and the permissions will be 0755. the leading 0 is used for setting stickybits and the like. you don't need to worry about it unless you're doing suid stuff.

anyway, once you spend some time with it, it'll become pretty simple. 4 read, 2 write, 1 execute. add 'em up.
  Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 12:17 AM.


Powered by: vBulletin Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.