User added by shell does not exist

Status
Not open for further replies.

KrisStaf88

Cadet
Joined
Dec 10, 2017
Messages
5
Hi,

In FreeNAS GUI I opened shell console, to add new user by command:
[root@freenas] ~# adduser testuser
and then, I followed a step by step in next prompted questions/settings as here:
http://fernandoquiros.com/articles/160306-git-web-server-for-freenas/add-user.png
Finally I got result text as in above pictures.

Now I see home directory eg:
/home/testuser

but in GUI and in a list of users, by command:
cat /etc/passwd
there is no 'newuser' created

1. This is a normal behavior, this is a some secure ?
2. Should I to add a new user (by command) only in the shell console opened in a jail ? --> then new user will be correctly added ?

Please explain me anybody. I read section ACCOUNTS in the Freenas manual, but there is no explanation.

Cheers.
K
...
 
Last edited by a moderator:

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
In FreeNAS GUI I opened shell console, to add new user by command:
Why on earth would you do that when there is a section in the GUI for user management. The reason you can't see the user in the GUI is because you created it at the CLI. In doing so you skipped the middleware layer and the GUI has no way of knowing or tracking what you are doing.

Follow the manual and use the GUI for user management.

http://doc.freenas.org/11/account.html
 
Last edited by a moderator:

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
In FreeNas GUI I opened shell console, to add new user by command:
[root@freenas] ~# adduser testuser
Why did you do that? Don't use the CLI to change things behind the GUI's back.
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080
What you have to understand about FreeNAS is that despite the fact it's built on BSD Unix and all your BSD Unix knowledge does apply, if you don't use the appliance that was built on top of BSD the way the appliance was designed to work then you're going to break it.

Sent from my SAMSUNG-SGH-I537 using Tapatalk
 

KrisStaf88

Cadet
Joined
Dec 10, 2017
Messages
5
Hello,
thank you All for reply.
I added a new user by CLI not GUI, it was a one step in some procedures/tutorial (Gogs for FreeNas). I made a mistake, because I should do/add by CLI, it in a new jail. A jail can be simply deleted with all modifications and created again.
That made me curious.

BTW "software" in my work has a the middleware, that "see" low level chanches and "see" changes done by GUI.
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080
BTW "software" in my work has a the middleware, that "see" low level chanches and "see" changes done by GUI.
They are working to make this better, but it is not perfect yet.
 
Status
Not open for further replies.
Top