- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to list active users in hp-ux 11.0
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
Discussions
Discussions
Discussions
Forums
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
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
тАО10-27-2003 11:16 PM
тАО10-27-2003 11:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 11:17 PM
тАО10-27-2003 11:17 PM
Re: how to list active users in hp-ux 11.0
Try the "who" command.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 11:21 PM
тАО10-27-2003 11:21 PM
Re: how to list active users in hp-ux 11.0
This came up last week.
See
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=236787
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 11:22 PM
тАО10-27-2003 11:22 PM
Re: how to list active users in hp-ux 11.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 11:25 PM
тАО10-27-2003 11:25 PM
Re: how to list active users in hp-ux 11.0
#who -u
command to list the users who are currently logged in
#w
command to list the current activity of all active users.
HTH
aparna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 11:27 PM
тАО10-27-2003 11:27 PM
Re: how to list active users in hp-ux 11.0
You can use:
#finger -Ril
and
#who -HRT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 11:54 PM
тАО10-27-2003 11:54 PM
Re: how to list active users in hp-ux 11.0
I have 900 users registered in the system "cat /etc/passwd | wc - l = 900", necessary only accounts that are active or that they are not deactivates.
thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 11:59 PM
тАО10-27-2003 11:59 PM
Re: how to list active users in hp-ux 11.0
TMEOUT 1800 sets it for 30 minutes.
There are a lot of options in the who command, which might get you the information or selection you need.
man who.
Its probably time to play a bit and find out what works for you.
finger is insecure, and should be disabled on all systems, in my opinion.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 11:59 PM
тАО10-27-2003 11:59 PM
SolutionThe "last" command will give a history of logins so you can see who logged in recently.
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2003 12:05 AM
тАО10-28-2003 12:05 AM
Re: how to list active users in hp-ux 11.0
The best you can do is note all the users required by your applications, together with system users such as "lp", "nobody", "bin" etc and then run "last" on the remaining users to see if they have logged in since wtmp was created or initialized.
The standard approach that nobody will admit to is to guess which users are inactive and change the password and see who complains. If nobody complains then you delete it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2003 12:11 AM
тАО10-28-2003 12:11 AM
Re: how to list active users in hp-ux 11.0
If you mean that some of the users listed in /etc/passwd have had their accounts deactivated, look for an asterisk in the password field.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2003 12:12 AM
тАО10-28-2003 12:12 AM
Re: how to list active users in hp-ux 11.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2003 01:26 AM
тАО10-28-2003 01:26 AM
Re: how to list active users in hp-ux 11.0
By default, finger lists for each user_name on the system:
+ Login name,
+ Full given name,
+ Terminal write status (if write permission is denied),
+ Idle time,
+ Login time,
+ User's home directory and login shell,
+ Any plan the user has placed in file .plan in their home
directory,
+ Project on which they are working from the file .project, also
in the home directory,
+ office location and phone number (if known),
+ last time the user received the mail, and last time the user
read the mail.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2003 01:56 AM
тАО10-28-2003 01:56 AM
Re: how to list active users in hp-ux 11.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2003 01:58 AM
тАО10-28-2003 01:58 AM
Re: how to list active users in hp-ux 11.0
cat /etc/passwd | awk -F: '{print $1}'
for just active,
who or w
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2003 02:56 AM
тАО10-28-2003 02:56 AM
Re: how to list active users in hp-ux 11.0
Command "last -R" will show user name, logon time and IP address.