![]() ![]() Replace it with the following line: %sudo ALL=(ALL:ALL) NOPASSWD:ALL Step 5 – Configure Passwordless Sudo For Specific User to Execute Only Specific Command If you want to allow all users to execute sudo without a password (note: this is only advisable in test systems and should never be used on production workloads), edit the /etc/sudoers file: nano /etc/sudoersįind the following line: %sudo ALL=(ALL:ALL) ALL Step 4 – Configure Passwordless Sudo For All Users Save and close the file when you are finished. If you want to allow a member of a specific group named www-data to execute sudo without a password, edit the /etc/sudoers file: nano /etc/sudoersĪdd the following line at the end of the file: %www-data ALL=(ALL:ALL) NOPASSWD:ALL Step 3 – Configure Passwordless Sudo For a Specific Group You don’t need to provide any password after running the above command. Then, run any superuser command with sudo: sudo fdisk -l If you want to allow a user named vyom to execute sudo without a password, edit the /etc/sudoers file: nano /etc/sudoersĪdd the following line at the end of the file: your_username ALL=(ALL:ALL) NOPASSWD:ALLįor example: Atlantic-Admin ALL=(ALL:ALL) NOPASSWD:ALL apt-get update -y Step 2 – Configure Passwordless Sudo For a Specific User Once you are logged into your Ubuntu 18.04 server, run the following command to update your base system with the latest available packages. 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 Ubuntu 18.04 as the operating system with at least 1GB RAM. Step 1 – Create Atlantic.Net Cloud Serverįirst, log in to your Atlantic.Net Cloud Server.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |