1
This is my passwd file:
root:x:0:0:root:/root:/bin/bash
m:x:0:100::/home/m:/bin/bash
masoudjjgh:x:1000:100:masoudjjgh:/home/masoudjjgh:/bin/bash
I try to delete user m that I am created:
[root@...]# userdel m
[root@...]# userdel: user m is currently used by process 1
And when I try to kill m by this command:
[root@...]# killall -KILL -u m
desktop (kde)
, console
and anything exited and logged
me off automatically. All things close and I must login
again. userdel will again close all.
Is there anyway to remove m
?
I created it, but now I can't delete it.
same UID
very important point that you see it. than i can change m'UID , restart and then remove m. yes? – mlibre – 2014-08-28T14:52:40.720Yes. I would expand Kenster's suggestion to say: manually edit the password file to change
m
's UID to a number not used by any other user, and then douserdel m
. It should not be necessary to restart. – G-Man Says 'Reinstate Monica' – 2014-08-28T15:43:16.623