Q:How to change file permission modes

A:CHMOD is a pretty simple concept once you get the hang of it. I promise. CHMOD is the method RaidenFTPD utilizes to control the mode operand. The mode of a file or directory dictates its permissions. The mode is specified as an absolute value (an octal number for the truly geeky) and is specified as nnn, where n is a number from 0 to 7. The mode may have any of following values: 400 Allow read by owner. 200 Allow write by owner. 100 Allow execution (delete) by owner. 700 Allow read, write, and execute/delete by owner. 040 Allow read by group. 020 Allow write by group. 010 Allow execution (delete) by group. 070 Allow read, write, and execute/delete by group. 004 Allow read by others. 002 Allow write by others. 001 Allow execution (delete) by others. 007 Allow read, write, and execute/delete by others. Do you understand the pattern? Let me recap for you. The first of the three numbers applies to the owner. The second number applies to users that are in the same group as the owner. The third number applies to everyone else (aka people in a different group from the owner). The owner of a file or directory is usually the person that made that file/directory. A value of 0 indicates NO permissions. 1 allows execute (delete). 2 allows write. 4 allows read. The values add together, so that 6 is 4+2, allowing read and write access... ex: site chmod 775 * this gives the owner read, write, and delete access. Users in the owner's group will also have read, write, and delete access. Everyone else will have read and delete access. ex: site chmod 760 john.mp3 this will change the permissions for john.mp3 to mode 760 (owner has read, write, and delete. Members of the same group have read and write access, and everyone else has NO permissions). Comprendes?

Copyright © RaidenFTPD TEAM , ALL RIGHT RESERVED

REVISION 2.2 , 2001/06/22