0

How to restrict the user to install packages in linux

I have given the sudo access to one of my user. but i need to restrict only the package installation i.e to block only the apt-get install command. Is it possible...??

nathan
asked Mar 2, 2017
2 Answer
1

Yes its possible.

Just add the below line in sudoers file. (/etc/sudoers)

user1   ALL = ! /usr/bin/apt-get

This line indicates that the particular user can able to run all commands except apt-get command. So User1 will be restricted to use that commands as you required.

View More
jagannatharumugam
answered Mar 9, 2017
0

Thanks... for the best idea...!!!

View More
nathan
answered Mar 9, 2017
Your Answer
||||
 
100:0