Yesterday I had to 'kill' a users session on our SCO Unix box as there terminal
session had become detached from the host processes.
The problem was that the system (presumably the 'login' command) didn't tidy
up the wtmp entry after the kill.
The problem is made worse by the fact that when the user logs back in I have
put a check into their .profile that looks at the output from 'who' to prevent
them from logging in more than once.
As it was the end of the working day the problem was left unsolved until today.
This morning I find that the wtmp has been updated, and the user is able to log
back in again.
Questions:
1. How can I manually edit the 'wtmp' file (it is a data file).
2. Has anyone got a program that can tidy this ?
3. What did the tidy up over-night ?
4. Is there a simple alternative for limiting user sessions ?
Thanks in advance.
--
Peter Gross, UNIX Systems Manager, Brighton Health Care NHS Trust, UK
BTW, the ideas, suggestions, jokes, fantasies, complaints, comments,
critiscms, cautions, insults, observations, diagrams, scripts, sarcastic
remarks, stories, programs, and thoughts shown in the text above are mine
and mine alone, and are NOT those of my employer or anyone else for that
matter (unless I say otherwise ;-).