[下一页][首页][上一页]
|
我如何移除使用者?
|
NAME rmuser - 从系统中移除使用者 SYNOPSIS rmuser [-y] [username] DESCRIPTION If not running "affirmatively" (i.e., option -y is not specified), rmuser shows the selected user's password file entry and asks for confirmation that you wish to remove the user. If the user's home directory is owned by the user, rmuser asks whether you wish to remove the user's home directory and everything below. Available options: -y Affirm - any question that would be asked is answered implicitly in the affirmative (i.e., yes). A username must also be specified on the command line if this option is used. [username] 确认要删除的使用者;::dentifies the user to be removed; if not present, rmuser interactively asks for the user to be removed. |
范例: |
# rmuser elvis Matching password entry: elvis:$1$oAclIctV$Rb0vz3W9CFvHUOvaKYo7Z/:1002:1002::0:0:elvis:/home/elvis:/bin/sh Is this the entry you wish to remove? y Remove user's home directory (/home/elvis)? y Updating password file, updating databases, done. Updating group file: (removing group chuck -- personal group is empty) done. Removing user's home directory (/home/chuck): done. Removing files belonging to chuck from /tmp: done. Removing files belonging to chuck from /var/tmp: done. Removing files belonging to chuck from /var/tmp/vi.recover: done. # |
范例: |
# rmuser -y elvis Updating password file, updating databases, done. Updating group file: (removing group elvis -- personal group is empty) done. Removing user's home directory (/home/elvis): done. Removing files belonging to elvis from /tmp: done. Removing files belonging to elvis from /var/tmp: done. Removing files belonging to elvis from /var/tmp/vi.recover: done. # |
[上一页][首页][下一页] |