Re: MKDIR Permission Denied

From: Date: Thu, 25 Oct 2001 18:20:03 +0000
Subject: Re: MKDIR Permission Denied
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-72318@lists.php.net to get a copy of this message
Jeff, If this script is running as nobody, or some other low-class user, and the permissions on the directory in which you are attempting to create a sub-directory do not allow the creation of the sub-directory by this user, then mkdir will fail. Say your script resides in 'php-stuff' with permissions 755 and the owner/group is chuck/chuck. No one but owner chuck (and root) will be able to create a directory in this directory. According to your script, you are trying to create 'php-stuff/Pins', which is disallowed to 'nobody', the typical user of web-based PHP scripts. Chuck At 10:08 AM -0700 10/25/01, Jeff Gannaway wrote: ><? >$GalleryPHPName = "Pins"; >mkdir ("../$GalleryPHPName", "0775"); >?> > >Results in... > >MkDir failed (Permission denied) > >Any thoughts? > >-Jeff Gannaway >___________________________________________________________ > >Save 15% on 2002 Calendars and Holiday Cards! > >http://www.AvantGifts.com >Discount Code: hopper22ct >Offer Good Through October 31, 2001 >___________________________________________________________ > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >For additional commands, e-mail: php-general-help@lists.php.net >To contact the list administrators, e-mail: php-list-admin@lists.php.net Chuck Theobald, Technology Manager ERIC Clearinghouse on Educational Management 5207 University of Oregon, Eugene, OR, 97403-5207 800-438-8841 * 541-346-1662 (voice) * 541-346-2334 (fax) * 541-337-0182 (cell) * * http://eric.uoregon.edu/ * mailto:ctheobald@eric.uoregon.edu *

« previous php.general (#72318) next »