I need a non-root user to do certain (safe) things. I didn't pay attention, and used useradd -ou 0 -g 0 new_user_name, which gave root permissions to the user. It also has the same UID of 0.
Before I do something stupid, can anyone help me on how to delete this user, or simply change the permissions/UID? I already discovered what happens with pkill. Hahaha.
man userdel? --- if you want to be on the safe side (but I hope the tool will have no problem with duplicated UIDs) you can backup/etc/passwd,/etc/shadow/, and the corresponding group files. – Rmano May 31 '16 at 07:31