kazulog@sv1:~$ cat /etc/os-release PRETTY_NAME="Ubuntu 26.04 LTS" NAME="Ubuntu" VERSION_ID="26.04" VERSION="26.04 LTS (Resolute Raccoon)" VERSION_CODENAME=resolute ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=resolute LOGO=ubuntu-logo kazulog@sv1:~$ sudo --version sudo-rs 0.2.13-0ubuntu1 kazulog@sv1:~$ id uid=1000(kazulog) gid=1000(kazulog) groups=1000(kazulog),4(adm),24(cdrom),27(sudo),30(dip),102(lxd) kazulog@sv1:~$ whoami kazulog kazulog@sv1:~$ getent passwd kazulog kazulog:x:1000:1000:Ubuntu:/home/kazulog:/bin/bash kazulog@sv1:~$ sudo -l User kazulog may run the following commands on sv1: (ALL : ALL) ALL (ALL) NOPASSWD: ALL kazulog@sv1:~$ sudo cat /etc/sudoers # # This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content in /etc/sudoers.d/ instead of # directly modifying this file. # # See the man page for details on how to write a sudoers file. # Defaults env_reset Defaults mail_badpass Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" # This fixes CVE-2005-4890 and possibly breaks some versions of kdesu # (#1011624, https://bugs.kde.org/show_bug.cgi?id=452532) Defaults use_pty # This preserves proxy settings from user environments of root # equivalent users (group sudo) #Defaults:%sudo env_keep += "http_proxy https_proxy ftp_proxy all_proxy no_proxy" # This allows running arbitrary commands, but so does ALL, and it means # different sudoers have their choice of editor respected. #Defaults:%sudo env_keep += "EDITOR" # Completely harmless preservation of a user preference. #Defaults:%sudo env_keep += "GREP_COLOR" # While you shouldn't normally run git as root, you need to with etckeeper #Defaults:%sudo env_keep += "GIT_AUTHOR_* GIT_COMMITTER_*" # Per-user preferences; root won't have sensible values for them. #Defaults:%sudo env_keep += "EMAIL DEBEMAIL DEBFULLNAME" # "sudo scp" or "sudo rsync" should be able to use your SSH agent. #Defaults:%sudo env_keep += "SSH_AGENT_PID SSH_AUTH_SOCK" # Ditto for GPG agent #Defaults:%sudo env_keep += "GPG_AGENT_INFO" # Host alias specification # User alias specification # Cmnd alias specification # User privilege specification root ALL=(ALL:ALL) ALL # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL # Allow members of group sudo to execute any command %sudo ALL=(ALL:ALL) ALL # See sudoers(5) for more information on "@include" directives: @includedir /etc/sudoers.d kazulog@sv1:~$ sudo ls -l /etc/sudoers.d/ total 8 -r--r----- 1 root root 141 Sep 10 13:30 90-cloud-init-users -r--r----- 1 root root 863 Jan 15 2026 README kazulog@sv1:~$ sudo cat /etc/sudoers.d/90-cloud-init-users # Created by cloud-init v. 26.1-0ubuntu3~26.04.1 on Thu, 10 Sep 2026 04:30:24 +0000 # User rules for kazulog kazulog ALL=(ALL) NOPASSWD:ALL kazulog@sv1:~$ getent group sudo sudo:x:27:kazulog kazulog@sv1:~$ sudo passwd -S root root L 2026-08-23 0 99999 7 -1