M BUZZ CRAZE NEWS
// news

How to create www-data user?

By Joseph Russell

I am sort of new in linux ubuntu. I tried to deploy a Django app using Nginx.

Do i need to create www-data user in my linux? Or does it already exist?

1

1 Answer

If you installed nginx from the standard Ubuntu repos, the installation should have created both the www-data user and group. Anyway the command to check if a specific user exists is (www-data example):

grep www-data /etc/passwd

or group:

grep www-data /etc/group

If you want to be part of that group you should do this:

sudo usermod -a -G groupName userName

obviously userName is your login name. Then logout and login again, and check with:

groups

if www-data appears, you are part of that group.

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy