Remove user, but systemd?
I want to remove a user. Well known, this happens with "userdel". But:
sudo userdel baduser userdel: user baduser is currently used by process 2961 Well, as wise people say, kill process 2961. But this process is "systemd"!!! I surely do not want to kill systemd! What to do? |
Well, problem solved. After full reboot systemd released baduser.
|
are you sure it is a legitimate systemd process and not something that has renamed itself systemd? Systemd usually runs at PID 1 after all. I'd check what it's parent is
Code:
ps -o ppid,pid,command | grep "2961" Code:
ps auxf | less |
Interesting. You are right, PID 1 is systemd. But even after reboot there are other systemd instances appear, like PID 1245, PID 1590. Sorry I am not an expert in systemd.
The first command gives only grep itself. The second command for both: /lib/systemd/systemd --user |
I would also check what "it's" ppid is. Systemd means several processes. It's normal. The first comand shows only processes within that particular session (not very useful) and the second doesn't show the PPID. So I'd suggest ps -ef | grep systemd. For instance:
Quote:
|
on my system, pid 1 is 'init'.
however: Code:
ls -al /sbin/init |
What someone has done, for some strange reason, is to define a symlink to systemd and call it "init." No idea why.
|
All times are GMT -5. The time now is 06:31 PM. |