I accidentally untarred archive intended to be extracted in root directory, which among others included some files for /etc directory.
I went on to rm -rv ~/etc, but I quickly typed rm -rv /etc instead, and hit enter, while using a root account.

you are viewing a single comment's thread
view the rest of the comments
[–] 26 points 7 months ago (5 children)

Is there any reason to use a root account? If you had used sudo for each privilege needing command in stead it would have stopped you.

  • source
  • hideshow 5 child comments
  • [–] 30 points 7 months ago (1 child)

    Is there any reason to use a root account?

    if you just borked your /etc and need to rebuild because you don't have sudo anymore

  • source
  • parent
  • hideshow 1 child comment
  • [–] 4 points 7 months ago

    I hand-edited sudoers.conf day one on the job without using visudo

    So in one day, I learnd both how to move a volume from one AWS VM and that there's no good reason not to use visudo.

  • source
  • parent
  • [–] 3 points 7 months ago (2 children)

    Would it? I think it would have just let you do it.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 7 months ago* (1 child)

    I think they just mean you'd be prompted for a password, which should give you pause if you're supposed to be deleting items in your home folder.

  • source
  • parent
  • hideshow 1 child comment