Skip to main content
added 24 characters in body
Source Link
Kahn
  • 1.8k
  • 2
  • 23
  • 41

Is the wheel group commented out in /etc/sudoers? In the event that it is, the enrollment for userX in wheel will make no difference.

That being said, you don't have to enroll this user in wheel if you just want them to install packages via sudo yum. Just give that user the specific permission in /etc/sudoers:

userX ALL = NOPASSWD : /usr/bin/yum, /bin/rpm

userX would now be able to sudo yum install whatever, sudo rpm -i whatever (passwordless) but would be unable to run any other commands. You could remove them from the wheel group if you do this and have a more secure host. This depends on how much you trust this user and if you're comfortable enabling this functionality for them. Everything is a security risk, no matter which path you choose, so be sure you're wary of who you're adding.

Is the wheel group commented out in /etc/sudoers? In the event that it is, the enrollment for userX in wheel will make no difference.

That being said, you don't have to enroll this user in wheel if you just want them to install packages via sudo yum. Just give that user the specific permission in /etc/sudoers:

userX ALL = NOPASSWD : /usr/bin/yum, /bin/rpm

userX would now be able to sudo yum install whatever (passwordless) but would be unable to run any other commands. You could remove them from the wheel group if you do this and have a more secure host. This depends on how much you trust this user and if you're comfortable enabling this functionality for them. Everything is a security risk, no matter which path you choose, so be sure you're wary of who you're adding.

Is the wheel group commented out in /etc/sudoers? In the event that it is, the enrollment for userX in wheel will make no difference.

That being said, you don't have to enroll this user in wheel if you just want them to install packages via sudo yum. Just give that user the specific permission in /etc/sudoers:

userX ALL = NOPASSWD : /usr/bin/yum, /bin/rpm

userX would now be able to sudo yum install whatever, sudo rpm -i whatever (passwordless) but would be unable to run any other commands. You could remove them from the wheel group if you do this and have a more secure host. This depends on how much you trust this user and if you're comfortable enabling this functionality for them. Everything is a security risk, no matter which path you choose, so be sure you're wary of who you're adding.

added 336 characters in body
Source Link
Kahn
  • 1.8k
  • 2
  • 23
  • 41

Is the wheel group commented out in /etc/sudoers? In the evenevent that it is, the enrollment for userX in wheel will make no difference.

That being said, you don't have to enroll this user in wheel if you just want them to install packages via sudo yum. Just give that user the specific permission in /etc/sudoers:

userX ALL = NOPASSWD : /usr/bin/yum, /bin/rpm

userX would now be able to sudo yum install whatever (passwordless) but would be unable to run any other commands. You could remove them from the wheel group if you do this and have a more secure host. This depends on how much you trust this user and if you're comfortable enabling this functionality for them. Everything is a security risk, no matter which path you choose, so be sure you're wary of who you're adding.

Is the wheel group commented out in /etc/sudoers? In the even that it is, the enrollment for userX in wheel will make no difference.

That being said, you don't have to enroll this user in wheel if you just want them to install packages via sudo yum. Just give that user the specific permission in /etc/sudoers:

userX ALL = NOPASSWD : /usr/bin/yum, /bin/rpm

userX would now be able to sudo yum install whatever (passwordless) but would be unable to run any other commands. You could remove them from the wheel group if you do this and have a more secure host. This depends on how much you trust this user and if you're comfortable enabling this functionality for them. Everything is a security risk, no matter which path you choose, so be sure you're wary of who you're adding.

Is the wheel group commented out in /etc/sudoers? In the event that it is, the enrollment for userX in wheel will make no difference.

That being said, you don't have to enroll this user in wheel if you just want them to install packages via sudo yum. Just give that user the specific permission in /etc/sudoers:

userX ALL = NOPASSWD : /usr/bin/yum, /bin/rpm

userX would now be able to sudo yum install whatever (passwordless) but would be unable to run any other commands. You could remove them from the wheel group if you do this and have a more secure host. This depends on how much you trust this user and if you're comfortable enabling this functionality for them. Everything is a security risk, no matter which path you choose, so be sure you're wary of who you're adding.

added 336 characters in body
Source Link
Kahn
  • 1.8k
  • 2
  • 23
  • 41

Is the wheel group commented out in /etc/sudoers? You alsoIn the even that it is, the enrollment for userX in wheel will make no difference.

That being said, you don't have to enroll this user in wheel if you just want them to install packages via sudo yum. Just give that user the specific permission in /etc/sudoers:

userX ALL = NOPASSWD : /usr/bin/yum, /bin/rpm

userX would now be able to sudo yum install whatever (passwordless) but would be unable to run any other commands. You could remove them from the wheel group if you do this and have a more secure host. This depends on how much you trust this user and if you're comfortable enabling this functionality for them. Everything is a security risk, no matter which path you choose, so be sure you're wary of who you're adding.

Is the wheel group commented out in /etc/sudoers? You also don't have to enroll this user in wheel if you just want them to install packages via sudo yum. Just give that user the specific permission in /etc/sudoers:

userX ALL = NOPASSWD : /usr/bin/yum, /bin/rpm

userX would now be able to sudo yum (passwordless) but would be unable to run any other commands. You could remove them from the wheel group if you do this and have a more secure host.

Is the wheel group commented out in /etc/sudoers? In the even that it is, the enrollment for userX in wheel will make no difference.

That being said, you don't have to enroll this user in wheel if you just want them to install packages via sudo yum. Just give that user the specific permission in /etc/sudoers:

userX ALL = NOPASSWD : /usr/bin/yum, /bin/rpm

userX would now be able to sudo yum install whatever (passwordless) but would be unable to run any other commands. You could remove them from the wheel group if you do this and have a more secure host. This depends on how much you trust this user and if you're comfortable enabling this functionality for them. Everything is a security risk, no matter which path you choose, so be sure you're wary of who you're adding.

Source Link
Kahn
  • 1.8k
  • 2
  • 23
  • 41
Loading