Creating users within jails (in shell) buggy

Status
Not open for further replies.

underpickled

Contributor
Joined
Oct 1, 2013
Messages
167
I've had this happen multiple times...
After entering a jail with
Code:
root@freenas~# jexec [jid] /bin/csh
root@[jailname]~# 

and then using the "adduser" command to add a user, the creation is successful as indicated by the shell output, but subsequently entering "users" does not display any users. Also, entering "su [username]" will not return an error, but simply go to a
Code:
#

prompt instead of
Code:
[user]@[jailname]~#


Trying to create a user again with the same name gives an error saying the user already exists. I know this has happened to at least one other person on this forum. I eventually got it to work, but only after adding dummy users and deleting and re-adding the original one. Even then, the second time I ran into the problem, the steps I took to fix it the first time didn't work and took more fiddling so it's not deterministic.
 
D

dlavigne

Guest
Please create a bug report at bugs.freenas.org and post the issue number here.
 

Dusan

Guru
Joined
Jan 29, 2013
Messages
1,165
but subsequently entering "users" does not display any users.
The users command shows the list of currently logged in users, not the list of all defined users.
Everything works as expected. Try running whoami (Who am I?) while in the # shell (after running su)... ;)
 

underpickled

Contributor
Joined
Oct 1, 2013
Messages
167

underpickled

Contributor
Joined
Oct 1, 2013
Messages
167
Did you actually try what I suggested? (running whoami)
I can't at the moment... won't be able to until tonight. Guess it doesn't matter anyway though,

Please create a bug report at bugs.freenas.org and post the issue number here.
I've been notified that this is correct behavior through the bug tracker... but I wouldn't have put in a bug report if it wasn't requested.
 
Status
Not open for further replies.
Top