underpickled
Contributor
- Joined
 - Oct 1, 2013
 
- Messages
 - 167
 
I've had this happen multiple times...
After entering a jail with
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
prompt instead of
 
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.
	
		
			
		
		
	
			
			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.