Automox Worklet: Disabling Root Login on Linux Devices

The following Automox Worklet™ illustrates how you can disable root login on Linux devices. Disabling root login is a super easy trick to increase the security of these devices.

In many cases, IT admins set the root password on a Linux device to be something simple so that they remember it easily since they use it often to access a device via SSH. Furthermore, attackers typically use the root credential when trying to gain access to your device. For these reasons (and more), disabling root login and creating root privilege users is a good security practice.

Note: You need to make sure the users you’ve created on this device have sudo privileges.

Automox Worklet: Disabling Root Login on Linux Devices

This worklet is designed to evaluate your device to ensure root login is disabled.  It currently only supports devices running CentOS.

To deploy this endpoint hardening worklet, view the original posting on the Automox Alive community.

Tips for Creating an Automox Worklet

Before deploying an Automox Worklet to the production environment, we suggest testing this on a few devices to confirm its accuracy. If you have any questions, please contact our support team for technical assistance at support@automox.com.

For step-by-step instructions on creating the Worklet, see our user documentation: Create a Worklet.


About Automox

Facing growing threats and a rapidly expanding attack surface, understaffed and alert-fatigued organizations need more efficient ways to eliminate their exposure to vulnerabilities. Automox is a modern cyber hygiene platform that closes the aperture of attack by more than 80% with just half the effort of traditional solutions.

Cloud-native and globally available, Automox enforces OS & third-party patch management, security configurations, and custom scripting across Windows, Mac, and Linux from a single intuitive console. IT and SecOps can quickly gain control and share visibility of on-prem, remote and virtual endpoints without the need to deploy costly infrastructure.

Experience modern, cloud-native patch management today with a 15-day free trial of Automox and start recapturing more than half the time you're currently spending on managing your attack surface. Automox dramatically reduces corporate risk while raising operational efficiency to deliver best-in-class security outcomes, faster and with fewer resources.