Results 1 to 10 of 10
Hello.
When I run the command "users" I get :
"nick nick"
I would think my name would only appear once. I was playing around with useradd so its possible ...
- 01-02-2010 #1Linux Newbie
- Join Date
- Jun 2009
- Posts
- 111
[SOLVED] ubuntu newbie trying to understand users command
Hello.
When I run the command "users" I get :
"nick nick"
I would think my name would only appear once. I was playing around with useradd so its possible I duplicated myself. Is this output correct, and, if not, how do I get rid of the redundancy?
Thanks in advance.Last edited by MikeTbob; 01-03-2010 at 01:43 AM. Reason: bad formatting in the Title
- 01-02-2010 #2Linux Guru
- Join Date
- Oct 2007
- Location
- Tucson AZ
- Posts
- 1,946
When I use the "users" command I get my username once. You can get non system users by:
cat /etc/passwd | grep 500*
and might be able to see from that if you have two "nick" users.
- 01-02-2010 #3Linux Newbie
- Join Date
- Jun 2009
- Posts
- 111
Thanks for the help.
When I run "cat /etc/passwd grep 500*" nothing is returned. So I am assuming nothing was found matching 500*.
- 01-02-2010 #4
shouldn't grep for uid
Code:grep nick /etc/passwd
- 01-02-2010 #5Linux Guru
- Join Date
- Oct 2007
- Location
- Tucson AZ
- Posts
- 1,946
You entered it incorrectly. cat /etc/passwd| grep 500*When I run "cat /etc/passwd grep 500*" nothing is returned.
No argument with that, never had to do this, would you happen to know a reason.?shouldn't grep for uid
Have you tried coopstahs suggestion?
- 01-02-2010 #6
well you could get for uid I suppose, but 500* would only match 500[0-9], 5000[0-9], 5001[0-9], etc
- 01-02-2010 #7Linux Newbie
- Join Date
- Jun 2009
- Posts
- 111
Ok. When I run the command grep /etc/passwd here's what I get:
grep nick /etc/passwd
nick: x:1000:1000:myfullname,,,:/home/nick:/bin/bash
- 01-03-2010 #8
i don't know if its a problem anyway
on arch when I run it I have 2 show up as well
Code:[ccooper@ccooper-laptop vpnclient]$ users ccooper ccooper
- 01-03-2010 #9Linux Newbie
- Join Date
- Jun 2009
- Posts
- 111
Well, I guess if its happening to you too then everything is ok. (I'm running Linuxmint)
Thanks for the help.
take care.
- 01-03-2010 #10
I think what you are seeing is the username and group
I do not respond to private messages asking for Linux help, Please keep it on the forums only.
All new users please read this.** Forum FAQS. ** Adopt an unanswered post.


