in reply to Chmod

Are you using 0777, or 777? Try 0777.

0777 makes sense as a permission setting, and 777 doesn't. Numerical permissions are specified in octal, not decimal; so 777 is actually the permission 01411, which is different than what you want, I'd suspect. :)

Replies are listed 'Best First'.
RE: Re: Chmod
by wonko (Pilgrim) on May 03, 2000 at 17:56 UTC
    I have heard that some web servers (apache) don't run scripts if they have beeen chmod:ed too liberal, out of security reasons. Chmod 711 works for me.

    One thing i wonder abt, how _shoud_ I chmod directories, html files et.c.
    I've seen people (who knows more about unix systems than me) reaching files or directories higher up in the tree from the web.

    /wonko

Re^2: Chmod
by Anonymous Monk on Mar 16, 2005 at 22:38 UTC
    To clarify for those used to the unix command...chmod(0NNN, $file) is not the same as "# chmod 0NNN $file" run from a shell. Perl interprets the value as octal because of the leading 0. So if you're trying to get g+s, you'll need to use 02NNN or oct(2NNN).