chmod 1


[ Zettels Traum ] [ search / suche ]

von dp am 22.Dezember 96 um 18:46:44:

zu: perl/cgi - wie, wofür, was von Daniel am 22.Dezember 96 um 02:15:59:

The chmod command

Basically chmod is used to set your permissions. Permissions are used for each file to see who can read, write, and
exectue a file. Once you learn it, chmod is very simple to use, it works almost like a mathmatical statement. Here's a
sample command used to make your .cshrc.mine file world readable.

chmod a+r .cshrc.mine

Ok, lets break down this statement and work with it one part at a time, starting with what's before the +.

Now the letter before the plus (or minus) is used to see WHO the permissions will affect. There are 3 I will list.

a refers to EVERYBODY.
u refers to just the USER.
g refers to the GROUP, used for group accounts.

Now, what about the letters after the plus (or minus)? They are used to set the type of permission given. I will list
the three most common, and really the only ones you will need to use.

r is used to denote READIBILITY.
w is used to denote WRITEABLITY.
x is used to denote EXECUTIBILITY

Now for the symbols, there are two that you need.

+ is used to GRANT the certain permission.
- is used to REMOVE a certain permission.

And that is the basics of the chmod command, for all the extra stuff you'll never probably use, type man
chmod.


Dazu:























D. Plänitz