I am trying to build a function for adding a new user to a NanoBSD build.
What I am unsure about is the
www.freebsd.org
I have two groups I want to add the user to. They are wheel and operator.
-G provides a secondary group comma delineated list of groups where as -g provides a 'primary' group.
So which of these is correct ?
Or
I may also have to add a video group as well.
What I am unsure about is the
pw
-g or -G command option.pw(8)
I have two groups I want to add the user to. They are wheel and operator.
-G provides a secondary group comma delineated list of groups where as -g provides a 'primary' group.
So which of these is correct ?
pw adduser -n gui -c 'gui' -d /gui -G wheel,operator -m -s /bin/tcsh -w none
Or
pw adduser -n gui -c 'gui' -d /gui -g wheel -G operator -m -s /bin/tcsh -w none
I may also have to add a video group as well.
pw adduser -n gui -c 'gui' -d /gui -g wheel -G operator,video -m -s /bin/tcsh -w none