Tagged articles
18 articles
Page 1 of 1
Linux Tech Enthusiast
Linux Tech Enthusiast
Mar 11, 2026 · Operations

What’s the Difference Between Linux su and sudo Commands?

The article explains how the Linux su command switches user identities using the root password, while sudo lets regular users run privileged commands with their own password, comparing their usage, security, logging, permission scope, and suitable scenarios.

LinuxSudoprivilege escalation
0 likes · 6 min read
What’s the Difference Between Linux su and sudo Commands?
Open Source Linux
Open Source Linux
Jun 30, 2025 · Operations

Master su and sudo: Switch Users Safely and Harness Linux Privileges

This guide explains the differences between the su and sudo commands, shows how to create and manage users, demonstrates login-shell versus non‑login-shell switching, covers the -c option for one‑off commands, and compares security implications of each method in Linux environments.

LinuxSudoSystem Administration
0 likes · 11 min read
Master su and sudo: Switch Users Safely and Harness Linux Privileges
Liangxu Linux
Liangxu Linux
Nov 5, 2024 · Operations

Mastering su and sudo: When and How to Switch Users on Linux

This guide explains the differences between the su and sudo commands, how to create test users, switch between them using login and non‑login shells, employ the -c option, configure sudo privileges via /etc/sudoers, and choose the safest method for privilege escalation on Linux systems.

LinuxShellSudo
0 likes · 14 min read
Mastering su and sudo: When and How to Switch Users on Linux
Architecture Digest
Architecture Digest
Oct 27, 2024 · Operations

Understanding and Using su and sudo Commands in Linux

This article provides a comprehensive guide to the Linux su and sudo commands, explaining their differences, usage options such as login-shell and non-login-shell, how to switch users, set passwords, configure sudoers, and practical examples for managing user privileges securely.

LinuxSudoSystem Administration
0 likes · 12 min read
Understanding and Using su and sudo Commands in Linux
Efficient Ops
Efficient Ops
Oct 14, 2024 · Operations

Mastering su vs sudo: When and How to Switch Users on Linux

This guide clarifies the differences between the Linux commands su and sudo, explains their options and effects on the shell environment, shows how to create and manage users, edit the sudoers file, and choose the appropriate method for secure privilege escalation.

LinuxSudoUser Management
0 likes · 14 min read
Mastering su vs sudo: When and How to Switch Users on Linux
MaGe Linux Operations
MaGe Linux Operations
Aug 12, 2023 · Operations

su vs sudo: Which Linux Privilege Command Should You Use?

This article explains the differences between the Linux su and sudo commands, covering how each switches user identity, their security implications, permission scopes, logging behavior, usage methods, and ideal scenarios to help you choose the right tool for privileged operations.

LinuxSudoSystem Administration
0 likes · 6 min read
su vs sudo: Which Linux Privilege Command Should You Use?
Architect's Tech Stack
Architect's Tech Stack
Aug 11, 2023 · Operations

Understanding and Using the su and sudo Commands on Linux

This article explains the differences between the su and sudo commands, demonstrates how to create users, switch between them using login and non‑login shells, shows practical examples with code snippets, and covers sudo configuration via the /etc/sudoers file for secure privilege escalation.

LinuxSudoSystem Administration
0 likes · 13 min read
Understanding and Using the su and sudo Commands on Linux
Open Source Linux
Open Source Linux
Jul 31, 2023 · Operations

When to Use su vs sudo: Choosing the Right Linux Privilege Command

This article compares the Linux su and sudo commands, explaining how each works, their security implications, logging behavior, usage differences, and ideal scenarios, helping users choose the appropriate tool for switching users or executing privileged operations.

LinuxSudoprivilege escalation
0 likes · 6 min read
When to Use su vs sudo: Choosing the Right Linux Privilege Command
Open Source Linux
Open Source Linux
Jan 12, 2022 · Operations

Mastering su and sudo: When and How to Switch Users Securely on Linux

This guide explains the differences between su and sudo, demonstrates how to create test users, switch between accounts using login and non‑login shells, configure sudo privileges via /etc/sudoers, and provides practical command examples for secure user management on Linux.

LinuxSudoSystem Administration
0 likes · 14 min read
Mastering su and sudo: When and How to Switch Users Securely on Linux
Liangxu Linux
Liangxu Linux
Oct 31, 2021 · Operations

When to Use su vs sudo? A Practical Guide to Linux User Switching

This article explains the differences between the su and sudo commands, shows how to create test users, demonstrates login‑shell and non‑login‑shell switches, covers the -c option, details sudo’s permission model via /etc/sudoers, and provides a side‑by‑side comparison with practical code examples.

LinuxSudoSystem Administration
0 likes · 15 min read
When to Use su vs sudo? A Practical Guide to Linux User Switching
ITPUB
ITPUB
Oct 21, 2021 · Operations

Understanding the Differences Between su and sudo on Linux: When and How to Use Them

This article clarifies the distinct purposes and usage patterns of the Linux commands su and sudo, explains their parameters such as '-' and '-c', demonstrates user creation, password setting, environment differences between login and non‑login shells, and shows how to configure sudo privileges safely.

LinuxShellSudo
0 likes · 15 min read
Understanding the Differences Between su and sudo on Linux: When and How to Use Them
Programmer DD
Programmer DD
Oct 19, 2021 · Operations

Mastering Linux User Switching: su vs sudo Explained with Real Examples

This article systematically explains the differences between the Linux commands su and sudo, covering preparation steps, usage patterns, parameter effects, practical examples, sudoers configuration, and security considerations to help readers confidently manage user switching and privilege escalation.

LinuxSudoSystem Administration
0 likes · 15 min read
Mastering Linux User Switching: su vs sudo Explained with Real Examples
Laravel Tech Community
Laravel Tech Community
Oct 12, 2021 · Operations

Understanding and Using the su and sudo Commands in Linux

This article systematically explains the differences, syntax, and practical usage of the Linux su and sudo commands, covering user creation, login shells, command‑line options, password handling, sudoers configuration, and a side‑by‑side comparison of their security implications.

LinuxSudoSystem Administration
0 likes · 14 min read
Understanding and Using the su and sudo Commands in Linux
ITPUB
ITPUB
Sep 17, 2020 · Operations

Understanding the Key Differences Between sudo and su in Linux

This article explains how sudo and su differ in password requirements, default behavior, scope of privilege elevation, environment handling, and usage syntax, providing clear examples and guidance for choosing the appropriate command in Linux system administration.

LinuxSudoSystem Administration
0 likes · 5 min read
Understanding the Key Differences Between sudo and su in Linux
Liangxu Linux
Liangxu Linux
Sep 16, 2020 · Operations

sudo vs su: When to Use Each Linux Privilege Command

This guide explains the key differences between sudo and su on Linux, covering password requirements, default behaviors, environment handling, command syntax variations, and practical usage tips for switching users or executing privileged commands safely.

LinuxSudoSystem Administration
0 likes · 5 min read
sudo vs su: When to Use Each Linux Privilege Command