![]() Unlike some Linux distributions, CentOS does not provide sudo by default. ![]() Congratulations, you’ve now set a normal user to have sudo powers and can view and execute files and directories restricted to the root user.Now, you can test if sudo is working by logging out root again and re-logging in the user from step 1, and then trying again:.Next, log in as root and use the following command to give the non-root user sudo power (change appropriately):.Now, log out the system user using the command:.This will print the following error output with, which is the user you are currently logged in with:.To begin, log in to your system using a non-root user account, then type the following to verify that sudo is not enabled (use your user account’s password when asked):.To start this process, we will first test the sudo command with a non-privileged user. If you did not create a system user account during installation, please do so by first before applying the process. It is assumed that your server maintains one or more users (other than root) who qualify for this escalation in powers. To complete this process, you will require a minimal installation of the CentOS 7 operating system with root privileges. It is the purpose of this process is to show you how to activate and configure the sudo (superuser do) command. Having one root user per system may suit your needs, but for those who want a greater degree of flexibility, a solid audit trail, and the ability to provide a limited array of administrative capabilities to a select number of trusted users, you have come to the right place. On CentOS Linux, many files, folders, or commands can only be accessed or executed by a user called root, which is the name of the user who can control everything on a Linux system. In this process, we will learn how to provide nominated users or groups with the ability to execute a variety of commands with elevated privileges.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |