LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-17-2019, 08:06 PM   #1
pheonis
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
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,613

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
You have cross posted duplicate posts (see https://www.linuxquestions.org/quest...78#post5950378) 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
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,499

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
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

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

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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:
apache:x:48:48:Apache:/usr/share/httpd:/sbin/nologin

The /etc/group entry for group:
apache:x:48:

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:19 AM.

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