Chmod?
Tried man chmod but it doesn't show about the chmod 777?
Saw quite a numbers of different numbers behind chmod, what exactly are the differences? |
File permissions can be set for read, write and execute.
Each attribute has a value read=4 write=2 execute=1 that has to be set for the user, the group and others. The first digit behind the chmod command refers to the user, the second to the group and the third to everyone else. A simple math exercice can tell you what you wanna know chmod 400 makes the file readable, not writeable and not executable for the user, nobody else can even read it. chmod 644 gives read and write permissions for the user but no write permissions for the group or others chmod 777 gives everyone read/write and execute permissions. |
chmod 777 gives read, write and execute status to the owner, group members and the rest of the world on a file. It's unlikely that you want this.
The numbers after chmod are octal numbers that relate to three binay bits. So binary 110 gives octal number 6 and means read, write but not execute permissions. There are more explanations here: http://gnuru.org/index.pl?node_id=746 |
this page has a pretty easy to understand explenation of things
http://gd.tuwien.ac.at/linuxcommand.org/lts0070.html about half way down the page, and then it goes on to talk about the numbers and what they mean |
All times are GMT -5. The time now is 07:32 PM. |