Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 4697  / 2 Years ago, thu, december 9, 2021, 8:48:36

I want to make it impossible for any root commands to be issued during a Live Boot session. I don't want anyone being able to sign in as root. Period!



So, is it possible to stop the sudo service? If so, would this accomplish what I'm trying to do?



I tried the three possible stop service commands below but chkconfig --list show sudo still working:



(1)



sudo stop sudo


(2)



sudo /etc/init.d/sudo stop


(3)



sudo service sudo stop

More From » security

 Answers
1

You can't get rid of sudo the way you think, but you can explicitly define what users are allowed to do, all the way from disallowing sudo through to requiring passwords for particular commands. It is very powerful.



You do this through the use of sudoers



From Ubuntu.com:




The /etc/sudoers file controls who can run what commands as what users
on what machines and can also control special things such as whether
you need a password for particular commands.




It does this through four kinds of aliases: User_Alias, Runas_Alias, Host_Alias and Cmnd_Alias which work as their names suggest.



which


[#40677] Friday, December 10, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
bearous

Total Points: 226
Total Questions: 116
Total Answers: 136

Location: Guernsey
Member since Sun, Jan 10, 2021
3 Years ago
;