Quote:
Originally Posted by z_haseeb
is it possible that we can allow a non-root user to install a specific package. for example I only want to allow a sudo permission to a non-root user to install redis-7.2.4-1.el8.remi.x86_64.rpm
|
Yes; and since you've been using Linux for *FIFTEEN YEARS*, it's hard to understand why you can't have researched this for yourself, given the hundreds of sudo related threads on this very site. Along with many examples of command-restriction.
And if you re-read what you just posted and think about it, you'd see what you're asking is pointless. Because it is for ONE PACKAGE...what's going to happen if the package is updated??? The command won't run, since the filename is different, right??? If you trust a non-root user to perform admin functions you either need to trust them or DO NOT trust them. No in-between. Either give them sudo or not.