I have sudo privileges on my home desktop running Fedora 22. I created a newuser with sudo useradd newuser and sudo passwd newuser. I then logged in as this newuser with su newuser, then switched back to myself with su dwayne.I tried to delete the new user with userdel -r mewuser, but I got a messageuserdel: user newuser is currently used by process 6415p.s.: 6415 shows newuser is in a bash shell which makes sense since I logged in to the bash shell as newuser with su newuser. And here is where my question comes from, I tried sudo kill 6415 but it doesn't work nor does it give me any error message. Without an error you would think it all went as planned. I read the manpage for kill(2) but I did not find anything related to using sudo to kill a process. Is it possible to kill another users process with sudo or would I need to be logged in as root?
Is it possible to kill another user's process using sudo privileges?
linux;kill