Hi Guys!
I am sure that this question might appeared previously, but I still don't know how to show a list of logged out users. Please help with this!
Thanks in advance:)
Hi Guys!
I am sure that this question might appeared previously, but I still don't know how to show a list of logged out users. Please help with this!
Thanks in advance:)
How about
cut -d: -f1 /etc/passwd
For logged out users only you can add on a pipe to omit users logged in from RudiC's command:
cut -d: -f1 /etc/passwd | grep -v "$(finger -f|awk '{print $1}')"
Note: these suggestions are incomplete if your system is also using any form of authentication other then local passwords.
yes, there is an authentication.. how to make a list in that case?
logged out means the process no longer exists. The user account does.
The number of logged out processes grows every hour.
awk -F: '{print $1} ' | while read u
do
last $u
done
Once you see this in action you will get the idea that you need to tweak your question a bit. I'll bet what you want is everybody who logged today (or yesterday), not since the UNIX box booted up 6 weeks ago. You probably also want times/dates.
So - show us your desired output.