In a terminal:
/home$ ls
abuabdullah alzaabi hussain u942
Then I tried to delete account u942
by using command line:
/home$ deluser u942
/usr/sbin/deluser: Only root may remove a user or group from the system.
Then I tried to use sudo
/home$ sudo deluser u942
/usr/sbin/deluser: The user `u942' does not exist.
How can I solve this problem?
/home
? Is there a reason you think there's an account namedu942
in your system?cut -d: -f1 /etc/passwd | grep u942
. (probably empty)ls -lsd /home/u942
so we'll able to see the owner of this folder