Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-17-2019, 08:06 PM   #1
LQ Newbie
Registered: Jan 2019
Posts: 2

Rep: Reputation: Disabled
www-data user and group both missing CentOS 7

I was working on my WordPress website and I got some HTTP ERROR 500 and then i checked the user and user groups of my WordPress via FTP and I found that all belong to 1000:1000 user. I tried to change that to www-data:www-data. But getting invalid user: 'www-data:www-data' error.

cut -d: -f1 /etc/group | sort code didn't show anything of www-data group

So its confirmed that www-data group is missing from my web server. SO now how to create a new www-data group and www-data user with same credentials?
Old 01-17-2019, 08:30 PM   #2
Senior Member
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 2,838

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
You have cross posted duplicate posts (see in violation of site rules. Please close one or the other.
1 members found this post helpful.
Old 01-18-2019, 05:47 AM   #3
LQ Guru
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,399

Rep: Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704Reputation: 1704
I don't use CentOS but my understanding is that the "www-data" user/group is something used only or primarily by Debian/Ubuntu and derivatives. The user:group on the Linux systems I use and many other Linux systems is, not surprisingly: apache:apache. Look in your config files, generally the httpd.conf file will have lines such as below which will tell you the user:group

User apache
Group apache
Old 01-18-2019, 10:53 AM   #4
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,606
Blog Entries: 15

Rep: Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539Reputation: 1539
CentOS is compiled from RHEL source. By default the httpd package adds user/group apache as suggested by prior poster.
The /etc/passwd entry for user:

The /etc/group entry for group:

The first apache process will start as root then spawn the others with the non-root user and group.


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
User is a Part of a Group But Group Details Do Not Show the User devUnix Linux - Server 6 08-08-2013 07:02 AM
Block bitmap for group 416 not in group (block 0) + group descriptors corrupted? quanta Linux - Server 1 12-08-2010 10:40 AM
How can I ensure that files created inherit both user and group of directory vfclists Linux - Software 1 11-21-2009 07:37 PM
group: add complete group into other group max_mad SUSE / openSUSE 1 04-12-2006 01:43 AM
Group Admin, Group Root, or God over Group crickett Linux - General 5 07-12-2004 04:01 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:54 AM.

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