VMware Cloud Community
Stuarty1874
Contributor
Contributor

After installing SUDO on a 2.5.x Host... does the Host require a reboot?

Guys, I've configured SUDO on our 2.5.x Host. Does the Host need to be restarted for SUDO to take effect?

I configure SUDO successfully on our 3.5 Hosts but I was in a position to restart them.

The 2.5.x Host has SUDO configured but I can still exectue commands without issuing sudo and SU still works although its restrcited in our SUDO file.

I can't reboot the 2.5.x Host as vmotion is disabled and there are guest VM's running.

Thanks in advance

Reply
0 Kudos
2 Replies
Texiwill
Leadership
Leadership

Hello,

Guys, I've configured SUDO on our 2.5.x Host. Does the Host need to be restarted for SUDO to take effect?

No.

I configure SUDO successfully on our 3.5 Hosts but I was in a position to restart them.

No need to restart when configuring sudo.

The 2.5.x Host has SUDO configured but I can still exectue commands without issuing sudo and SU still works although its restrcited in our SUDO file.

su has to be restricted within the /etc/pam.d/su or by removing its setuid bit as well.

If you are 'root' then you can always execute commands regardless of sudo. If you are a regular user, and su is NOT disabled then you can su to root and execute commands. If you are a regular user you can execute commands in the context of your user, but not as the root user unless the commands have the setuid bit set.

What user are you when you 'execute' commands and which commands?


Best regards,
Edward L. Haletky VMware Communities User Moderator, VMware vExpert 2009

Virtualization Practice Analyst[/url]
Now Available: 'VMware vSphere(TM) and Virtual Infrastructure Security'[/url]
Also available 'VMWare ESX Server in the Enterprise'[/url]
[url=http://www.astroarch.com/wiki/index.php/Blog_Roll]SearchVMware Pro[/url]|Blue Gears[/url]|Top Virtualization Security Links[/url]|
[url=http://www.astroarch.com/wiki/index.php/Virtualization_Security_Round_Table_Podcast]Virtualization Security Round Table Podcast[/url]

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
Reply
0 Kudos
Wimo
Hot Shot
Hot Shot

try service sshd restart

Reply
0 Kudos