I'm trying to delete default pi
user, i've tried many things but it seems that i can't have him removed.
This is what i do
delete processes of pi
user
sudo pkill -u pi
delete user
sudo deluser pi
retuns
Removing user pi ...
Warning: group pi has no more members.
userdel: user pi is currently used by process 1730
even if i kill that process and rerun the commands there is another process that get's activated on another PID
ps -lp {process id}
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
4 S 1000 657 1 0 80 0 - 3676 - ? 00:00:00 systemd
I'm following this documentation to enhance security on my raspberry
Related stack overflow post that didn't work for me: Can't delete pi user on Raspbian
ps -lp ___
replacing___
with the pid. – goldilocks Oct 06 '20 at 14:49systemd
i'll update the question with it – Phill Alexakis Oct 06 '20 at 14:53ls /home
shows only my new user. How is the pi logged in? . Onreboot
saysUser pi is logged in on tty1
, of course i'm forcing it withsystemctl reboot -i
– Phill Alexakis Oct 06 '20 at 15:07sudo pkill -KILL -u pi
and still doesn't kill the processes, there are replaced with new ones – Phill Alexakis Oct 06 '20 at 15:10