- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: User logon
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
09-17-2002 02:51 AM
09-17-2002 02:51 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2002 03:01 AM
09-17-2002 03:01 AM
Re: User logon
Probably loop through all valid users ( see "man users"). Get the most recent login for each user and see if it is later than your time interval.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2002 03:06 AM
09-17-2002 03:06 AM
Re: User logon
Do you have a "trusted" system? If you do you could have passwd aging on and when they call to have their account reactivated then you know.
You could use "last".
Or you could list the .profiles in their home directories to see if it's been opened.
I'd suggest looking at this thread http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x026250011d20d6118ff40090279cd0f9,00.html
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2002 03:20 AM
09-17-2002 03:20 AM
Solution-------------
for i in $(cat /etc/passwd | cut -d: -f1)
do
finger $i| grep Never| xargs echo $i | grep Never
done
or using last
-------------
OPTIONS=""
OPTIONS=$#
echo "" > /tmp/there.loggedin$$
cat /etc/passwd | cut -d: -f 1 | sort > /tmp/passwd.users$$
for i in $(last $OPTIONS | awk {'print $1'} | sort | uniq)
do
grep $i /etc/passwd |cut -d: -f 1 | sort>> /tmp/there.loggedin$$
done
echo "Did not login:"
echo "--------------"
sdiff /tmp/there.loggedin$$ /tmp/passwd.users$$ | grep ">" | tr -s " " ""
rm /tmp/there.loggedin$$
rm /tmp/passwd.users$$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2002 03:24 AM
09-17-2002 03:24 AM
Re: User logon
for i in $(last $OPTIONS
to
for i in $(last