First I am logged into root and executed this command:
# sudo su
Then:
# usermod -l lazybug peter
Getting this error:
usermod: user peter is currently used by process 19895
So I have killed the process
# kill 19895
It will come out of root and if I run the same command it will give the same error message. I am really confused and please help.
sudo su
, which is run bypeter
. – Chai T. Rex May 29 '18 at 03:54exec sudo -i
instead ofsudo su
. – muru May 29 '18 at 03:58