I installed some software by running its install script with
sudo ./install.sh
After the installation all the accounts on my Ubuntu laptop can gain root access by simply issuing the command sudo -s
, even the standard (non administrator) account. Also there is no password prompt when issuing the command sudo -s
.
My /etc/sudoers
looks like this:
Defaults env_reset
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# 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
ALL ALL=(ALL) NOPASSWD:ALL
/etc/sudoers
and revert them.ALL ALL=(ALL)
to a sudoers file. So if possible, please do let us know where you got the installation script (as @Rinzwind says) and/or what software the script came with or is for, so that the bug can be reported to its developers and hopefully fixed quickly. Thanks!