Welcome to the Community!
There is not enough context in your question for us to be able to answer it. Permission for what? Which Atlassian application? Is this ec2-user a human or a service account of some sort? Where is "unable to initialise policy plugin" coming from? What app is the "policy plugin"?
sudo: parse error in /etc/sudoers near line 21 sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin
this is my full question about this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This has nothing to do with Atlassian stuff, so you are asking in the wrong place.
But, it's not hard to see what is wrong - the error message you've posted is clear that your /etc/sudoers file is incorrectly written or corrupt.
You need to edit that file and correct the errors in it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Recommended Learning For You
Level up your skills with Atlassian learning
Atlassian DevOps Essentials
Learn to manage the product lifecycle by building, automating, and improving processes with Atlassian's approach to DevOps.
Jira Automation
Reduce project complexity and optimize your team's processes through the power of automation.
Bitbucket Pipelines Configuration
Build better software and release more often by learning how to implement a CI/CD solution with Bitbucket Pipelines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.