![]() The %sudo at the beginning of these lines indicate they are rules for all members of group (" %") sudo.Ĭhanges to sudo configuration files, including new files within the /etc/sudoers.d/ directory, take effect immediately - no sudo "restart" required. %sudo ALL=NOPASSWD: /usr/bin/dbus-monitor -system ![]() Now add the following lines to this file and save it: %sudo ALL=NOPASSWD: /usr/sbin/iftop Using the visudo command makes sure that there are no syntax erros in the file when saving it - syntax errors would otherwise make sudo fail to read all its configuration files, thereby breaking any subsequent sudo usage, effectively locking you out from any superuser usage, including fixing the syntax erros. Run the following command to create and edit your own sudo customization file: sudo visudo -f /etc/sudoers.d/customizations This way, you will not run into problems when an update to the original sudo package wants to change the original /etc/sudoers file and the package manager notices conflicting edits done by you. then it is a best practice to add your configuration in its own separate file within the /etc/sudoers.d/ directory, e.g.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |