you are viewing a single comment's thread
view the rest of the comments
[โ€“] 47 points 2 years ago* (4 children)

why tho?

If it's a file I have to modify once why would I run:

sudo chmod 774 file.conf

sudo chown myuser:myuser file.conf

vi file.conf

sudo chown root:root file.conf

sudo chmod 644 file.conf

instead of:

sudo vi file.conf

1000001464

  • source
  • hideshow 4 child comments
  • [โ€“] 23 points 2 years ago* (3 children)

    Inane. Intentionally convoluted, or someone following the absolute worst tutorials without bothering to understand anything about what they're reading.

    I have questions:

    • Why are your configurations world readable?
    • Why are you setting the executable bit on a .conf file?
    • Why change the files group alongside the owner when you've just given the owner rxw and you're going to set it back?
    • If it was 644 before, why 774?
    • Why even change the mode if you're going to change the ownership?
    • Why do you want roots vimrc instead of your users
    • Why do you hate sudoedit
    • Why go out of your way to make this appear more convoluted than it actually is?

    Even jokey comments can lead to people copying bad habits if it's not clear they're jokes.

    This was a joke right? I was baited by your trolling?

  • source
  • parent
  • hideshow 3 child comments