Still logged in problem


 
Thread Tools Search this Thread
Operating Systems AIX Still logged in problem
# 1  
Old 04-25-2012
Question Still logged in problem

Hello everyone,
I have a problem with one AIX server. When I run the last command, it shows thet many users logged in on Dec 31 at 19:00 and are "still logged in".
I know that is a problem I've seen before but I don't know how to fix it. I just cleared the /var/adm/wtmp, but it started doing it again.
Anyone can help me with this issue?
Thank you.
# 2  
Old 04-25-2012
Quote:
I just cleared the /var/adm/wtmp
What precisely did you type to attempt to achieve this?
How often do you start a new wtmp file? Do you ever leave it more than a year?

When was your system last rebooted?
Code:
who -b

Do these incomplete sessions appear in:
Code:
who -u

# 3  
Old 04-25-2012
Methyl,
Thank you for your response. I cleared the file this way: cat /dev/null > wtmp
I saved a copy of the file before doing this.

When I run who -b:

system boot Dec 12 18:39

Thanks again

Last edited by methyl; 04-25-2012 at 07:52 PM.. Reason: code tags
# 4  
Old 04-25-2012
In the absence of the answer to the question about who -u and more questions I'm going to guess that they are coming from the utmp file. No sensible way of editing this file. A reboot clears all the odd entries in the utmp file. Do not null this file or who -u stops working !
# 5  
Old 04-26-2012
Sorry I didn't include the results of who -u.
No, those incomplete sessions don't appear there. It is really hard to reboot this server now. I guess I'll have to wait for an opportunity to do it that doesn't affect production.
Thank you again for your help.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Logged in from some other location?

Hi. The history said that I had logged in a 0642 CDST this morning. I don't recall doing so, so I changed my password just in case. Does the board keep a daily history of logins and locations? If so, can you forward / post that to / for me? Thanks ... cheers, drl (0 Replies)
Discussion started by: drl
0 Replies

2. Shell Programming and Scripting

who logged in

Hi friends I want to get a list of users who have logged in before 10 'o clock in the morning on a given date . I tried with who and last commands but last gives only the last login time How do i find who logged before 10 'o clock Thanks (3 Replies)
Discussion started by: ultimatix
3 Replies

3. UNIX for Dummies Questions & Answers

How many users are logged in?

How do I find this out? I have a feeling its a simple command such as who, but I just don't know what it is. I've had a search on here but either I can't put it into the right search criteria or there isn't a topic on it. Thanks. EDIT: Delete this thread, as I posted it I noticed the... (0 Replies)
Discussion started by: chris_rabz
0 Replies

4. Shell Programming and Scripting

Who are all logged out

I have a situation where I have to capture information of all users who log out, along with the terminal info(tty command). For example, I may have logged in with /dev/pts/2 as well as /dev/pts4. Now, when I log out of the session with /dev/pts/2, I need that to be sent in an email to a... (1 Reply)
Discussion started by: ggayathri
1 Replies

5. Programming

logged in or logged out?

I have wrote a service with c++ which is always run and now I want to get with it the exact time in that the user log in or log out and then run a script. but the problem is that how could i find that the user logged in or logged out with out checking something frequently? thanks (9 Replies)
Discussion started by: mrhosseini
9 Replies

6. UNIX for Advanced & Expert Users

su ?? Who logged in First ??

Hi all, Say my login user id is "t007" and I login into the unix server first using my id and password and then I used to use "su" command to switch the user using root user id and password. Now, how the third person will come to know who has logged in as a first user ? As: Login: t007... (2 Replies)
Discussion started by: varungupta
2 Replies

7. Shell Programming and Scripting

last logged on info

Hi how can I know the details of when valid system users last logged on? thanks (1 Reply)
Discussion started by: nokia1100
1 Replies

8. Solaris

Need help getting logged in to server

Help!! I cannot log in. Last command I entered was set REMOTE_LOGIN_PASSWORDFILE to EXCLUSIVE. Since rebooting the server I am unable to bring up the OS bebcause 'root' is gone and I am guessing all other users' files. If anyone knows a back door way into server so I can rebuild passwd file I'd... (1 Reply)
Discussion started by: mayewil
1 Replies

9. Shell Programming and Scripting

how many users logged

in unix what is the syntax to find out how many users are currently logged in (4 Replies)
Discussion started by: trichyselva
4 Replies

10. UNIX for Dummies Questions & Answers

know who logged and logged out with their timings

being ordinary user (not having any administrative rights) can avail myself a facility to know who logged and logged out with their timings get popped onto my terminal as if it get echo 'ed... (3 Replies)
Discussion started by: vkandati
3 Replies
Login or Register to Ask a Question