Tag

sudo

0 views collected around this technical thread.

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.

System Administrationlinuxsu
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.

Privilege EscalationSystem Administrationlinux
0 likes · 14 min read
Mastering su vs sudo: When and How to Switch Users on Linux
DevOps Operations Practice
DevOps Operations Practice
Mar 6, 2024 · Information Security

Comprehensive Linux System Hardening Guide for Production Environments

This guide details practical Linux hardening steps—including disabling SELinux, trimming startup services, applying the principle of least privilege, configuring sudo, synchronizing time, adjusting file descriptor limits, locking critical files, disabling ping, optimizing SSH, changing hostnames, and preventing destructive rm commands—to improve security and stability in production deployments.

OperationsSELinuxlinux
0 likes · 12 min read
Comprehensive Linux System Hardening Guide for Production Environments
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.

Command LineSystem Administrationlinux
0 likes · 13 min read
Understanding and Using the su and sudo Commands on Linux
Laravel Tech Community
Laravel Tech Community
Oct 27, 2022 · Operations

Three Methods to Automate Password Input for sudo, ftp, and ssh Commands

This article explains three techniques—using echo with a pipe, here‑document redirection, and an Expect script—to supply passwords automatically for sudo, ftp, and ssh commands, enabling non‑interactive execution of privileged or remote operations on Linux systems.

Automationexpectlinux
0 likes · 3 min read
Three Methods to Automate Password Input for sudo, ftp, and ssh Commands
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.

System Administrationlinuxsu
0 likes · 14 min read
Understanding and Using the su and sudo Commands in Linux
Python Programming Learning Circle
Python Programming Learning Circle
Mar 26, 2021 · Operations

Understanding Linux File Permissions, Ownership, ACL, Sudo and Special Attributes

This article explains Linux file and directory permission types, how to view and modify them with commands such as ls, chmod, chown, chgrp, umask, setfacl, sudo, and chattr, and describes special permission bits like SetUID, SetGID, Sticky Bit and immutable attributes.

ACLFile Permissionschattr
0 likes · 19 min read
Understanding Linux File Permissions, Ownership, ACL, Sudo and Special Attributes
Efficient Ops
Efficient Ops
Mar 9, 2021 · Information Security

Why the Critical Sudo Vulnerability (CVE‑2021‑3156) Went Unpatched for 10 Years

A heap‑buffer‑overflow bug in sudo (CVE‑2021‑3156) lets any local user obtain root without a password, existed for a decade before being fixed, and can be tested with a simple sudoedit command on vulnerable Linux distributions.

CVE-2021-3156Linux securityheap overflow
0 likes · 6 min read
Why the Critical Sudo Vulnerability (CVE‑2021‑3156) Went Unpatched for 10 Years
Efficient Ops
Efficient Ops
Aug 28, 2019 · Operations

How to Harden Linux Server Security: Account, Login, and Boot Controls

This guide details practical Linux server hardening techniques—including account cleanup, password policies, su/sudo restrictions, login controls, and BIOS/GRUB protection—while providing exact command examples for operations teams to quickly improve system security.

Account ManagementOperationslinux
0 likes · 12 min read
How to Harden Linux Server Security: Account, Login, and Boot Controls
360 Quality & Efficiency
360 Quality & Efficiency
Jan 30, 2018 · Operations

Passwordless SSH, Git Pull, SCP, and Sudo in Jenkins Remote Execution – Practical Scenarios

This guide walks through five practical Jenkins CI scenarios—adding credentials, configuring password‑less SSH for remote Linux login, enabling password‑less Git pulls, SCP file transfers, sudo commands, and token‑based API builds—providing step‑by‑step instructions and key pitfalls to avoid.

API TokenAutomationCI/CD
0 likes · 7 min read
Passwordless SSH, Git Pull, SCP, and Sudo in Jenkins Remote Execution – Practical Scenarios
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Aug 10, 2017 · Operations

Mastering sudo: 4 Essential Commands for Root Access and User Switching

This guide explains four key sudo commands—sudo su -, sudo -i, sudo -s, and sudo "command"—detailing how each switches to the root environment, loads configuration files, and handles environment variables on Linux systems.

Command LineSystem Administrationlinux
0 likes · 6 min read
Mastering sudo: 4 Essential Commands for Root Access and User Switching