- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- last command says I am still logged in
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
Discussions
Discussions
Discussions
Forums
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
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
тАО12-10-2003 05:05 AM
тАО12-10-2003 05:05 AM
last command says I am still logged in
When I log out last still says I am logged in!
I made the mistake of clearing out the wtmp file utmp file.
>wtmp
>wtmp
Now I am running into problems with the last command.
It still says I am logged in when I am not.
# who
laura pts/0 Dec 10 11:29
laura pts/1 Dec 10 11:52
# last
laura pts/1 Wed Dec 10 11:52 still logged in
laura pts/1 Wed Dec 10 11:47 still logged in
wtmp begins Wed Dec 10 11:47
****Logged out***
# who
laura pts/0 Dec 10 11:29
# last
laura pts/1 Wed Dec 10 11:52 still logged in
laura pts/1 Wed Dec 10 11:47 still logged in
wtmp begins Wed Dec 10 11:47
# last
laura pts/1 Wed Dec 10 11:52 still logged in
laura pts/1 Wed Dec 10 11:47 still logged in
wtmp begins Wed Dec 10 11:47
Completely logged out of server and logged back in...
$ last
laura pts/0 Wed Dec 10 11:55 still logged in
laura pts/1 Wed Dec 10 11:52 still logged in
laura pts/1 Wed Dec 10 11:47 still logged in
wtmp begins Wed Dec 10 11:47
I went in and trimmed using sam, same problem.
I also did I reboot. That would clear the still logged in but I still have the same problem!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 05:10 AM
тАО12-10-2003 05:10 AM
Re: last command says I am still logged in
Seems strange whats going on.
Perhaps you need to check permissions on the wtmp file and completely delete it and rebuild it.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 05:13 AM
тАО12-10-2003 05:13 AM
Re: last command says I am still logged in
did you try a cat /dev/null > /var/adm/wtmp
This will clean all the info.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 05:13 AM
тАО12-10-2003 05:13 AM
Re: last command says I am still logged in
Also check if you are up to date on WTMP patches.
Also look at fwtmp command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 05:17 AM
тАО12-10-2003 05:17 AM
Re: last command says I am still logged in
I am the only one on the system. I am still at a loss!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 05:19 AM
тАО12-10-2003 05:19 AM
Re: last command says I am still logged in
You can trim the file to an acceptable size if you do not want to trim it to zero.
Take a look at this thread,
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063200530
The doc id is KBRC00002527
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 05:22 AM
тАО12-10-2003 05:22 AM
Re: last command says I am still logged in
Post ll /var/adm/wtmp.
(I assume you doing all this by loggin in as root user)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 05:26 AM
тАО12-10-2003 05:26 AM
Re: last command says I am still logged in
Here's what I get:
# >/var/adm/wtmp
# exit
$ last
wtmp begins Wed Dec 10 13:23
$ ll /var/adm/wtmp
-rw-rw-r-- 1 adm adm 0 Dec 10 13:23 /var/adm/wtmp
$
I had logged in as myself, su'd to root, and cleared the wtmp file. As you can see, it shows zero bytes and the last command returns nothing. Are you sure this is what you're doing?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 05:26 AM
тАО12-10-2003 05:26 AM
Re: last command says I am still logged in
# cd /var/adm
# > wtmp
Also, check for all latest patches for last command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 05:28 AM
тАО12-10-2003 05:28 AM
Re: last command says I am still logged in
You don't have to be on the console to do this. you can do this from any telnet session itself.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 05:30 AM
тАО12-10-2003 05:30 AM
Re: last command says I am still logged in
$ last
lhradowy pts/0 Wed Dec 10 12:26 still logged in
lhradowy pts/0 Wed Dec 10 12:26 still logged in
wtmp begins Wed Dec 10 12:25
$ ll /var/adm/wtmp
-rw-rw-r-- 1 adm adm 240 Dec 10 12:26 /var/adm/wtmp
$
I also did cat /dev/null > /var/adm/wtmp
Still same problem...
I will look for patch...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 05:36 AM
тАО12-10-2003 05:36 AM
Re: last command says I am still logged in
fwtmp < /var/adm/wtmp > /tmp/login.txt
>/tmp/login.txt
fwtmp -ic < /tmp/login.txt > /var/adm/fwtmp
>/var/adm/fwtmp
$last
Post the results.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 05:38 AM
тАО12-10-2003 05:38 AM
Re: last command says I am still logged in
$ last
lhradowy pts/0 Wed Dec 10 12:26 still logged in
lhradowy pts/0 Wed Dec 10 12:26 still logged in
Times are the same? check your profile what is it doing?
Also having a second root level login is a security issue - it provides another superuser entrance - best to have only one root level user "root" and only use it as a last resort. Su to root if required from your normal working login.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 05:42 AM
тАО12-10-2003 05:42 AM
Re: last command says I am still logged in
# /usr/sbin/acct/fwtmp < /var/adm/wtmp > /tmp/login.txt
# >/tmp/login.txt
# /usr/sbin/acct/fwtmp -ic /var/adm/wtmp
# date
Wed Dec 10 12:40:32 CST 2003
# >/var/adm/wtmp
# last
wtmp begins Wed Dec 10 12:40
# date
Wed Dec 10 12:40:58 CST 2003
# last
lhradowy pts/2 Wed Dec 10 12:41 still logged in
lhradowy pts/1 Wed Dec 10 12:41 still logged in
wtmp begins Wed Dec 10 12:41
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 05:43 AM
тАО12-10-2003 05:43 AM
Re: last command says I am still logged in
Yes this is possible. Your profile might be calling a new shell within the profile.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 05:44 AM
тАО12-10-2003 05:44 AM
Re: last command says I am still logged in
I do not want second level user login.
How did I do that!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 05:47 AM
тАО12-10-2003 05:47 AM
Re: last command says I am still logged in
I did mv roots profile to /rootuser...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 05:50 AM
тАО12-10-2003 05:50 AM
Re: last command says I am still logged in
Post
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 06:12 AM
тАО12-10-2003 06:12 AM
Re: last command says I am still logged in
You might have to clean bad logins as well:
>/var/adm/btmp
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 06:21 AM
тАО12-10-2003 06:21 AM
Re: last command says I am still logged in
Still problem!
I can't find any patches regarding this as well.
# >/etc/wtmp
# last
wtmp begins Wed Dec 10 13:20
# last
lhradowy pts/1 Wed Dec 10 13:20 still logged in
wtmp begins Wed Dec 10 13:20
# last
lhradowy pts/1 Wed Dec 10 13:20 still logged in
wtmp begins Wed Dec 10 13:20
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 06:44 AM
тАО12-10-2003 06:44 AM
Re: last command says I am still logged in
lastb
shows the current date! And does not log bad logins!
And yes I recreated it and still no go!
# date
Wed Dec 10 13:43:39 CST 2003
# lastb
btmp begins Wed Dec 10 13:43
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 05:07 PM
тАО12-10-2003 05:07 PM
Re: last command says I am still logged in
telnet ? Open-ssh ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2003 01:29 AM
тАО12-11-2003 01:29 AM
Re: last command says I am still logged in
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2003 05:22 AM
тАО12-11-2003 05:22 AM
Re: last command says I am still logged in
Let us know how it was resolved.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2003 06:21 AM
тАО12-11-2003 06:21 AM
Re: last command says I am still logged in
Now, does HP have a link to address bug problems.... NO!
I was transfered 10 times before I found someone to talk to.
I have a case in with them.