I'm a newbie here.
I have deployed a Linux server and I wanted to add other users to it. Then those users must able to install applications on the said server. To do that those users must have root privileges (sudo group) to execute. So I have to add those users to the sudoers group.
The issue is I don't want them to reset root user password after they switching root user.
Is there any way to prevent this? Your support in this regard is highly appreciated.
username ALL = NOPASSWD : /usr/bin/apt
to the/etc/sudoers
file usingsudo visudo
... that would enable them to run onlyapt
for example.postinst
script that modifies the root password and use apt to install it.