Debian has two versions of su
There's su (no hyphen) which will take you into the user's account
and su - (with hyphen) which will take you into the System Root
I am too use to ubuntu me thinks
I am out and about for a few hrs, will try later today
Debian has two versions of su
There's su (no hyphen) which will take you into the user's account
and su - (with hyphen) which will take you into the System Root
cat /etc/sudoers
sudo -l -U brian
Capital UCan you change to the root user and run the following and share the output?
Code:sudo -l -U brian
sudo -l (space) -U brian
sudo apt update
grep sudo /var/log/auth.log
oot@wizard-AOA110:~# grep sudo /var/log/auth.log
Oct 18 19:07:58 wizard-AOA110 sudo: brian : user NOT in sudoers ; TTY=pts/0 ; PWD=/home/brian ; USER=root ; COMMAND=/usr/bin/apt update
Oct 18 19:08:42 wizard-AOA110 sudo: brian : user NOT in sudoers ; TTY=pts/0 ; PWD=/home/brian ; USER=root ; COMMAND=/usr/bin/apt update
Oct 18 19:10:02 wizard-AOA110 sudo: pam_unix(sudo:auth): authentication failure; logname= uid=1000 euid=0 tty=/dev/pts/0 ruser=brian rhost= user=brian
Oct 18 19:10:21 wizard-AOA110 sudo: brian : user NOT in sudoers ; TTY=pts/0 ; PWD=/home/brian ; USER=root ; COMMAND=/usr/bin/apt update
Oct 18 19:24:53 wizard-AOA110 sudo: pam_unix(sudo:auth): authentication failure; logname= uid=1000 euid=0 tty=/dev/pts/0 ruser=brian rhost= user=brian
Oct 18 19:25:18 wizard-AOA110 sudo: brian : user NOT in sudoers ; TTY=pts/0 ; PWD=/home/brian ; USER=root ; COMMAND=/usr/bin/apt update
Oct 18 19:25:57 wizard-AOA110 sudo: pam_unix(sudo:auth): authentication failure; logname= uid=1000 euid=0 tty=/dev/pts/0 ruser=brian rhost= user=brian
Oct 18 19:26:13 wizard-AOA110 sudo: pam_unix(sudo:auth): conversation failed
Oct 18 19:26:13 wizard-AOA110 sudo: pam_unix(sudo:auth): auth could not identify password for [brian]
Oct 18 19:26:13 wizard-AOA110 sudo: brian : user NOT in sudoers ; TTY=pts/0 ; PWD=/home/brian ; USER=root ; COMMAND=/usr/bin/apt update
Oct 18 19:30:33 wizard-AOA110 sudo: pam_unix(sudo:auth): authentication failure; logname= uid=1000 euid=0 tty=/dev/pts/0 ruser=brian rhost= user=brian
Oct 18 19:30:41 wizard-AOA110 sudo: brian : user NOT in sudoers ; TTY=pts/0 ; PWD=/home/brian ; USER=root ; COMMAND=/usr/bin/apt update
Oct 18 21:38:34 wizard-AOA110 sudo: brian : user NOT in sudoers ; TTY=pts/0 ; PWD=/home/brian ; USER=root ; COMMAND=/usr/bin/apt update
Oct 18 21:39:03 wizard-AOA110 sudo: pam_unix(sudo:auth): authentication failure; logname= uid=1000 euid=0 tty=/dev/pts/0 ruser=brian rhost= user=brian
Oct 18 21:39:31 wizard-AOA110 sudo: pam_unix(sudo:auth): conversation failed
Oct 18 21:39:31 wizard-AOA110 sudo: pam_unix(sudo:auth): auth could not identify password for [brian]
Oct 18 21:39:31 wizard-AOA110 sudo: brian : user NOT in sudoers ; TTY=pts/0 ; PWD=/home/brian ; USER=root ; COMMAND=/usr/bin/apt update
Oct 19 08:33:34 wizard-AOA110 sudo: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/usr/bin/apt update
Oct 19 08:33:34 wizard-AOA110 sudo: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
Oct 19 08:33:44 wizard-AOA110 sudo: pam_unix(sudo:session): session closed for user root
Oct 19 08:34:20 wizard-AOA110 sudo: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/usr/bin/apt install -t unstable firefox
Oct 19 08:34:20 wizard-AOA110 sudo: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
Oct 19 08:34:21 wizard-AOA110 sudo: pam_unix(sudo:session): session closed for user root
Oct 19 10:53:59 wizard-AOA110 usermod[2619]: add 'brian' to group 'sudo'
Oct 19 10:53:59 wizard-AOA110 usermod[2619]: add 'brian' to shadow group 'sudo'
Oct 19 11:14:47 wizard-AOA110 sudo: brian : user NOT in sudoers ; TTY=pts/1 ; PWD=/home/brian ; USER=root ; COMMAND=/etc/apt/sources.list
Oct 19 13:09:21 wizard-AOA110 sudo: brian : TTY=pts/0 ; PWD=/home/brian ; USER=root ; COMMAND=/usr/bin/apt update
Oct 19 13:09:21 wizard-AOA110 sudo: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Oct 19 13:09:30 wizard-AOA110 sudo: pam_unix(sudo:session): session closed for user root
Oct 19 13:10:02 wizard-AOA110 sudo: brian : TTY=pts/0 ; PWD=/home/brian ; USER=root ; COMMAND=/usr/bin/apt install -t unstable firefox
Oct 19 13:10:02 wizard-AOA110 sudo: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Oct 19 13:10:02 wizard-AOA110 sudo: pam_unix(sudo:session): session closed for user root
Oct 19 13:10:56 wizard-AOA110 sudo: brian : TTY=pts/0 ; PWD=/home/brian ; USER=root ; COMMAND=/usr/bin/apt install flatpak
Oct 19 13:10:56 wizard-AOA110 sudo: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Oct 19 13:11:31 wizard-AOA110 sudo: pam_unix(sudo:session): session closed for user root
Oct 19 13:21:06 wizard-AOA110 sudo: brian : TTY=pts/0 ; PWD=/home/brian ; USER=root ; COMMAND=/usr/bin/flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
Oct 19 13:21:06 wizard-AOA110 sudo: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Oct 19 13:21:07 wizard-AOA110 sudo: pam_unix(sudo:session): session closed for user root
Oct 19 19:32:32 wizard-AOA110 sudo: brian : TTY=pts/0 ; PWD=/home/brian ; USER=root ; COMMAND=/usr/bin/apt update
Oct 19 19:32:32 wizard-AOA110 sudo: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Oct 19 19:32:42 wizard-AOA110 sudo: pam_unix(sudo:session): session closed for user root
root@wizard-AOA110:~#
According to those three auth.log lines you were granted sudo access for running "sudo apt update". Are still getting the message you aren't in the sudoers file?Oct 19 19:32:32 wizard-AOA110 sudo: brian : TTY=pts/0 ; PWD=/home/brian ; USER=root ; COMMAND=/usr/bin/apt update
Oct 19 19:32:32 wizard-AOA110 sudo: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Oct 19 19:32:42 wizard-AOA110 sudo: pam_unix(sudo:session): session closed for user root
Good morning to you as well, glad that fixed it for you!good morning... thank you all sudo for brian now works View attachment 10532View attachment 10533
It is the other way around. Su without hyphen takes you into the system root.Debian has two versions of su
There's su (no hyphen) which will take you into the user's account
and su - (with hyphen) which will take you into the System Root
It’s one of the things I hate about Debian. There’s a page on the installer where it asks you for a root password. If you read the fine print on that page, and follow the link to their documentation - you’ll see the “better” way would be to omit a password for root - in which case root gets disabled as a user which can login (much more secure).
If you omitted a root password then Debian sets your first user name as a sudo-er. Else it may not even have installed the sudo program, never mind if your user name is placed on the list. Which means all the rest can be avoided, by actually filling in less during the install.