Link to home
Start Free TrialLog in
Avatar of Goutham
GouthamFlag for India

asked on

how to create users with different id in linux

Dear Experts:

I have centos linux iam looking for how to create a new users (50 users) with userid and gid to start from 6000. Iam aware of usermod but iam looking for new users, similarly want to create additional groups  new groups like QA , PRODUCTION ,QC, like this many more groups .Please help.
Avatar of Steven Vona
Steven Vona
Flag of United States of America image

You can specify the uid when creating the user like this

useradd -u 6000 newuser

ASKER CERTIFIED SOLUTION
Avatar of Steven Vona
Steven Vona
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
to set a password on a linux is possible using usermod -p <encrypted_password> username
Avatar of Goutham

ASKER

thanks for all. when tried with  useradd -u 6000 -g 6000 newuser  but not  working out. Please help.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial