LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-17-2007, 06:29 AM   #1
Muhammed
LQ Newbie
 
Registered: Jul 2007
Posts: 21

Rep: Reputation: 15
Exclamation how can i as the root know what is the last account logged in this computer


how can i as the root know what is the last account logged in this computer
 
Old 08-17-2007, 06:32 AM   #2
devnull0
LQ Newbie
 
Registered: Jul 2007
Location: GA
Distribution: LFS
Posts: 23

Rep: Reputation: 15
Try lastb. It shows the last person logged in to the computer, but only if /var/log/btmp exists. If it doesn't, do a 'touch /var/log/btmp'.
 
Old 08-17-2007, 06:36 AM   #3
livetoday
Member
 
Registered: Jun 2006
Location: India
Distribution: RHEL,Suse,Fedora
Posts: 106

Rep: Reputation: 15
You can also try last...based on /var/log/wtmp

Quote:
Originally Posted by devnull0 View Post
Try lastb. It shows the last person logged in to the computer, but only if /var/log/btmp exists. If it doesn't, do a 'touch /var/log/btmp'.
 
Old 08-17-2007, 07:33 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
To clear that up: 'last' shows all user login/outs, 'lastb' shows bad login attempts.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why is my common account can't open Terminal in XFCE4 but root account? notsay Slackware 4 08-18-2007 11:29 PM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM
Logged in as root, prompted for root password ta0kira Slackware 13 04-25-2005 01:29 AM
kde much slower to start when logged in as alan than logged in as root arubin Slackware 0 04-26-2004 04:27 PM
mozilla works fine when logged in as a user but crashes when logged in as root jimi Linux - General 6 04-02-2003 08:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration