755 allows the owner to do anything, and everyone else to read and execute. The first 7 should probably ALWAYS be there. Ideally, the setting SHOULD be 750 for any perl programs.(There is a flaw with the original design for scripts, in that ANOTHER program must read the file, and that is why you can't just specify a one here, as you could with executables.)
Unfortunately, with many webserver setups you may need 755 or to setup the /etc/groups file) 777 NEVER has to be used, but allows everyone to do anything with the file. This is sometimes used as a last resortwith datafiles that have to be written to. BTW, here is a quick tutorial. The three digit number can be thought of as a group of 3 one digit numbers. They set permissions for: owner group everyone BUT owner/group 4=read 2=write 1=execute Note that INTERPRETED languages, like PERL, need to READ the file, so an executable should have 1+4=5 BTW, there IS a fourth digit, to the left of the three. Let's save THAT for anothe time. 8-) It isn't often used. BTW, EVERYONE belongs to a group. If you look at a file you created with ls-ltr it willshow you the owner and group of the person that created it(originally at least). chgrp COULD be used to change the group of a file and enhance security. Steve >-- Original Message -- >Date: Wed, 24 Sep 2003 13:23:05 +0200 >To: <[EMAIL PROTECTED]> >From: "A Lucas Victoria Group Inc." <[EMAIL PROTECTED]> >Subject: CHMOD > > >Hello, >I just moved my OSRS client from a NT server to a Unix. >And I continue to have server misconfiguration . :-( >I try to find a documentation where they tell which repertory/file >we have to CHMOD 755 or 777. >I did not find any doc. Could anybody tell me where I could find this? >Thanks >Daniel >
