9/16/2023 0 Comments Linux sudo as another userThis command will add a user1 to the wheel group. You can use the usermod command to add a normal user to the wheel group. Next, you will need to add your created user to the sudo (wheel) group in order to grant it administrative privileges. Add a Normal User to the sudo (wheel) Group Save and close the file after the confirmation. Make sure the following line exists: %wheel ALL=(ALL) ALL Next, you will need to edit /etc/sudoers file and confirm that the wheel group is enabled. How to Change or Set User Passwords in Linux Enable Wheel Group access for All Users Passwd: all authentication tokens updated successfully. You will be asked to set a password as shown below: Changing password for user user1. Next, set a password for this user with the following command: passwd user1 Let’s create a new user named user1 with the following command: adduser user1 If you have not created any normal or no-root user on your system, then you will need to create one user. Connect to your Cloud Server via SSH and log in using the credentials highlighted at the top of the page. Create a new server, choosing Rocky Linux 8 as an operating system with at least 1GB RAM.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |