Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Show a list of users, How do I show a list of users
topwop
post Mar 13 2006, 12:44 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 13-March 06
Member No.: 6,159



I took over a linux box and need to know the list of users so I can manage them and delete unwanted or unused users. Any suggestions?
Go to the top of the page
 
+Quote Post
Hemant
post Mar 13 2006, 02:22 PM
Post #2


RMS is my Hero
******

Group: Support Specialist
Posts: 782
Joined: 6-October 02
From: Trichy,INDIA
Member No.: 29



how abt: "cat /etc/passwd/|more"


--------------------
Hemant Kumar
user posted image
hemant@linuxhelp.net
Go to the top of the page
 
+Quote Post
topwop
post Mar 13 2006, 02:52 PM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 13-March 06
Member No.: 6,159



Ok I typed cat /etc/passwd | more and got a lot of output to my screen. I think I was able to determine the users. Thank you. is there a way to see when a user last logged on either locally or using ssh?
Go to the top of the page
 
+Quote Post
michaelk
post Mar 13 2006, 04:02 PM
Post #4


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,797
Joined: 23-January 03
Member No.: 360



For local users use the last command. See man pages for details
For ssh users check the /var/log/auth/info file.
Go to the top of the page
 
+Quote Post
Robert83
post Mar 13 2006, 05:15 PM
Post #5


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



CODE
lastlog


That is also usefull smile.gif

Sincerely
Robert B.


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
g33k
post Jun 19 2006, 01:21 AM
Post #6


./configure
***

Group: Support Specialist
Posts: 84
Joined: 18-June 06
Member No.: 6,568



To get a list of users *only* try :
CODE
cat /etc/passwd | cut -d ":" -f 1 -


--------------------
-- a *certified* n00b

"The best is Yet to come !"

My Desktop : OpenSuSE 10.1 | FVWM-Crystal | MPD | Gaim | Opera | Mrxvt
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st October 2017 - 06:57 AM