Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 03-30-2009, 01:59 AM   #1
LQ Newbie
Registered: Mar 2009
Posts: 5

Rep: Reputation: 0
Problem user www-data on ubuntu

Dear all,

I have some problem with permision www-data on UBuntu server 7.10

I have setup document root at /home/web/html
in folder html there are a folder data/avatar
folder avatar save a pic upload by user

I have change the permision folder data
chown -R www-data.www-data data
chmod -R 775 data

The problem is...
When user upload file the permision is 500.

How can I set permision user apache so where default file upload is 755
thank before..
Old 03-31-2009, 03:19 AM   #2
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 741

Rep: Reputation: 73
chgrp www-data /home/web/html
chmod g+s /home/web/html

and maybe set the user environment mask to 022 (umask 022) in case its setup to 077.

Good luck!

Last edited by robertjinx; 03-31-2009 at 03:21 AM.
Old 03-31-2009, 06:45 PM   #3
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 363

Rep: Reputation: 33
How is the file uplaoded? Through FTP or an upload script through HTTP?

If it's through FPT, changing the default umask to 002 should fix it. You will find the option in the configuration of your FTP server.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
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
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with 'www-data' and the sudo command 5ury4 Linux - Server 1 05-19-2008 04:33 PM
Giving user 'www-data' same permissions as normal user MikeOfAustin Linux - Software 5 06-08-2007 02:50 AM
NFS www-data user errors blu_alchemist Linux - Server 2 06-06-2007 04:26 PM
need to make www-data as super-user ALInux Linux - Security 1 11-05-2005 09:11 AM
add www-data user restless Linux - Newbie 1 06-01-2004 07:51 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration