coja@lemmy.ml to Linux@lemmy.ml · 1 year agoDefaults insultslemmy.mlimagemessage-square122fedilinkarrow-up11.19Karrow-down116
arrow-up11.18Karrow-down1imageDefaults insultslemmy.mlcoja@lemmy.ml to Linux@lemmy.ml · 1 year agomessage-square122fedilink
minus-squarephx@lemmy.calinkfedilinkarrow-up185arrow-down1·1 year ago Login as a user. Delete the user while still logged in Run command You should get a message “you don’t exist, go away” Not sure if that one is still around but I know one person who ran a script with “deluser $USER” and it ate root resulting in fun messages like that
minus-squaremarcos@lemmy.worldlinkfedilinkarrow-up41·1 year agoMy local deluser checks if the user has any active process. I tried deleting all of the data by hand, but the process is still assigned to a user name and id. I’m not sure if this one can error still can be replicated.
minus-squarephx@lemmy.calinkfedilinkarrow-up4·1 year agoWell you could manually edit /etc/password and shadow I suppose
minus-squareaname@lemmy.onelinkfedilinkarrow-up8·1 year agoEasy to try in a virtual machine with snapshot. Or use a filesystem snapshot
You should get a message “you don’t exist, go away”
Not sure if that one is still around but I know one person who ran a script with “deluser $USER” and it ate root resulting in fun messages like that
My local
deluser
checks if the user has any active process. I tried deleting all of the data by hand, but the process is still assigned to a user name and id.I’m not sure if this one can error still can be replicated.
Well you could manually edit /etc/password and shadow I suppose
I think I’ll just take your word for it.
Easy to try in a virtual machine with snapshot. Or use a filesystem snapshot