Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
15.7 Legacy Series
»
adduser from serial console
« previous
next »
Print
Pages: [
1
]
Author
Topic: adduser from serial console (Read 18618 times)
packet loss
Full Member
Posts: 134
Karma: 26
adduser from serial console
«
on:
November 20, 2015, 12:56:35 am »
Just was curious about adding users from the serial console. By chance I attempted to add a user using the adduser command. It appeared it added the user without any problems. I then checked to see if the webui would show the newly added user which it didn't. So I took a closer look at the files (passwd, master.passwd, and group) that should have been modified when I added a new user. Both the passwd and master.passwd files were modified but the group wasn't and didn't show the newly added user.
I'm positive the most appropriate method of adding a user should be from the webui. I just wanted to make sure this was the intended behavior of adduser from the shell. Attempting to add the same user from the webui after adding the user with adduser from the shell ends up with the following error:
Quote
The following input errors were detected:
That username is reserved by the system.
So I had to use rmuser from the shell before I could add the same user from the webui. This question is only out of curiosity since adding a user from the webui works as intended.
Logged
franco
Administrator
Hero Member
Posts: 17653
Karma: 1610
Re: adduser from serial console
«
Reply #1 on:
November 24, 2015, 11:06:46 pm »
The GUI "takes over" the FreeBSD, including configuring users/groups for local access. Most changes in the system that also affect the GUI are rolled back by the GUI, either on reconfigure or (re)boot to keep the system in a consistent (and quite correct) state.
I think you can have new users/groups, but they have to be registered via packages, because they are also restored on boot. The short answer is it's complicated...
The user manager will gain an API at some point so we can talk about adding console commands. For now this works as intended.
Logged
jsimoes
Newbie
Posts: 1
Karma: 0
Re: adduser from serial console
«
Reply #2 on:
June 02, 2017, 06:08:39 pm »
Hi Franco,
Did the api received any update to help us add users and certificates through commands or programming?
Regards.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
15.7 Legacy Series
»
adduser from serial console