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,
Akkys


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,
Akkys