Last login: Thu Feb 9 18:22:01 2017 from 192.168.31.1
[root@CRRC ~]# groupadd -g 700 bea
[root@CRRC ~]# useradd -u 700 -g 700 weblogic
Creating mailbox file: File exists
[root@CRRC ~]# find / -name "*weblogic*"
/var/spool/mail/weblogic
/home/weblogic
[root@CRRC ~]#
Connecting to 192.168.31.128:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
Last login: Thu Feb 9 18:43:10 2017 from 192.168.31.1
[root@CRRC ~]# groupdel bea
groupdel: cannot remove the primary group of user 'weblogic'
[root@CRRC ~]# userdel weblogic
[root@CRRC ~]# groupdel bea
[root@CRRC ~]# cd /home
[root@CRRC home]# ll
total 8
drwx------. 26 kshsky kshsky 4096 Feb 9 18:18 kshsky
drwx------. 4 700 700 4096 Feb 9 18:43 weblogic
[root@CRRC home]# rm -rf weblogic/
[root@CRRC home]# cd /var/spool/mail/
[root@CRRC mail]# ll
total 0
-rw-rw----. 1 kshsky mail 0 Feb 8 21:20 kshsky
-rw-rw----. 1 rpc mail 0 Feb 8 20:38 rpc
-rw-rw----. 1 700 mail 0 Feb 9 18:24 weblogic
[root@CRRC mail]# rm -rf weblogic
[root@CRRC mail]# ll
total 0
-rw-rw----. 1 kshsky mail 0 Feb 8 21:20 kshsky
-rw-rw----. 1 rpc mail 0 Feb 8 20:38 rpc