Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • "Why would comments appear in the middle of the if command?" -- Because the line with umask can be commented out. And anyway, who knows where someone might add comments. Commented Jan 28, 2022 at 7:46
  • @ilkkachu Sure, anything can be commented out. I still don't know what would be the source of those comments becoming inserted into the command after the file was saved. The system sure wouldn't do it and I assume OP doesn't enter fugue states, which means there must be other sudoers potentially doing goofy things. Commented Jan 28, 2022 at 17:08