Page 1 of 1

There's 2 of me on this computer

Posted: Sun Mar 28, 2010 9:12 am
by LindseyD.
Top is telling me there are 2 users on my system.

The users command says they're both me.

I've rebooted several times, so it's not a temporary glitch.

As far as I can tell, I have only one /home directory (on its own partition), and the User Management component of System Settings says there's only one of me.

I don't know if this is related, but I've just managed to copy the whole of my /var/cache/apt/archives directory to a memory stick without being root. Is the 2nd me actually root? I don't think so, because if I
sudo su
whoami

I get root for an answer.

I don't think the DE makes any difference, but I'm using Mint8 KDE CE.

I could try reinstalling, but I'm on dialup, and reinstalling all those programs and updates--plus no way to back up my /home partition at the moment--makes me highly reluctant to do that. Any suggestions?

Re: There's 2 of me on this computer

Posted: Sun Mar 28, 2010 9:14 am
by exploder
Two users, you and root. :)

Re: There's 2 of me on this computer

Posted: Sun Mar 28, 2010 11:02 am
by LindseyD.
Thanks for the quick reply.
exploder wrote:Two users, you and root. :)
That's what I thought at first, but it's something I've never seen before. And the users command doesn't say
you root
it says
you you

Re: There's 2 of me on this computer

Posted: Thu Apr 01, 2010 9:29 pm
by RedWagon
The users command tells who is logged in to the computer. Pretty much every shell you have open counts you as being logged in. So in this case you have the default shell that started your GUI plus the terminal window that you're running the user command from. Open five terminal windows and it'll list you six times.

Re: There's 2 of me on this computer

Posted: Fri Apr 02, 2010 4:29 am
by mick55
You're never alone with a schizophrenic. :mrgreen:

Re: There's 2 of me on this computer

Posted: Fri Apr 02, 2010 4:56 am
by LindseyD.
RedWagon wrote:The users command tells who is logged in to the computer. Pretty much every shell you have open counts you as being logged in. So in this case you have the default shell that started your GUI plus the terminal window that you're running the user command from. Open five terminal windows and it'll list you six times.
Okay, I'll take everyone's word for it this is "normal" behaviour. But it's not normal for me :-(

Might be an OS thing, because I never saw it in 5 years of K/Ubuntu.
mick55 wrote:You're never alone with a schizophrenic. :mrgreen:
Ah, I love people who can always see a bright side :D

Re: There's 2 of me on this computer

Posted: Fri Apr 02, 2010 5:36 am
by mick55
Hi LindseyD.

If you use the "who" command it will show what the user is actually doing.
Below is the output on my Mint 7 install for the "users" command and then the 'who' command.

Code: Select all

mick@mick-desktop ~ $ users
mick mick mick mick
mick@mick-desktop ~ $ who
mick     tty7         2010-04-02 00:55 (:0)
mick     pts/0        2010-04-02 02:26 (:0.0)
mick     pts/1        2010-04-02 02:27 (:0.0)
mick     pts/2        2010-04-02 02:29 (:0.0)
I hope that makes more sense for you.

Run "who" yourself to put your mind/minds at ease. :mrgreen:

Incidentally, on my Debian install it only shows my user name once, irrespective of
the amount of terminals I have open, so this may just be an Ubuntu/Mint thing.

cheers
mick