upload folder permissions

Lisa Kachold lisakachold at obnosis.com
Wed Apr 27 21:34:42 MST 2011


Hi Lee:

On Wed, Apr 27, 2011 at 9:20 PM, <leegold at speedymail.org> wrote:

> Hi,
>
> I have a LAMP stack on my laptop for learning, "localhost". I'm using
> Lighttpd instead of Apache.
>
> When I try to upload some files via PHP code it didn't work. The target
> folder is /var/www/uploaded_vids
>
> It was 755 and uploads didn't work. I changed it to 777 and now the
> uploads work. It's ls -l is now:
>
> drwxrwxrwx 2 root root   4096 2011-04-27 20:50 uploaded_vids
>
> maybe 775 would be enough? Nope, tried  775 for the dir and does *not*
> work. Does it make sense that 775 was not enough permissions?
>
> 777 works. Is this normal? My browser or whatever component is uploading
> is not root? But the server itself is running as root(?).
>
> Could someone help me with uploads regarding permissions so I can better
> understand? What are the permissions normally for an upload dir on a
> server?
>
> Thanks,
>
> Lee G.
>
> What are the

0 - Server running as
1 - File ownership


If you make the user ownership for the directory the same user your server
is running as you can use 755.

-- 
(503) 754-4452 iPhone
(623) 239-3392 Skype
(623) 688-3392 Google Voice

 http://www.it-clowns.com

"If Python is executable pseudocode, then perl is executable line noise."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20110427/ad5cdc21/attachment.html>


More information about the PLUG-discuss mailing list