There's 2 of me on this computer

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read how to get help
Post Reply
LindseyD.
Level 4
Level 4
Posts: 333
Joined: Fri Mar 26, 2010 12:35 pm

There's 2 of me on this computer

Post 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?
Mint17 KDE

exploder
Level 15
Level 15
Posts: 5526
Joined: Tue Feb 13, 2007 10:50 am
Location: HartfordCity, Indiana USA

Re: There's 2 of me on this computer

Post by exploder »

Two users, you and root. :)

LindseyD.
Level 4
Level 4
Posts: 333
Joined: Fri Mar 26, 2010 12:35 pm

Re: There's 2 of me on this computer

Post 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
Mint17 KDE

User avatar
RedWagon
Level 5
Level 5
Posts: 632
Joined: Tue May 26, 2009 6:41 pm

Re: There's 2 of me on this computer

Post 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.

User avatar
mick55
Level 6
Level 6
Posts: 1485
Joined: Fri Sep 25, 2009 2:47 am

Re: There's 2 of me on this computer

Post by mick55 »

You're never alone with a schizophrenic. :mrgreen:
Things are more like they are now than they ever were before.

Dwight D. Eisenhower (1890 - 1969)

LindseyD.
Level 4
Level 4
Posts: 333
Joined: Fri Mar 26, 2010 12:35 pm

Re: There's 2 of me on this computer

Post 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
Mint17 KDE

User avatar
mick55
Level 6
Level 6
Posts: 1485
Joined: Fri Sep 25, 2009 2:47 am

Re: There's 2 of me on this computer

Post 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
Things are more like they are now than they ever were before.

Dwight D. Eisenhower (1890 - 1969)

Post Reply

Return to “Other topics”