- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to find the user
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2007 10:23 PM
11-12-2007 10:23 PM
how to find the user
i want remove all the users in that....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2007 10:31 PM
11-12-2007 10:31 PM
Re: how to find the user
Find what user??? Remove which users???
Could you please explain a little further?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2007 10:39 PM
11-12-2007 10:39 PM
Re: how to find the user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2007 10:54 PM
11-12-2007 10:54 PM
Re: how to find the user
$cat /etc/passwd | awk -F: '{print $1}'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2007 11:08 PM
11-12-2007 11:08 PM
Re: how to find the user
$ cat finger_user
for USER in `cat /etc/passwd | awk -F: '{print $1}'`
do
finger $USER
done
Then run that script and analyze the output:
$ finger_user > finger.out
You will see, for each user, information like this:
$ finger rochelle
Login name: rochelle In real life: Rochelle E. Franklin
Bldg: registry2
Directory: /home/rochelle Shell: /usr/bin/sh
Never logged in.
No unread mail
No Plan.
The key here is the "Never logged in" line. If this says "never" or the last login was a long time ago, you might want to consider removing the user.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2007 11:17 PM
11-12-2007 11:17 PM
Re: how to find the user
Be cautious. Do not remove any system accounts that may cause your system to become unstable.
Also, I would recommend using SAM for removal of user accounts.
kind regards
yogeeraj