Hello!
I'm doing a script for add a user with privileges of root.
I can do this using adduser command and after editting this user with vipw.
I put uid 0 and gid 0 and works fine, but how can I do this with just one command?
pw useradd -n test ....
I tried .:
pw useradd -n test -u 0 -g 0 ...
and do not worked.
Thanks a lot!
I'm doing a script for add a user with privileges of root.
I can do this using adduser command and after editting this user with vipw.
I put uid 0 and gid 0 and works fine, but how can I do this with just one command?
pw useradd -n test ....
I tried .:
pw useradd -n test -u 0 -g 0 ...
and do not worked.
Thanks a lot!