Parkridge Consulting

Unretire account on SCO

Keywords

unretire, sco, logged in

Problem

When you try and unretire an account it says that the user is still logged in.

Solution

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.

Download

Nothing to download


Copyright © 2003 1099987 Ontario Inc. All rights reserved.
Home | Privacy | Legal Notices | info@parkridge.on.ca