There is a server that was setup a while back, and I need to change a few settings, one of which is a user with super user privileges. However, everywhere I look tell to use visudo
, or edit /etc/sudoers
, but none of these things exist on this server.
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
$ whereis visudo
visudo:
$ visudo
-bash: visudo: command not found
$ ls -l /etc/sudoers
ls: cannot access '/etc/sudoers': No such file or directory
Where would that configuration be?
** EDIT **
To be clear, the user can su
without a password, so that's setup somewhere, but since /etc/sudoers
does not exist, and visudo
is not installed (neither is sudo
), where would that config be?
sudo
installed?su
works without requiring a password.su
is entirely unrelated tosudo
. Please provide the contents of/etc/pam.d/su
.whoami
and let us know what UID it tells you that you are.