1. Check for the users configured and verify which user you want to delete. In this example, we are trying to delete the user "erik".
XS#show usernames
Username CLI Privilege Level GUI Access Level Maxdays
admin 15 Administrator 65535
erik 0 Guest 30
(2 rows)
Use "who" command at the unix shell to determine all users logged in.
[[email protected] admin]# who
erik ttyS0 Feb 27 13:29 <<<<<<<<<<erik is still logged in.
admin pts/0 Feb 28 08:47 (10.95.0.114)
Use "whoami" command to determine which user your session is logged in as. The current user is also indicated in the prompt. Session of another user can only be terminated by the root user.
root
2. Terminate all sessions of the user using "pkill" command:
[
[email protected] admin]# pkill -KILL -u erik
NOTE: Make sure that no critical processes run under the session which will be terminated.
4.Verify if all sessions for the user has been terminated:
admin pts/0 Feb 28 08:47 (10.95.0.114)
5. Delete the user (there should be no error).
#conf no username erik
XS# show username
Username CLI Privilege Level GUI Access Level Maxdays
admin 15 Administrator 65535
(1 row)
Workaround
n/a