LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-30-2009, 01:59 AM   #1
mosesdel
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
and
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
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 570

Rep: Reputation: 58
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
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 363

Rep: Reputation: 32
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.
 
  


Reply


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


All times are GMT -5. The time now is 02:27 PM.

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