{"id":94243,"date":"2023-07-21T11:30:00","date_gmt":"2023-07-21T15:30:00","guid":{"rendered":"https:\/\/jumpcloud.com\/?p=94243"},"modified":"2024-01-05T17:08:34","modified_gmt":"2024-01-05T22:08:34","slug":"how-to-create-sudo-users-on-rocky-linux","status":"publish","type":"post","link":"https:\/\/jumpcloud.com\/blog\/how-to-create-sudo-users-on-rocky-linux","title":{"rendered":"How to Create Sudo Users for Rocky Linux"},"content":{"rendered":"\n

Jump to Tutorial<\/a><\/p>\n\n\n\n

A sudo user, or, superuser doer<\/em>, is a user account in Linux-based operating systems that can execute commands with elevated administrator-level privileges. <\/p>\n\n\n\n

By default, root users have full control and unrestricted access to all system resources. For anyone other than a high-level IT admin, however, this level of unrestricted access can pose significant security risks. Any accidental or malicious command executed by the root user can have drastic system-wide consequences, like data corruption, security breaches, or even deleting the whole system. <\/p>\n\n\n\n

To mitigate these risks, sudo user accounts were created to provide more granular control over access and actions users are able to perform.<\/p>\n\n\n\n

Benefits of Sudo User Accounts <\/h2>\n\n\n\n

Sudo user accounts are helpful for several reasons.<\/p>\n\n\n\n

    \n
  • Enhanced security: <\/strong>With a sudo user, you can limit administrative access to specific tasks or commands, reducing the risk of accidental system damage or unauthorized actions.<\/li>\n<\/ul>\n\n\n\n
      \n
    • Compliance: <\/strong>Many security best practices and regulatory requirements recommend using sudo users as a means to enforce the principle of least privilege and maintain a secure system environment.<\/li>\n<\/ul>\n\n\n\n
        \n
      • Accountability: <\/strong>By using a sudo user, you can track and log the commands executed with elevated privileges. This helps in identifying any malicious activities and ensures accountability for system actions.<\/li>\n<\/ul>\n\n\n\n
          \n
        • Collaboration:<\/strong> Sudo users allow multiple administrators or users to perform administrative tasks without sharing the root password. This promotes collaborative work and facilitates system management in a team environment.<\/li>\n<\/ul>\n\n\n\n
            \n
          • Granular access control: <\/strong>Sudo allows you to grant different levels of privileges to different users or user groups, providing fine-grained control over system resources. This enables administrators to delegate specific tasks without granting full root access.<\/li>\n<\/ul>\n\n\n\n

            Today, you\u2019ll learn how to create sudo users on Rocky Linux. For this tutorial, we are using Rocky Linux 9, but this process works equally the same way on Rocky Linux 8.<\/p>\n\n\n\n

            About the Rocky Linux Distribution<\/h2>\n\n\n\n

            Rocky Linux is an open-source Linux distribution designed to serve as a reliable and stable alternative to CentOS. It was created in response to the shift in CentOS’s direction, providing a seamless transition for users who relied on CentOS for their server infrastructure. Rocky Linux aims to deliver a free, enterprise-grade operating system that offers long-term support and compatibility with a wide range of applications.<\/p>\n\n\n\n

            One of the key features of Rocky Linux lies in its commitment to stability and reliability. It is built on a solid foundation, combining the proven technology of Red Hat Enterprise Linux (RHEL) and CentOS. This ensures that Rocky Linux uses the robust security features of RHEL while maintaining binary compatibility with CentOS packages. Rocky Linux also provides long-term support with regular updates and security patches.<\/p>\n\n\n\n

            Rocky Linux is a reliable, stable, and community-driven distribution. Its strengths lie in its commitment to stability, long-term support, compatibility, and the active involvement of its dedicated community. Whether you’re a system administrator, a beginner who just started learning Linux, or an enterprise user, Rocky Linux offers a platform that combines the best aspects of RHEL and CentOS, ensuring a seamless transition and a dependable operating system for your infrastructure needs.<\/p>\n\n\n\n

            \n