Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logins are not clearing when users log out 1

Status
Not open for further replies.

aseidas

MIS
Jan 10, 2002
73
US
Hi,
I have a customer running 5.0.5m. They log into the system to run our app which is being exec'd at the end of the users .profile. When they log out of our application at the end of the day the system is still showing them logged in. Our app does not allow concurrent logins so when they try to log in the next day they are not able to until they reboot the server. I remember there was an old TA about something like this but I cant seem to find it. If anyone can find the TA number or give me any ideas on how to fix this it would be greatly appreciated.

-Aseidas
 
There were a couple of culprits. The one I can remember without doing much research was to clear out the following files, then reboot:

/etc/wtmp
/etc/wtmpx
/etc/utmp
/etc/utmpx

Don't REMOVE them, just clear them like so:
# >/etc/wtmp (do same for remaining 3 files)

This should clear up any ghosts that appear with the "who" command. The second issue involved a corrupt file in /etc/perms (I think). There is a script you can create to clean that up as well. I'll find it if the above doesn't resolve your problem.
 
The TA for that on SCO's site is: 105610
It explains both issues and solutions.
 
I have this in a crontab:
2,7,12,17,22,27,32,37,42,47,52,57 8-20 * * 1-6 (cwtmp -OT;cwtmp -oU)>/dev/null 2>&1

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top