Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: Adam on April 06, 2017, 03:07:07 AM

Title: [SOLVED] adduser: user 'test' in use
Post by: Adam on April 06, 2017, 03:07:07 AM
Hi all,

I'm getting this error when trying to add a new user to staff group.
I fixed this issue before, but I forgot how I did it. Please advise.

Quote
tc@box:~$ sudo adduser -G staff test
adduser: user 'test' in use
tc@box:~$
tc@box:~$ cat /etc/group | grep staff
staff:x:50:
tc@box:~$
Title: Re: adduser: user 'test' in use
Post by: Rich on April 06, 2017, 05:55:26 AM
Hi Adam
Maybe commands can't be used as user names?
Title: Re: adduser: user 'test' in use
Post by: Adam on April 08, 2017, 07:02:06 AM
Hi Adam
Maybe commands can't be used as user names?
Thanks Rich.
I've already tried other user names ... getting the same error too. Any idea?
Quote
tc@box:~$ sudo adduser newuser
Changing password for newuser
New password:
Bad password: too short
Retype password:
Password for newuser changed by root
tc@box:~$ sudo adduser -G staff newuser
adduser: user 'newuser' in use
tc@box:~$
Title: Re: adduser: user 'test' in use
Post by: Rich on April 08, 2017, 07:32:35 AM
Hi Adam
It looks like you are adding the same user twice. Try deleting  newuser  and then go straight to:
Code: [Select]
sudo adduser -G staff newuser
Title: [SOLVED] adduser: user 'test' in use
Post by: Adam on April 08, 2017, 07:41:48 AM
Hi Adam
It looks like you are adding the same user twice. Try deleting  newuser  and then go straight to:
Code: [Select]
sudo adduser -G staff newuser
Oh, yeah .... I overlooked that.
Thanks Rich, I appreciate that. Problem solved  :)