Hey Guys,
The numbers are read in binary, ie:

USER/GROUP/OTHER

so, to set read and execute for user only (r-x----)
you count in binary from right to left (1 + 4)
so it would be chmod 500
or for all (user/group/other) read, write, execute it would be chmod 777 (1
+ 2 + 4)

Hope that helps :-)

----------------------
Clayton Dukes
CCNA, CCDA, CCDP, CCNP
Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net




----- Original Message -----
From: "Matthew Loff" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 3:47 PM
Subject: RE: [PHP] Find and Replace


>
> Instead of using numbers, I use this system:
>
> chmod a+rwx
> (all users read/write/execute)
>
> chmod u+rwx
> (owner of file read/write/execute)
>
> chmod g+rwx
> (group read/write/execute)
>
> chmod o+rwx
> (all users read/write/execute)
>
> The plus + can be substituted with a minus - to remove specific
> permissions, and any combination of r, w, and x can exist in there.
>
>
> ----- Original Message -----
> From: "Shrout, Ryan" <[EMAIL PROTECTED]>
> To: "'Matt Kaufman'" <[EMAIL PROTECTED]>
> Sent: Monday, July 30, 2001 12:14 PM
> Subject: RE: [PHP] Find and Replace
>
>
> > Thanks!  Do you know what ownership properties only allow viewing by
> owner?
> >
> > chmod 600?  711? 555?
> >
> > Thanks!
> >
> > Ryan
> >
> > -----Original Message-----
> > From: Matt Kaufman [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 30, 2001 6:00 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP] Find and Replace
> >
> >
> > There are a lot of text editors that allow you to find and replace -
> > vi
> even
> > does.
> >
> > You can also CHMOD the *.inc files to allow only the owner to access
> them -
> > I don't even use the *.inc or *.inc.php function, you can do without
> > it
> (eg
> > include.php, settings.php instead of include.inc or settings.inc.php)
> >
> > Matt Kaufman
> > ----- Original Message -----
> > From: "Shrout, Ryan" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, July 30, 2001 12:06 PM
> > Subject: [PHP] Find and Replace
> >
> >
> > > This isn't exactly PHP I need help with, but it relates to what I
> learned
> > > about security.  Up until now, I have been using *.inc extensions
> > > for my include files.  Well, I didn't realize until recently that
> > > anyone can
> view
> > > these files.  So, I want to rename them to *.inc.php.  BUT, in
> > > almost
> all
> > of
> > > my PHP pages, there are links to : include ('mydir/myfile.inc');
> > >
> > > Can someone tell me how to do a recursive find and replace to look
> > > for /myfile.inc and replace it with myfile.inc.php?  I am running
> > > Red Hat
> 7.1
> > >
> > > Thanks!
> > >
> > > Ryan
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED] To
> > > contact the list administrators, e-mail:
> > > [EMAIL PROTECTED]
> > >
> > >
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED] To
> > contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED] To
> contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to