Installation guide
To modify a group file entry:
1. Log in as root and change to the /etc directory.
2. Use the cp command to copy the group file to a temporary file.
# cp group group.sav
3. Open the group file and remove the user’s name from each line entry
in which it is listed. The screen displays a file similar to the following,
which shows that user marcy is not a member of the users group:
system:*:0:root,diaz
daemon:*:1:daemon
uucp:*:2:uucp
.
.
.
users:*:15:diaz,chris
.
.
.
4. Close the file.
9.4.5 Removing a User’s Account from the passwd File
After you remove a user’s account from the passwd file, the system can no
longer identify the user. When removing an account for a user, use the
vipw command to delete the line entry that identifies the user. The vipw
command allows you to edit the passwd file and at the same time locks the
file to prevent others from using it. Refer to Section 9.2.1.1 for information
on editing the passwd file.
If you maintain accounting on a monthly basis, do not remove the line
entry for the user’s account from the passwd file until the monthly
accounting has been done. Since the accounting commands access the
passwd file, removing the user account line entry will create inaccuracies
in your accounting.
However, since your primary goal is to restrict the user from gaining access
to the system, you can immediately suspend the user from logging in by
substituting NO_LOGIN for the encrypted user password in the passwd
file. For example, the line entry for user marcy is as follows:
marcy:IK7Nv8f86Jo:201:20:Marcy Swanson,dev,x1234:/usr/users/marcy:/bin/csh
Replace the encrypted password with NO_LOGIN as shown in the
following example:
marcy:NO_LOGIN:201:20:Marcy Swanson,dev,x1234:/usr/users/marcy:/bin/csh
To disable network logins, delete the user’s account from any proxy files
such as the user’s .rhosts file.
9–20 Administering User Accounts and Groups