Article 578FB How to disable specific commands for just 1 Linux user?

How to disable specific commands for just 1 Linux user?

by
Akkys
from LinuxQuestions.org on (#578FB)
Hi,

I would like to prohibit USER_A in a Linux server(Red Hat 7) from executing specific AWS CLI commands below which start AWS EC2 server:

1. aws ec2 start-instances --instance-ids i-12345678
2. aws ec2 start-instances --instance-ids i-87654321

*The 2 EC2 servers above must not be waken up by only USER_A.

Could someone please give me some advice for this requirement?
I think this can be achieved by setting some configuration in Linux OS level, but not sure how to do that.

Best Regards,
Akkyslatest?d=yIl2AUoC8zA latest?i=WIAE6-H4R7o:wSlb6HmTLKo:F7zBnMy latest?i=WIAE6-H4R7o:wSlb6HmTLKo:V_sGLiP latest?d=qj6IDK7rITs latest?i=WIAE6-H4R7o:wSlb6HmTLKo:gIN9vFwWIAE6-H4R7o
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments