unretire, sco, logged in
When you try and unretire an account it says that the user is still logged in.
There is a bug in the unretire script on SCO. It occurs when you have multiple names and the one you are trying to reture is part of a longer name. For instance trying to unretire bob when a user boby exists on the system as well.
One solution is to have the user boby logoff the system while you perform the unretire.
A second solution is to fix the script. It is located in /tcb/bin/unretire. Find the line:
if /bin/who | grep "$1" > /dev/null
and replace the argument to grep with:
if /bin/who | grep "^$1 " > /dev/null
Note the addition of the caret(^) and the addition of the space. This more clearly identifies what is being looked for.
Nothing to download