Hello guys.
First of all: I'm using FreeBSD for a while now since I switched from Linux and I really like the system. But today I had a problem.
I wanted to setup my system in a way, that new users are added to the groups "video" and "operator" by default, when I use the "adduser"-command. Moreover that, they should become a member of the "german" login class.
(For Login class, I followed the instructions in 25.2.1.1. Login Classes Method" of the FreeBSD-Handbook. It works fine!)
So I've setup an "adduser.conf", which looks like this:
Now, when I try to run "adduser", my system doesn't seem to recognize, my entries in the adduser.conf.
My output - when I try to create an account for "testuser" - looks like this:
When I change my adduser.conf like in the following, it works:
In this case my output looks like this:
So I think, my syntax in the "defaultgroups="-line must be wrong. To find a solution for that, I already looked at the manpage of adduser.conf, but there is no information about the syntax of the "defaultgroups"-entry.
man.freebsd.org
I also didn't find any thread, about that topic and I tried some other entries, but they also didn't work. These are the lines I tried:
Does anyone has a solution?
Thank you very much for reading![/video][/video]
First of all: I'm using FreeBSD for a while now since I switched from Linux and I really like the system. But today I had a problem.
I wanted to setup my system in a way, that new users are added to the groups "video" and "operator" by default, when I use the "adduser"-command. Moreover that, they should become a member of the "german" login class.
(For Login class, I followed the instructions in 25.2.1.1. Login Classes Method" of the FreeBSD-Handbook. It works fine!)
So I've setup an "adduser.conf", which looks like this:
Code:
defaultclass=german
defaultgroups=operator video
My output - when I try to create an account for "testuser" - looks like this:
Code:
Username: testuser
Full Name: Testuser
Uid (Leave empty for default):
Login group [testuser]:
Login group ist testuser. Invite testuser to other groups? []:
Login class [default]:
Shell (sh csh tcsh nologin) [sh]:
...
Code:
defaultclass=german
defaultgroups=operator
Code:
Username: testuser
Full Name: Testuser
Uid (Leave empty for default):
Login group [testuser]:
Login group ist testuser. Invite testuser to other groups? [operator]:
Login class [german]:
Shell (sh csh tcsh nologin) [sh]:
...
adduser.conf
I also didn't find any thread, about that topic and I tried some other entries, but they also didn't work. These are the lines I tried:
Code:
defaulgroups="operator" "video"
defaultgroups="operator","video"
defaultgroups='operator' 'video'
defaultgroups='operator','video'
defaultgroups=[operator] [video]
defaultgroups=[operator],[video]
Thank you very much for reading![/video][/video]