Technical article 114363

How do I unretire a user in Improved or High Security?

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6OpenServer 5.0.7

Written · Last revised

Problem

How do I unretire a user in Improved or High Security?

When I run the "unretire <user>" command, I get the following message:

unretire: The system is in a secure mode - users may not be unretired in this mode.

Cause

When operating under the High (C2) Security profile, a user is never
removed from the system.  Therefore, unretire will not function under
the High Security profile.
Once assigned, a UID is never reused.  Instead, a user account is
"retired," or removed from service.

This is also true of the "Improved" security profile.

Solution

Under other profiles, a user can be completely removed from the system.

For example, you can:

1. Allow UIDs to be reused regardless of the security profile, you can define REUSEUID=YES in /etc/default/login.

2. You can then run the command:

grep <user> /etc/passwd         ; to make a note of that user's
                                  $HOME directory and UID
rmuser <user>

3. Then re-add that user again with "scoadmin account" and the details you previously recorded.

Please    You can also use the "relax" command to move between different
Note:     security profiles to run the "unretire" command.

Use the "secdefs" command to detail the current security profile.

After running "unretire <user>", run "passwd <user>" to reset the user's password.

Use the "relax" command to move back to the previous security profile.

However, this is not recommended when going from "high" security to a lower security level because when you return to "high" your C2 security will be invalidated.

You will need to run the following commands:

tcbck -v                (checks for missing files)
authck -avy
integrity -e
fixmog -iv              (Interactive/Verbose)
custom -V symlinks

Instead of selecting a new security profile, you can change individual parameters, including password expiration information and the maximum number of login attempts within a security profile.

You can use the usermod (useradd/userdel/userls/groupadd/groupls)
command to:

- Change a parameter in your security profile that affects all users

- Quickly change parameters on an individual user basis

For example, to change the maximum number of login attempts to 10 for all users enter:

usermod -D -x "{maxLoginAttempts 10}"      /etc/auth/system/default
                                                 u_maxtries#
usermod -x "{maxLoginAttempts 10}" <user>  /tcb/files/auth/[a-z]/logname
                                                 u_maxtries#

The -D option operates on system defaults instead of an individual account.

Please    To Remove or Retire a user:
Note:
          In the Account Manager, select a user name, then select Delete or
          Retire from the Users menu. If you are operating with the Improved
          or High security profiles, only Retire is available.  Delete will
          fail.

Removing or retiring a user account does not remove the user's files; the system administrator must do this manually by deleting the directory. In addition, there may be other files that belong to the user on the system.

See also

ta104100, "Is it possible to unretire a user on SCO UNIX System?"

authck(ADM)
custom(ADM)
integrity(ADM)
relax(ADM)
rmuser(ADM)
secdefs(ADM)
tcbck(ADM)
unretire(ADM)
usermod(ADM)
useradd(ADM)

From the Xinuos technical article database, record 114363. Reproduced with permission. The original is at www.sco.com/ta/114363, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.