- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Users that never logged in
Operating System - Linux
1753798
Members
7892
Online
108805
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО08-21-2006 01:22 AM
тАО08-21-2006 01:22 AM
Users that never logged in
Hi,
There's a way to get a user list that never logged in a system (11i), to put in a script used to manage users? Outputs of the commands last and to finger seems not to be the better way.
Thank's for all.
There's a way to get a user list that never logged in a system (11i), to put in a script used to manage users? Outputs of the commands last and to finger seems not to be the better way.
Thank's for all.
- Tags:
- last
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2006 01:23 AM
тАО08-21-2006 01:23 AM
Re: Users that never logged in
Shalom,
passwd -sa
may work. It does on trusted systems produce a report that includes users that have never been used.
You should if office rules permit make sure those accoutns expire, although that seems to be what you may be moving toward.
SEP
passwd -sa
may work. It does on trusted systems produce a report that includes users that have never been used.
You should if office rules permit make sure those accoutns expire, although that seems to be what you may be moving toward.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Tags:
- passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2006 02:15 AM
тАО08-21-2006 02:15 AM
Re: Users that never logged in
Hi Joel,
This script expects that '/etc/password' contains an entry for each user, and 'last' reports the complete login history. It outputs to stdout.
#!/usr/bin/sh
last | cut -d' ' -f1 > /tmp/who.${$}.out.1
cut -d: -f1 /etc/passwd >> tmp/who.${$}.out.1
sort < /tmp/who.${$}.out.1 > /tmp/who.${$}.out.2
uniq -u < /tmp/who.${$}.out.2
rm -f /tmp/who.${$}.out.[1,2]
exit 0
PCS
This script expects that '/etc/password' contains an entry for each user, and 'last' reports the complete login history. It outputs to stdout.
#!/usr/bin/sh
last | cut -d' ' -f1 > /tmp/who.${$}.out.1
cut -d: -f1 /etc/passwd >> tmp/who.${$}.out.1
sort < /tmp/who.${$}.out.1 > /tmp/who.${$}.out.2
uniq -u < /tmp/who.${$}.out.2
rm -f /tmp/who.${$}.out.[1,2]
exit 0
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2006 03:48 AM
тАО08-21-2006 03:48 AM
Re: Users that never logged in
Hi,
Is'nt so simple, there's others variables, like connection by aplications and so long. But thanks for all.
Is'nt so simple, there's others variables, like connection by aplications and so long. But thanks for all.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP