Tagged articles
4 articles
Page 1 of 1
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
Architect's Tech Stack
Architect's Tech Stack
Nov 15, 2021 · Operations

Understanding and Using the su and sudo Commands in Linux

This article systematically explains the differences, usage patterns, and practical examples of the Linux su and sudo commands, covering user creation, login‑shell vs non‑login‑shell switches, the -c option, sudoers configuration, and security considerations for privilege escalation.

LinuxSystem AdministrationUser Management
0 likes · 13 min read
Understanding and Using the su and sudo Commands in Linux