6 sudo tricks every Linux user needs to know - plus 1 just for fun
Briefly

6 sudo tricks every Linux user needs to know - plus 1 just for fun
"I started using Linux prior to the advent of sudo. Back then, any time I needed to run admin tasks, I had to first su to the root user, run the task, and then exit the root user. Because root was enabled, some users would simply log in as root and forgo a standard user account altogether. That's a security risk no one should take."
"The thing is, you don't want to edit the sudoers file using a standard text editor (such as nano). The reason for this is that if you fubar the sudoers file, you could wind up unable to run any elevated task (such as editing the sudoers file to fix the problem). To avoid this, use visudo (sudo visudo). The visudo tool always verifies any changes you've made. If there are any issues, visudo will let you know and prevent you from saving the malformed file."
Sudo temporarily elevates standard users to admin privileges, enabling tasks like system upgrades without direct root logins and allowing the root account to be disabled for better security. Sudo is powerful but imperfect and requires careful configuration. Always edit /etc/sudoers with visudo (sudo visudo) so syntax errors are detected and malformed files cannot be saved, preventing loss of elevated access. Avoid giving users unlimited sudo rights; restrict commands and protect sensitive locations (for example, files in /etc) to maintain system stability. Exercise caution when modifying sudo settings to prevent accidental security or availability problems.
Read at ZDNET
Unable to calculate read time
[
|
]