Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

How do file and folder permissions work?

 
   Web Hosting and Web Master Forums (Home) -> Webmaster RSS
Next:  jpg file as a site background  
Author Message
user181

External


Since: Aug 18, 2003
Posts: 12



(Msg. 1) Posted: Fri Mar 12, 2004 5:27 pm
Post subject: How do file and folder permissions work?
Archived from groups: alt>www>webmaster (more info?)

This must sound like the dummest question ever.

In my FTP program, I can do a chmod on files and folders on my site. I have
a guitar lessons site, and people can upload audio, etc. When they are doing
this, what type of user are they considered? Owner, group, or other? I am
really confused about this. When people are browsing, I would think we are
all treated the same, in which case only one type of user needs 7 for
permissions.

When people do upload stuff, it is being done through PHP with the
move_uploaded_file function. Sometimes I notice a permission error. So I
will change the folder to 777. But does this really need to be? Surely 777
is overdoing it.


-brian

 >> Stay informed about: How do file and folder permissions work? 
Back to top
Login to vote
user104

External


Since: Jun 28, 2003
Posts: 1662



(Msg. 2) Posted: Fri Mar 12, 2004 6:33 pm
Post subject: Re: How do file and folder permissions work? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Brian" <brian.huether.DeleteThis@NOdlrSPAM.de> wrote in message
news:3a2d12e1f700fa84f216b2fcf8685b82@news.teranews.com...
 > This must sound like the dummest question ever.
 >
 > In my FTP program, I can do a chmod on files and folders on my site. I
have
 > a guitar lessons site, and people can upload audio, etc. When they are
doing
 > this, what type of user are they considered? Owner, group, or other? I am
 > really confused about this.

This should explain it:

<a style='text-decoration: underline;' href="http://home.cvc.org/ac/learningUNIX.htm#users" target="_blank">http://home.cvc.org/ac/learningUNIX.htm#users</a>

<a style='text-decoration: underline;' href="http://home.cvc.org/ac/learningUNIX.htm#Permission" target="_blank">http://home.cvc.org/ac/learningUNIX.htm#Permission</a>
--
Charles Sweeney
<a style='text-decoration: underline;' href="http://www.CharlesSweeney.com" target="_blank">www.CharlesSweeney.com</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: How do file and folder permissions work? 
Back to top
Login to vote
who

External


Since: Apr 29, 2004
Posts: 1010



(Msg. 3) Posted: Sat Mar 13, 2004 10:32 am
Post subject: Re: How do file and folder permissions work? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Brian" <brian.huether.DeleteThis@NOdlrSPAM.de> wrote in message
news:3a2d12e1f700fa84f216b2fcf8685b82@news.teranews.com...
 > This must sound like the dummest question ever.
 >
 > In my FTP program, I can do a chmod on files and folders on my site. I
have
 > a guitar lessons site, and people can upload audio, etc. When they are
doing
 > this, what type of user are they considered? Owner, group, or other? I am
 > really confused about this. When people are browsing, I would think we are
 > all treated the same, in which case only one type of user needs 7 for
 > permissions.
If they are browsing the user is the server resource they are using (in this
case the web server eg apache) Who the visitors are has nothing to do with
it - it is who has permission to access the resources requested - in this
example it is apache.


 > When people do upload stuff, it is being done through PHP with the
 > move_uploaded_file function. Sometimes I notice a permission error. So I
 > will change the folder to 777. But does this really need to be? Surely 777
 > is overdoing it.
Actually, it is being done through apache (or whatever else your web server
is called) php is only a script which is using a resource 'apache' which in
turn is a user!
To answer your qustion 777 is over doing it but sometimes the only way.
Perhaps more useful would be to identify which user owns the directory in
question. The set the permissions so the group to which apache belongs has
the correct access. (you need to know who is the owner as only the owner -
or root - can change the persmissions) Often apache runs as the user nobody!



 >
Simple definition - are they users or visitors?
User is one who has access to the system be it a person with username /
password or a server resource like apache

Visitors are not users (for this purpose) They do not and never do get
direct access to the system when using a browser. Their browser makes a
request to the server - which generally (if the request is httpd) passes it
along to apache (a user) who acts on the request and returns (serves) the
requested info (if exists)

The only time a non 'registered' user would get access might be anonymous
ftp but even their the person would be running as anonymous - a preset user.


--
bildanet
MyLot.net - the home of the $10 reseller programme<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: How do file and folder permissions work? 
Back to top
Login to vote
technohippie2

External


Since: Dec 20, 2003
Posts: 87



(Msg. 4) Posted: Sat Mar 13, 2004 10:32 am
Post subject: Re: How do file and folder permissions work? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Bill Logan wrote:

 > "Brian" <brian.huether.TakeThisOut@NOdlrSPAM.de> wrote in message
 > news:3a2d12e1f700fa84f216b2fcf8685b82@news.teranews.com...
 >
  >>This must sound like the dummest question ever.
  >>
  >>In my FTP program, I can do a chmod on files and folders on my site. I
 >
 > have
 >
  >>a guitar lessons site, and people can upload audio, etc. When they are
 >
 > doing
 >
  >>this, what type of user are they considered? Owner, group, or other? I am
  >>really confused about this. When people are browsing, I would think we are
  >>all treated the same, in which case only one type of user needs 7 for
  >>permissions.
 >
 > If they are browsing the user is the server resource they are using (in this
 > case the web server eg apache) Who the visitors are has nothing to do with
 > it - it is who has permission to access the resources requested - in this
 > example it is apache.
 >
 >
 >
  >>When people do upload stuff, it is being done through PHP with the
  >>move_uploaded_file function. Sometimes I notice a permission error. So I
  >>will change the folder to 777. But does this really need to be? Surely 777
  >>is overdoing it.
 >
 > Actually, it is being done through apache (or whatever else your web server
 > is called) php is only a script which is using a resource 'apache' which in
 > turn is a user!
 > To answer your qustion 777 is over doing it but sometimes the only way.
 > Perhaps more useful would be to identify which user owns the directory in
 > question. The set the permissions so the group to which apache belongs has
 > the correct access. (you need to know who is the owner as only the owner -
 > or root - can change the persmissions) Often apache runs as the user nobody!

I guess I should have read this before I posted my ping. If I change
the permissions on certain files, does that also change the owner?
Right now, certain data files are owned by my server account name
instead of nobody. I need to change this, especially for security
reasons but also for RCS logging.

 > Simple definition - are they users or visitors?
 > User is one who has access to the system be it a person with username /
 > password or a server resource like apache
 >
 > Visitors are not users (for this purpose) They do not and never do get
 > direct access to the system when using a browser. Their browser makes a
 > request to the server - which generally (if the request is httpd) passes it
 > along to apache (a user) who acts on the request and returns (serves) the
 > requested info (if exists)
 >
 > The only time a non 'registered' user would get access might be anonymous
 > ftp but even their the person would be running as anonymous - a preset user.

Or on a wiki, like I just installed and can edit as a non-registered
guest user. I really need to figure this out.

--
Judy
Current Experiment: <a style='text-decoration: underline;' href="http://www.technohippie.com/greymatter/" target="_blank">http://www.technohippie.com/greymatter/</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: How do file and folder permissions work? 
Back to top
Login to vote
sp_bhuisman

External


Since: Jun 27, 2003
Posts: 571



(Msg. 5) Posted: Sat Mar 13, 2004 10:32 am
Post subject: Re: How do file and folder permissions work? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Fri, 12 Mar 2004 19:33:24 GMT, TechnoHippie <technohippie DeleteThis @toast.net>
wrote:

<font color=purple> > Current Experiment: <a style='text-decoration: underline;' href="http://www.technohippie.com/greymatter/</font" target="_blank">http://www.technohippie.com/greymatter/</font</a>>

Oooooh, my favorite colour too! Are you trying to flatter me? Wink

Grey

--
The technical axiom that nothing is impossible sinisterly implies the
pitfall corollory that nothing is ridiculous.
- <a style='text-decoration: underline;' href="http://www.greywyvern.com" target="_blank">http://www.greywyvern.com</a> - Orca RingMaker: PHP web ring creation and
management<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: How do file and folder permissions work? 
Back to top
Login to vote
technohippie2

External


Since: Dec 20, 2003
Posts: 87



(Msg. 6) Posted: Sat Mar 13, 2004 10:32 am
Post subject: Re: How do file and folder permissions work? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

GreyWyvern wrote:
 > On Fri, 12 Mar 2004 19:33:24 GMT, TechnoHippie <technohippie RemoveThis @toast.net>
 > wrote:
 >
<font color=green>  >> Current Experiment: <a style='text-decoration: underline;' href="http://www.technohippie.com/greymatter/</font" target="_blank">http://www.technohippie.com/greymatter/</font</a>>
 >
 >
 > Oooooh, my favorite colour too! Are you trying to flatter me? Wink
 >
 > Grey
 >

It was a toss-up between greyishness or tie-died ... and I think the
triangle is cheerful enough without adding insult to injury. Speaking
of Godwinated threads, you should check out my newest post (minutes old).

--
Judy
Current Experiment: <a style='text-decoration: underline;' href="http://www.technohippie.com/greymatter/" target="_blank">http://www.technohippie.com/greymatter/</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: How do file and folder permissions work? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Project Folder Utility? - Are there any utilities that any of you know about that would allow you to set up a project where only certain folders on your hard drive are visible? I don't know about you, but when I go to open a file from a graphics editing program like Fireworks, it...

More work.....Woo-Hoo! - On top of my current job of building and maintaining the www.primeappliances.com website and all it's associated systems, I've just landed a second contract to maintain the back end systems and interfaces for www.heritagemp.com All the web design and..

Thanks for the work, I'll finish it myself... - A lesson on contracts, especially with friends ;) I was helping out a guy by converting his old FrontPage site to a nice new PHP/MySQL e-commerce site. The original site was basic. The ordering system consisted of entering an order code into a text bo...

Preload -- How does it work? - Hello everyone, Have a basic question about preloading image files for browser's cache. I am creating a few webpages that share the same .gif files for logo and rollover buttons. On the home page, I use DreamWeaver MX's Preload action to preload..

Latest work in portfolio - Mirko Sorak Photography http://www.mirko-sorak.com P.S. Sorry if this kind of announcements are not permited. -- __ // \ // /\ \ \ \/ // ~Clio, baby! :)~ \ __//
   Web Hosting and Web Master Forums (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]