Tagged articles
6 articles
Page 1 of 1
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
Liangxu Linux
Liangxu Linux
Aug 18, 2022 · Operations

How to Block Regular Users from Using the su Command on Linux

This guide explains why the su command is available to all users by default, then shows how to back up the sudoers file, edit it with visudo, define a command alias to disable /usr/bin/su, and apply the restriction to individual users or entire groups, complete with verification steps.

Linuxaccess controlsu command
0 likes · 4 min read
How to Block Regular Users from Using the su Command on Linux
Senior Brother's Insights
Senior Brother's Insights
Aug 3, 2022 · Operations

How to Grant Sudo Privileges to Regular Users on Linux

This guide explains why ordinary Linux users need sudo, how to safely edit the /etc/sudoers file with visudo, interprets each field in typical sudoers entries, and shows step‑by‑step examples for adding both password‑prompt and password‑less sudo access for a new user.

LinuxSudosudoers
0 likes · 6 min read
How to Grant Sudo Privileges to Regular Users on Linux
Liangxu Linux
Liangxu Linux
Jul 22, 2020 · Operations

How to Fix sudo Missing Environment Variables on Linux

When using sudo, Linux resets the environment, causing custom variables to disappear; this guide explains why, shows the relevant lines in /etc/sudoers, and presents three practical methods—including sudo -E, editing env_keep and secure_path, and creating aliases—to retain needed variables.

BashEnvironment VariablesLinux
0 likes · 4 min read
How to Fix sudo Missing Environment Variables on Linux
ITPUB
ITPUB
Oct 17, 2019 · Information Security

Understanding the Sudo CVE‑2019‑14287 Vulnerability and How to Mitigate It

The article explains the CVE‑2019‑14287 sudo bug that lets attackers bypass root restrictions by using special user IDs, assesses its severity and real‑world impact, and provides concrete steps—including patch installation and sudoers configuration checks—to protect Linux systems.

CVE-2019-14287Linux securitySudo
0 likes · 7 min read
Understanding the Sudo CVE‑2019‑14287 Vulnerability and How to Mitigate It