Specifications

Chapter 8 Managing User and Group Accounts 107
To terminate a users processes:
After disabling the user account, you need to kill the users active processes that are
running on the directory server.
1 Make all processes clean up and exit by entering the following command, replacing
ajohnson with the user name:
$ sudo killall -TERM -u
ajohnson
2 Wait a few seconds to allow the previous command to execute; then, to terminate the
users processes, enter the following command, replacing ajohnson with the user name:
$ sudo killall -9 -u
ajohnson
For more information about terminating processes, see the killall man page.
To reenable a disabled user account:
m Enable the user account by entering the following command.
$ pwpolicy -a
diradmin
-u
ajohnson
-setpolicy “isDisabled=0”
Replace ajohnson with the short name of the user account and replace diradmin with
the short name of your domain administrator account.
Verifying a Server Users Name, UID, or Password
To verify the name, UID, or password of a user in the servers local directory domain,
use the following commands.
Note: These tasks apply only to the local directory domain on the server.
To see if a full name is in use:
$ sudo /System/Library/ServerSetup/serversetup -verifyRealName "
longname
"
The command displays a 1 if the name is in use, or a 0 if it isn’t.
To see if a short name is in use:
$ sudo /System/Library/ServerSetup/serversetup -verifyName
shortname
The command displays a 1 if the name is in use, or a 0 if it isn’t.
To see if a UID is in use:
$ sudo /System/Library/ServerSetup/serversetup -verifyUID
uid
The command displays a 1 if the UID is in use, or a 0 if it isn’t.
WARNING: Unconditionally killing a users processes causes the user to lose unsaved
data.