Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Chmod

by btrott (Parson)
on May 03, 2000 at 04:36 UTC ( [id://10013]=note: print w/replies, xml ) Need Help??


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).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://10013]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-03-29 05:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found