Home > Programming, Servers & Scripts > Hosting, Servers & Security

You must give (non-root) uid and gid (5)


07-19-2017 02:00 PM #1 orke22 (Member)
You must give (non-root) uid and gid

Hi Guys,

I'm trying to set up VPS on Linode but I got stuck with that message: "You must give (non-root) uid and gid"
can anyone tell me what I need to do?
The command I wrote is: "pure-pw useradd xxxx -u nginx -g nginx -d /home/nginx/domains/"
the uid and gid where created when I registered to Linode isn't?

Thanks


07-19-2017 06:16 PM #2 nickpeplow (AMC Alumnus)

Take a look into using a control panel, for example serverpilot.io to manager domains, ftp users etc


07-19-2017 07:11 PM #3 orke22 (Member)

Hi Nick,

Thank you for your answer.

Linode is a VPS cloud hosting, and I do all of the changes via linux.

it's just that one code is not working and I don't know why


07-19-2017 09:09 PM #4 jessejames (Member)

You need to make a user that's not root (when you set up the VPS you will get a root pw, ssh in and make a new user). Then you need to make a group and a user (google how to do it on your setup, i.e. Ubuntu or CentOS).

then you can run someting like id -u username and id -g groupname, get the IDs and run the code.


"pure-pw useradd xxxx -u 1234 -g 4321 -d /home/nginx/domains/"


07-20-2017 05:35 AM #5 orke22 (Member)

Hi Jesse,

I've tried 10 different guides on google, but I can't solve it...
Do you have a recommended guide that you know works?

https://www.screencast.com/t/VJMnKVE4L


Home > Programming, Servers & Scripts > Hosting, Servers & Security