WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] adduser: user 'test' in use  (Read 142 times)

Offline Adam

  • Full Member
  • ***
  • Posts: 105
[SOLVED] adduser: user 'test' in use
« on: April 06, 2017, 02: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:~$
« Last Edit: April 08, 2017, 06:43:35 AM by Rich »

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 5237
Re: adduser: user 'test' in use
« Reply #1 on: April 06, 2017, 04:55:26 AM »
Hi Adam
Maybe commands can't be used as user names?

Offline Adam

  • Full Member
  • ***
  • Posts: 105
Re: adduser: user 'test' in use
« Reply #2 on: April 08, 2017, 06: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:~$

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 5237
Re: adduser: user 'test' in use
« Reply #3 on: April 08, 2017, 06: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

Offline Adam

  • Full Member
  • ***
  • Posts: 105
[SOLVED] adduser: user 'test' in use
« Reply #4 on: April 08, 2017, 06: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  :)