chmod 2


[ Zettels Traum ] [ search / suche ]

von dp am 22.Dezember 96 um 18:53:54:

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

Permissions

There are three levels of access to any file: user, group, and world. Each access level has three permissions:
read, write and execute. The file permission code is made up of 9 characters: read, write and execute (in that
order) for user, group and world (in that order). A file that is readable, writable and executable by the user,
readable and executable by the group and readable only by the world would look like this:

rwxr-xr-- user owner group owner filename

chmod mode files

changes the permissions of the referenced file. The read bit is worth 4 'points', the write bit is worth 2, and the
execute bit is worth 1. You add up the points for each access level and come up with a three-digit number. For
example, to change the above-referenced file to be readable and executable by the world, add up the numerical
values for the desired permissions, i.e.:

The user gets 4+2+1 for a total of 7 The group gets 4+1 for a total of 5 The world gets 4+1 for a total of 5 To
change the file mode to this you would enter:

chmod 754

The chmod command can be easily executed via the 'site' command on an ftp client as well. See the documentation
for your ftp client for instructions on the 'site' command.


Dazu:























D. Plänitz