LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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: 386

Rep: Reputation: 43
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: 386

Original Poster
Rep: Reputation: 43
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
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,358

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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: 386

Original Poster
Rep: Reputation: 43
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
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,358

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


Reply

Tags
apache2, svn, www



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration