An Error Has Occurred Receiving Directory Insufficient Permission
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 7 of 7 Thread: [RESOLVED] Correct permissions for uploading files Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 07-11-2010,11:36 PM #1 rtcary View Profile View Forum Posts Senior Member Join Date May 2001 Posts 119 [RESOLVED] Correct permissions for uploading files I am trying to implement PHP upload functionality for an application. When I attempt an upload in my test environment, I get the following error: An error has occurred: receiving directory insufficient permission... The upload form is reloading The destination file being moved by move_uploaded_file is /home/httpd//test/upload/uploads/1278898550-_DSC1159.jpg The initial file name is suppose to be /tmp/phpR1lmmc I am not sure what to set for Owner and Group for the "uploads" directory nor the permissions (it is now set to 775). Many thanks for some guidance for this matter... Todd Reply With Quote 07-12-2010,12:20 AM #2 NogDog View Profile View Forum Posts Visit Homepage High Energy Magic Dept. Join Date Aug 2006 Location Ankh-Morpork Posts 14,478 It is likely you will need 777 permission if this is being executed as a web application, as the PHP script is typically run by the web server user account (as opposed to your personal login account), so you may need to give "world" write permission on the directory. "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading) My Blog cwrBlog: simple, no-database PHP blogging framework Reply With Quote 07-12-2010,06:34 PM #3 sneakyimp View Profile View Forum Posts Visit Homepage Senior Member Join Date Apr 2003 Location Flanders Fields Posts 5,676 A web server runs as a certain user on *nix machines. On debian linux, this is usually www-data. On CentOS (and possibly red hat) it's apache. On my mac (where I run MAMP) it is sneakyimp. On still other machines it's nobody. Wh
be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 2 of 2 Thread: image uploading Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 03-26-2007,06:29 AM #1 zatomas View Profile View Forum Posts (¯`·._.·[ÕÕ]·._.·´¯) Join Date Jul 2005 Posts 19 image uploading Dear all Hi... i did used the method in the article How to: Upload images using PHP for single http://board.phpbuilder.com/showthread.php?10374453-RESOLVED-Correct-permissions-for-uploading-files file uploading it works perfectly with my local host but when i did upload the files to the web server the fowling error occur An error has occurred: receiving directory insufficient permission... The upload form is reloading in 5 seconds plz help.................. Last edited by zatomas; 03-26-2007 at 06:32 AM. Reason: to be more clear Reply With Quote 03-26-2007,07:21 AM #2 sanchez_1960 View Profile View Forum Posts Registered User Join Date Nov 2006 Posts 97 http://www.webdeveloper.com/forum/showthread.php?142986-image-uploading The directory you're uploading to needs to have write permissions set. You can do this via FTP using CHMOD and changing the permissions. If you're creating directories on the fly when you upload images, you can do something similar to this: Make dir code example: mkdir("images/".$imageid."/", 0764); CHMOD code example: chmod("images/, 0764); Reply With Quote Quick Navigation PHP Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums Client-Side Development HTML XML CSS Graphics Design: Responsive Design / Website Design JavaScript JavaScript Frameworks (such as JScript) Multimedia Web Video Accessibility Mobile Web Development Dreamweaver/Expression Web General Server-Side Development PHP Perl/Python/Ruby .NET Java (NOT JavaScript!) ASP SQL Other Site Management Domain Names Forum, Blog, Wiki & CMS SEO and other Search Engines Topics Server Management Business Matters Website and App Reviews Available positions Etc. The Coffee Lounge Forum Feedback Computer Issues Announcements, Press Releases, & News « Previous Thread | Next Thread » Thread Information Users Browsing this Thread There are currently 1 users browsing this thread. (0 members and 1 guests) Posting Permissions You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is Off [VIDEO] code is Off HTML code is Off Forum Rules All t
10 iPad Air 2 iPad mini 4 (2015) iPad Pro iPhone 6s iPhone 7 iPhone 8 (2017) iPhone SE iPod nano iPod shuffle iPod touch Mac mini Mac Pro MacBook Air MacBook Pro macOS Sierra Retina MacBook Thunderbolt Display tvOS 10 watchOS 3 Buyer's Guide Forums Forums Front Page Roundups Buyer's Guide Forums Roundups OS X Yosemite MacBook Air iOS 8 Apple Watch Log in Sign up Recent Posts http://forums.macrumors.com/threads/php-image-uploader.502904/ Spy Support Support Quick Links General FAQ MacRumors Theme FAQ Contact Us Lost Password Menu Search titles only Posted by Member: Separate names with a comma. Newer Than: Search this thread only Search this forum only Display results as threads More... Useful Searches Recent Posts Options Please select a forum to jump to News and Article Discussion http://stackoverflow.com/questions/29953024/receiving-insufficient-permission-error-from-directoryservice MacRumors.com News Discussion Mac Blog Discussion iOS Blog Discussion iPhone, iPad, and iPod Touch iOS iOS 9 (Beta) iOS 8 iOS 7 an error Older iOS Versions iOS 6 iOS 5 and earlier iPhone iPhone iPhone Tips, Help and Troubleshooting iPhone Accessories iPhone Launch Meetups iPad iPad iPad Tips, Help and Troubleshooting an error has iPad Accessories iOS Apps iPod touch iOS Programming iPod Jailbreaks and iOS Hacks Alternatives to iOS and iOS Devices Apple Watch Apple Watch Apple Watch Accessories Apple Watch Apps Macs OS X OS X OS X El Capitan (10.11, Beta) OS X Yosemite (10.10) OS X Mavericks (10.9) Older OS X Versions OS X Mountain Lion (10.8) Mac OS X Lion (10.7) Desktops iMac Mac Pro Mac mini Notebooks MacBook MacBook Pro MacBook Air Mac Basics and Help Mac Programming Buying Tips and Advice PowerPC Macs Mac Accessories Windows, Linux & Others on the Mac Mac Apps and Mac App Store Mac OS X Server, Xserve, and Networking Apple TV Apple TV and Home Theater Apple TV Apps tvOS Programming Apple and Apple Services Apple, Inc and Tech Industry Apple Music, Apple Pay, iCloud, Apple Services Special Interests Des
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Receiving Insufficient Permission error from DirectoryService up vote 2 down vote favorite 1 I am trying to setup c# code to manage our Google domain. I am receiving this error whenever I call service.Users.List() or any other method from the DirectoryService api. Google.Apis.Requests.RequestError Insufficient Permission [403] Errors [ Message[Insufficient Permission] Location[ - ] Reason[insufficientPermissions] Domain[global] ] I followed all the instructions on the OAuth setup. The account I am using is a domain admin. The clients secret file I am using works fine when I use it with GAM.exe to do the same operations. This is leading me to believe that i am doing something wrong in my code. Below is my code for querying users, is there anything I am missing? static void Main(string[] args) { var applicationName = "App Project Name"; var userName = "admin@domain.com"; var clientID = "clientIDfromAPIcredentialpageonconsole.developers.google.com"; UserCredential credential; using (var stream = new FileStream("C:\\gam\\client_secrets.json", FileMode.Open, FileAccess.Read)) { credential = GoogleWebAuthorizationBroker.AuthorizeAsync( GoogleClientSecrets.Load(stream).Secrets, new[] { DirectoryService.Scope.AdminDirectoryOrgunit, DirectoryService.Scope.AdminDirectoryUser }, userName, CancellationToken.None, null).Result; } var service = new DirectoryService(new BaseClientService.Initializer() { ApplicationName = applicationName, HttpClientInitializer = credential }); var list = service.Users.List(); var users = list.Execute(); } } google-api-dotnet-client share|improve this question edited Jan 12 at 15:22 Marv 25617 asked Apr 29 '15 at 19:39 VaultBoy14 4816 add a comment| 1 Answer 1 active oldest votes up vote 1 dow