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.

Required fields*

8
  • Welcome to U&L. Troubleshooting a syntax error near line 1 in sudoers file is somewhat difficult without seeing the offending part. So maybe you could edit the question and add the file? Please use the code brackets { } around the output to preserve formatting. Commented Feb 23, 2023 at 18:22
  • Thanks @Peregrino69 for the comment. I got what's bugging me. I am adding the answer in comments. Commented Feb 23, 2023 at 19:58
  • Great, don't forget to drop back to accept your answer so this doesn't pop up in the future as "Unanaswered" - you'll need to wait for 48 hours, tho' :-) However as these are Q/A sites and very easily show up in top of for example Google searches, it'd be good to have the question complete with the contents of the problematic file. That also makes your answer more useful in the future. Commented Feb 23, 2023 at 20:18
  • as a good practice, i was not editing /etc/sudoers file, rather I was adding the configurations for each group in different files. For example, swts users, the commands file is 00-swts-commands with Cmnd_Alias and file swts-users contain the main configuration. Commented Feb 23, 2023 at 20:34
  • LOL you're just making this better :-D So the exact file under /etc/sudoers.conf/swts-users is 00-swts-commands? I'm learning here :-) Commented Feb 23, 2023 at 20:38