hi
i create a new user with useradd command and then remove with userdel without -r options
Q1 - how to remove home dir for this new user from home dir
Q2 - after create this user and remove info from /etc/passwd a new file with name
passwd- ( dash end of name ) creaated with same permission
PHP Code:
-rw-r--r--. 1 root root 1880 Feb 5 22:34 /etc/passwd
-rw-r--r--. 1 root root 1923 Feb 5 22:34 /etc/passwd-
diff command outpute
PHP Code:
< newuser:x:503:500::/home/newuser:/bin/bash
and shadow - group file same passwd file
PHP Code:
-rw-r--r--. 1 root root 901 Feb 5 19:30 /etc/group
-rw-r--r--. 1 root root 905 Feb 2 10:11 /etc/group-
diff command output for group file
PHP Code:
1c1
< root:x:0:
---
> root:x:0:root
how to edit this file whit vipw command and other files ( shadow - group) ?