WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline Adam

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

Offline Rich

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

Offline Adam

  • Full Member
  • ***
  • Posts: 121
Re: adduser: user 'test' in use
« Reply #2 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:~$

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11213
Re: adduser: user 'test' in use
« Reply #3 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

Offline Adam

  • Full Member
  • ***
  • Posts: 121
[SOLVED] adduser: user 'test' in use
« Reply #4 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  :)