LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-20-2013, 09:53 PM   #1
thund3rstruck
Member
 
Registered: Nov 2005
Location: East Coast, USA
Distribution: Fedora 18, Slackware64 13.37, Windows 7/8
Posts: 346

Rep: Reputation: 38
chown: invalid user 'www-data:www-data'


Really? What's the deal...

Code:
sudo chown www–data:www-data /var/svn/mysoft
  chown: invalid user: `www–data:www-data'
Code:
id www-data
  uid=33(www-data) gid=33(www-data) groups=33(www-data)
Code:
cat /etc/passwd | grep www
  www-data:x:33:33:www-data:/var/www:/bin/sh
Code:
cat /etc/group | grep www
  www-data:x:33:
Code:
ps aux | grep apache2
root      4922  0.0  0.3 311300 11224 ?        Ss   22:33   0:00 /usr/sbin/apache2 -k start
www-data  4927  0.0  0.1 311324  6132 ?        S    22:33   0:00 /usr/sbin/apache2 -k start
www-data  4928  0.0  0.1 311324  6132 ?        S    22:33   0:00 /usr/sbin/apache2 -k start
www-data  4929  0.0  0.1 311324  6132 ?        S    22:33   0:00 /usr/sbin/apache2 -k start
www-data  4930  0.0  0.1 311324  6132 ?        S    22:33   0:00 /usr/sbin/apache2 -k start
www-data  4931  0.0  0.1 311324  6132 ?        S    22:33   0:00 /usr/sbin/apache2 -k start
What's the deal here. The account is obviously there; why can't Ubuntu resolve it?

Last edited by thund3rstruck; 03-20-2013 at 10:11 PM. Reason: reboot seems to have solved the problem
 
Old 03-20-2013, 10:12 PM   #2
thund3rstruck
Member
 
Registered: Nov 2005
Location: East Coast, USA
Distribution: Fedora 18, Slackware64 13.37, Windows 7/8
Posts: 346

Original Poster
Rep: Reputation: 38
Bizarre; a reboot seems to have solved the problem. I think this had something to do with having just uninstalled nginx; which was also using www-data.
 
Old 03-21-2013, 12:53 AM   #3
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,289

Rep: Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034
If you look very carefully, the first 'dash/hyphen' is twice as long as the second... either its really 2 ie '--' or maybe you've copy/pasted from a doc of some kind, maybe even MS
Code:
www–data:www-data
 
2 members found this post helpful.
Old 03-21-2013, 01:10 AM   #4
thund3rstruck
Member
 
Registered: Nov 2005
Location: East Coast, USA
Distribution: Fedora 18, Slackware64 13.37, Windows 7/8
Posts: 346

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by chrism01 View Post
If you look very carefully, the first 'dash/hyphen' is twice as long as the second... either its really 2 ie '--' or maybe you've copy/pasted from a doc of some kind, maybe even MS
Code:
www–data:www-data
Hm...you could be on to something! I'm not willing to concede yet but it is likely that I fat-fingered that in the terminal with a double dash.

Great eyes!
 
Old 03-21-2013, 01:53 AM   #5
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,289

Rep: Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034
Try checking your bash history ?
 
  


Reply

Tags
apache2, svn, www


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
Is www-data some sort of generic user? pgflrob Linux - Newbie 1 03-11-2012 11:23 AM
how can www-data chown a file? tdnnash25 Linux - Server 7 06-12-2010 11:45 AM
Problem user www-data on ubuntu mosesdel Linux - Server 2 03-31-2009 06:45 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 03:21 AM.

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