Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I want to see a log over successful logins on my Suse 10 machine and just discovered the lastlog command. It gives me the information I want (last time a specific user logged in to the machine), but unfortunately only for current users on the system. I just deleted a user from the machine (using YaST) and now I cannot see him using lastlog (I guess I should only have inactivated it?).
So, what to do? Is there some other log for login attempts (successful most interresting for me), or can I recover/undelete/restore a user some how? I have not deleted the home directory if that's got anything to do with this...
Thanks!
Last edited by mrblacksmith; 02-16-2009 at 02:44 AM.
Reason: change header to indicate solved
I want to see a log over successful logins on my Suse 10 machine and just discovered the lastlog command. It gives me the information I want (last time a specific user logged in to the machine), but unfortunately only for current users on the system. I just deleted a user from the machine (using YaST) and now I cannot see him using lastlog (I guess I should only have inactivated it?).
So, what to do? Is there some other log for login attempts (successful most interresting for me), or can I recover/undelete/restore a user some how? I have not deleted the home directory if that's got anything to do with this...
Thanks!
Well, if you've deleted the user, and you didn't mean to, you're going to have to recreate the user.
If you delete a user, they're obviously not active anymore, and won't be able to log in with that ID. You can check auth.log, or your syslogs, and see if there are any ATTEMPTS to log in with that ID, but that'll depend on what level of logging you have set up.
I found another command, "last" which I ran in "/var/log" as root. This gave me the list I wanted, and included all logins for all users for the last months. It included logins by users not available in the system anymore (i.e. not only current users as "lastlog" did), so I do no need to restore/rebuild any users. Thanks anyway!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.