Tagged articles
sudo
80 articles · Page 1 of 1
This article explains the differences between su and sudo in Linux, covering how each switches user contexts, handles passwords, manages environment variables, and when to use each for tasks like checking Nginx configuration or accessing deployment accounts.
LinuxPAMprivilege escalation
0 likes · 11 min read

This article explains the differences between Linux su, sudo, sudo su, and sudo -i commands, covering password requirements, environment variable handling, shell behavior, and practical usage scenarios for switching user privileges.
Linuxenvironment variablesroot
0 likes · 4 min read

This guide explains the Linux permission model (user/group/other with read/write/execute), how to read ls -l output, practical chmod/chown/umask usage, user and group management commands, sudo configuration with visudo, and a five-step troubleshooting workflow for Permission denied errors.
Linuxchmodchown
0 likes · 9 min read

This article compares the Linux su and sudo commands, explaining differences in authentication methods, permission scope, security implications, audit logging, and ideal use cases to guide administrators in selecting the right privilege escalation tool.
LinuxSecurityaudit logging
0 likes · 6 min read

This comprehensive guide demonstrates how to implement least-privilege access in Linux using sudo, user groups, and ACLs, with practical examples covering identity verification, permission layers, service sandboxing, testing strategies, and account offboarding.
ACLAppArmorLeast Privilege
0 likes · 44 min read

Sharing a single root account on production servers creates severe security risks, prevents reliable auditing and fault isolation, and leads to accountability problems, as demonstrated by real incidents; the article explains these issues in detail and recommends personal accounts with sudo, audit logging, and bastion‑host solutions.
Bastion-HostLinux-securityauditd
0 likes · 36 min read

This article explains the most common Linux privilege‑escalation vectors—including unsafe SUID binaries, mis‑configured sudo, vulnerable cron jobs, password and SSH‑key leaks, kernel and software bugs, container escape, and file‑permission flaws—and provides concrete hardening steps and a quick‑check script for ops engineers.
LinuxSUIDcontainer escape
0 likes · 24 min read

This comprehensive guide explains the most common Linux privilege‑escalation vectors—including unsafe SUID binaries, sudo misconfigurations, cron jobs, password and SSH‑key leaks, kernel vulnerabilities, container escapes, and file‑permission flaws—while providing concrete detection commands and practical hardening steps for each risk.
HardeningLinux-securitySUID
0 likes · 23 min read

Ubuntu 26.04 LTS introduces three non‑reversible changes—cgroup v1 removal, a Rust‑rewritten sudo, and Rust‑based coreutils—that will block upgrades unless administrators audit, migrate, and validate their environments before the April 23 deadline.
LTScgroupcoreutils
0 likes · 12 min read


UbuntuMar 25, 2026 · Information Security
Ubuntu 26.04 will ship sudo‑rs, a Rust‑rewritten replacement for the classic sudo tool, aiming to eliminate decades‑long memory‑safety bugs, simplify maintenance, and provide safer defaults while keeping the familiar command‑line interface for users and administrators alike.
LinuxRustUbuntu 26.04
0 likes · 18 min read

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.
Linuxprivilege escalationsu
0 likes · 6 min read


UbuntuFeb 21, 2026 · Information Security
This guide explains how Linux enforces security through file permissions, detailing the meaning of ls -l output, the numeric and symbolic chmod methods, the role of root and sudo, and how to manage users and groups with chown, adduser, and usermod.
Linuxchmodchown
0 likes · 6 min read

This guide explains Linux permission concepts, the role of the shell, how to switch users with su, grant temporary root rights using sudo, modify file and directory permissions with chmod, manage ownership with chown/chgrp, and secure shared directories with the sticky bit.
Linuxchmodpermissions
0 likes · 19 min read

This guide explores Linux permissions in depth, covering the shell, root and regular user roles, switching users with su, using sudo for privilege escalation, interpreting rwx permission bits, managing file and directory permissions with chmod and chown, understanding umask defaults, and configuring sticky bits for shared directories.
Linuxchmodpermissions
0 likes · 14 min read

Microsoft has released an open‑source Sudo for Windows that lets users run privileged commands from a non‑elevated terminal, and this guide explains how to enable the feature, configure its three modes, and use the command‑line options.
Open Sourcesudo
0 likes · 3 min read

This comprehensive Linux tutorial walks you through permission fundamentals, user types, switching users, sudo usage, permission symbols, octal notation, and practical commands such as chmod, chown, chgrp, umask, and the sticky bit to secure and manage your system effectively.
Linuxchmodpermissions
0 likes · 14 min read

This guide explains Linux file and directory permissions, covering basic rwx modes, numeric and symbolic chmod, ownership changes with chown/chgrp, special bits like SUID/SGID/SBIT, umask calculations, hidden attributes via chattr/lsattr, ACL management with setfacl/getfacl, and sudo configuration for secure privilege escalation.
ACLLinuxSUID
0 likes · 51 min read

This comprehensive guide walks readers from the fundamental concept of Linux permissions—role and object attributes—to practical commands like chmod, chown, su, and sudo, covering symbolic and octal modes, umask defaults, directory nuances, and best‑practice security measures for system administrators and users alike.
chmodfile-managementpermissions
0 likes · 15 min read

This guide walks you through essential Linux security measures—including system account cleanup, password policies, command history restrictions, PAM authentication modules, sudo configuration, GRUB boot protection, weak‑password detection with John the Ripper, and network port scanning with nmap—to help you harden servers against unauthorized access and privilege escalation.
GRUBPAMaccount security
0 likes · 21 min read

This guide explains why disabling root SSH access is essential, then walks through creating a privileged user, assigning sudo rights, editing the sshd_config file to reject root logins, restarting the service, and verifying that root login is effectively blocked.
LinuxSecurityroot login
0 likes · 5 min read

This guide walks you through Linux permission fundamentals, covering user categories, switching users, sudo usage, permission representation, file types, basic rwx bits, octal notation, and how to modify permissions with chmod, chown, chgrp, umask, as well as directory sticky bits.
chmodpermissionssudo
0 likes · 11 min read

Borncity reported on July 1 that a critical sudo vulnerability (CVE‑2025‑32463) in Linux, caused by mishandling of /etc/nsswitch.conf and flawed options like –host, –h and –chroot, –R, can allow attackers to execute arbitrary code and elevate privileges to root, affecting sudo versions 1.9.14‑1.9.17.
CVE-2025-32463Linuxprivilege escalation
0 likes · 2 min read

This guide walks you through Linux user fundamentals, covering user definitions, essential commands (useradd, usermod, userdel), configuration files, password policies, privilege escalation with su and sudo, and comprehensive group management, providing practical examples and code snippets for effective system administration.
Linuxgroup-managementsudo
0 likes · 25 min read

This guide walks through Linux permission fundamentals, covering the shell interpreter, user vs. root accounts, switching users with su and sudo, the meaning of read/write/execute bits, how to modify permissions using chmod, chown, chgrp, the role of umask, and the sticky bit for shared directories.
Sticky Bitchmodchown
0 likes · 16 min read

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.
Linuxcommand linesu
0 likes · 11 min read

This guide explains Linux file permission fundamentals, covering owner/group/other rights, chmod and chown usage, umask defaults, special bits like SUID/SGID/Sticky, ACL management, sudo configuration, and essential system commands for effective operations.
ACLLinuxchmod
0 likes · 23 min read

This guide explains Linux permission fundamentals, the role of the shell, how to switch users with su, elevate commands with sudo, manage file and directory rights using chmod, chown, chgrp, understand umask, and secure shared directories with the sticky bit.
chmodpermissionsshell
0 likes · 18 min read

This article provides a comprehensive guide to Linux system management, covering the role of the root user, how to manage users and groups, methods for viewing and interpreting file permissions, and detailed usage of the chmod and chown commands to modify permissions and ownership.
Root Userchmodchown
0 likes · 8 min read

This guide walks you through Linux permission fundamentals, user roles, switching users with su and sudo, permission representation, file types, octal notation, and essential commands like chmod, chown, chgrp, umask, and the sticky bit, empowering you to manage system security confidently.
Sticky Bitchmodchown
0 likes · 13 min read

This comprehensive guide explains Linux permissions, covering the roles of root and regular users, how to switch users with su, elevate privileges with sudo, manage file and directory access using chmod, chown, chgrp, understand default permission masks with umask, and secure shared directories with the sticky bit, complete with practical command examples and explanations.
Sticky Bitchmodpermissions
0 likes · 14 min read

This guide explains Linux user concepts, how to view and manage user accounts and groups with commands like useradd, usermod, userdel, passwd, su, sudo, and groupadd, while covering file locations, UID ranges, password policies, privilege escalation, and practical examples.
Linuxgroupsudo
0 likes · 25 min read

This guide details comprehensive Linux security measures, including system account cleanup, password policies, command history limits, terminal auto‑logout, controlled use of the su command via PAM wheel module, PAM authentication fundamentals, sudo configuration, GRUB boot‑parameter protection, weak‑password detection with John the Ripper, and network port scanning techniques.
GRUBPAMaccount security
0 likes · 21 min read

This guide explains how to secure Linux accounts by disabling logins, locking or deleting users, enforcing password expiration with chage, configuring PAM modules, restricting commands via sudo, protecting the GRUB bootloader, and performing controlled password‑cracking tests with John the Ripper.
GRUBLinuxPAM
0 likes · 10 min read

This guide walks you through creating a non‑root sudo user, configuring its password and group, disabling root SSH access by editing sshd_config, and restarting the service, ensuring secure remote login on Linux systems.
LinuxSSHroot login
0 likes · 5 min read

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.
Linuxshellsu
0 likes · 14 min read

This guide compiles essential Ubuntu system‑administration techniques, covering SSH configuration, root remote login, key‑based authentication, automated login tools, file transfer with SCP/rsync, sudoers rules, PAM module setup, resource limits via pam_limits and ulimit, and Chrony time synchronization.
PAMchronysudo
0 likes · 15 min read

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.
Linuxsusudo
0 likes · 12 min read

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.
Linuxprivilege escalationsu
0 likes · 14 min read

This guide walks you through essential Ubuntu system administration tasks, covering SSH configuration and key management, enabling root login, using sshpass, scp and rsync for file transfer, configuring sudo privileges, mastering PAM modules, setting resource limits with ulimit, and synchronizing time with chrony.
PAMSSHchrony
0 likes · 14 min read

This guide explains why a simple sudo command may still produce a Permission denied error when redirecting output to a file you lack write access to, and presents four practical methods—including running a shell with sudo, using scripts, sudo -s, and sudo tee—to successfully write to such protected files on Ubuntu 18.04.
Linuxoutput redirectionpermission denied
0 likes · 4 min read

Windows 11 Insider builds are adding a native sudo command that lets users elevate individual commands with familiar Linux‑style privilege management, offering finer‑grained control than the traditional "Run as administrator" option while reflecting Microsoft's growing embrace of Linux technologies.
Linux Compatibilityprivilege escalationsudo
0 likes · 6 min read

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.
LinuxSELinuxsudo
0 likes · 12 min read

This guide explains how Linux administrators can execute commands as a non‑login user by configuring sudo or using su with a custom shell, detailing step‑by‑step instructions, required sudoers entries, and important security considerations to prevent privilege misuse.
LinuxSecuritynon-login user
0 likes · 4 min read

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.
Linuxprivilege escalationsu
0 likes · 6 min read

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.
Linuxcommand linesu
0 likes · 13 min read

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.
Linuxprivilege escalationsu
0 likes · 6 min read

This guide walks you through practical Linux server hardening techniques—including SSH configuration tweaks, disabling ICMP ping responses, managing system users and groups, protecting critical account files, and safely granting root privileges—so you can reduce attack surface and improve overall security.
LinuxSSH hardeningserver security
0 likes · 6 min read

This guide walks through practical steps to secure a Linux server, including modifying SSH settings, disabling ping responses, managing users and groups, protecting critical account files, creating new users, and configuring sudo or UID changes to control root access.
LinuxRoot AccessSSH
0 likes · 6 min read

This guide walks you through practical Linux server hardening techniques—including SSH configuration, disabling ping replies, user and group management, sudoers tweaks, and granting root privileges—to significantly reduce the risk of unauthorized access.
LinuxSSH hardeningserver security
0 likes · 6 min read

This guide walks you through practical steps to secure a newly purchased Linux server, covering SSH configuration changes, disabling ping responses, thorough user and group management, creating new accounts, and three reliable methods to grant root privileges safely.
LinuxRoot AccessSSH hardening
0 likes · 6 min read

Learn practical steps to harden a Linux server—including changing the SSH port, disabling root login, blocking ping, managing users and groups, securing critical system files, and configuring sudo—so you can protect your machine from common attacks and unauthorized access.
LinuxRoot AccessSSH
0 likes · 6 min read

This article explains why the sudo command bypasses user-defined aliases in Bash, demonstrates the resulting error with common shortcuts like ll, and provides a simple solution using a trailing‑space alias so that sudo respects alias expansion.
aliasbashcommand line
0 likes · 3 min read

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.
expectpasswordsudo
0 likes · 3 min read

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

This guide explains the differences between the Linux commands su and sudo, shows how to create test users, switch between login and non‑login shells, use the -c option, configure sudo privileges with visudo, and compare security implications of each method.
Linuxsusudo
0 likes · 15 min read

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.
Linuxsusudo
0 likes · 14 min read

This tutorial explains the differences between the Linux su and sudo commands, shows how to create and manage test users, demonstrates login‑shell versus non‑login‑shell switching, and details sudo configuration with visudo to control privileged access.
Linuxcommand linesu
0 likes · 16 min read

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.
Linuxsusudo
0 likes · 15 min read


ITPUBOct 21, 2021 · Operations
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.
Linuxshellsu
0 likes · 15 min read

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.
Linuxsusudo
0 likes · 15 min read

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.
Linuxsusudo
0 likes · 14 min read

This article demystifies the infamous sudo rm -rf command, explaining how rm works, the role of sudo, the effects of recursive and force options, directory deletion nuances, safety mechanisms, and why misuse can erase an entire Linux system, illustrated with concrete examples and command screenshots.
Linuxcommand linefile deletion
0 likes · 7 min read

This guide explains sudo's workflow, sudoers file syntax, default options, how to switch visudo's editor, force‑save read‑only files in Vim, use sudoedit safely, adjust session timeouts, set temporary authorizations with cron, and preserve environment variables for secure privilege delegation.
configurationsudosystem-administration
0 likes · 15 min read

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.
ACLLinuxchattr
0 likes · 19 min read

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


ITPUBNov 18, 2020 · Information Security
This article explains a critical Ubuntu vulnerability that lets a standard user create a new sudo account and obtain root privileges without a system password, detailing the exploitation steps, required commands, and the underlying flaw in accounts‑daemon and GNOME Display Manager, plus mitigation advice.
Linux-securityaccounts-daemongdm3
0 likes · 7 min read

Learn step‑by‑step how to activate the root user on Ubuntu, assign a password, configure sudo for password‑less access, and later lock or disable the root account by expiring its password, with clear command examples and safety tips.
Linuxpasswordroot
0 likes · 4 min read


ITPUBSep 17, 2020 · Operations
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.
Linuxcommand linesu
0 likes · 5 min read

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.
Linuxsusudo
0 likes · 5 min read

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.
Linuxbashenvironment variables
0 likes · 4 min read


ITPUBApr 7, 2020 · Operations
Discover a curated list of 11 powerful Linux terminal commands and shortcuts—including clipboard tricks, sudo shortcuts, background execution, scheduling, process management, file browsing, shutdown cancellation, and YouTube video downloading—to dramatically boost your productivity and streamline everyday tasks.
Shortcutscommand-linehtop
0 likes · 10 min read


ITPUBOct 17, 2019 · Information Security
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-securitypatch
0 likes · 7 min read

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.
LinuxSecurityaccount management
0 likes · 12 min read


21CTOMay 7, 2018 · Operations
This guide walks through common sudo scenarios—granting temporary root rights, fixing permission errors in vim, re‑executing forgotten sudo commands, handling shell built‑ins, and configuring sudo logging—to help Linux users work more efficiently and securely.
Linuxcommand lineprivilege escalation
0 likes · 7 min read


21CTOApr 28, 2018 · Operations
This guide walks through five common sudo use‑cases on Linux—granting temporary root rights, fixing forgotten sudo in vim, re‑executing commands with sudo, handling shell built‑ins, and configuring sudo logging—providing clear examples and configuration tips for system administrators.
Linuxcommand linepermissions
0 likes · 7 min read


ITPUBApr 26, 2018 · Operations
This guide walks through five common sudo use‑cases on Linux—granting temporary root rights, fixing permission errors in vim, recalling forgotten sudo, handling shell built‑ins, and configuring sudo logging—providing clear examples, configuration snippets, and practical tips for system administrators.
Linuxpermissionssudo
0 likes · 8 min read

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.
CI/CDJenkinsPasswordless SSH
0 likes · 7 min read

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.
Root Accesscommand linesudo
0 likes · 6 min read


ITPUBJul 19, 2017 · Information Security
This guide walks through practical Linux hardening steps—including minimal installation, SSH port changes, sudo privilege tailoring, extensive kernel sysctl tuning, firewall adjustments, system version hiding, file protection, and package installation strategies—to boost security and performance while keeping the system lean.
Performance TuningSSHfirewall
0 likes · 6 min read

This guide explains why absolute security is impossible, describes common attack vectors against SSH, and provides step‑by‑step techniques for disabling root logins, configuring sudo, creating private service users, tightening file permissions, and removing unused accounts to harden Linux servers.
SSHSecurityroot
0 likes · 15 min read
