Understanding the Differences Between Linux Commands ‘su’ and ‘sudo’

Understanding the Differences Between Linux Commands 'su' and 'sudo'

Understanding the Differences Between Linux Commands ‘su’ and ‘sudo’ Previously, I was confused about the two commands su and sudo. Recently, I specifically searched for information on this topic and finally clarified the relationship and usage of both commands. This article aims to systematically summarize the findings. 1 Preparation Since this blog involves user switching, … Read more

Configuring and Managing an Admin User with Sudo Privileges on Rocky Linux 9.5

Configuring and Managing an Admin User with Sudo Privileges on Rocky Linux 9.5

In Linux system administration, the Principle of Least Privilege (PoLP) is one of the core principles of secure operations. Directly using the <span>root</span> user for operations carries high risks; it is recommended to create an administrator user with <span>sudo</span> privileges (such as <span>admin</span>) to reduce the impact of accidental operations and security threats. This article … Read more

Rust Rewrites Everything?

Rust Rewrites Everything?

Produced by | OSC Open Source Community (ID: oschina2013) The Internet Security Research Group (ISRG) is working on the Prossimo project, which is rewriting sudo and su in Rust to enhance their memory safety, ensuring they no longer suffer from memory safety vulnerabilities, and further strengthening the security of the Linux and open source ecosystem. … Read more

Setting Up Sudo Passwordless Access in Linux

Setting Up Sudo Passwordless Access in Linux

In a Linux system, to set up sudo passwordless access, follow these steps: Open the sudoers file as an administrator: In the terminal, enter the command sudo visudo. This command will open the sudoers file in a safe manner, ensuring the file syntax is correct and preventing system issues due to incorrect edits. Add the … Read more