DIGIT-ARC read-only archive · snapshot: July 23, 2026

sudo -s

8 posts · originally from https://geek.digit.in/community/threads/sudo-s.31132/

R
ravix Original post #1
Jun 30, 2006 at 8:43 PM
any body can gain access to root by cmd "sudo -s" howto prevent this:mad:
JGuru
JGuru #2
Jun 30, 2006 at 8:58 PM
That's a good question!! Either you delete the sudo executable, or move it to some
other place or rename it to a different name!! A good solution is move the executa
-ble 'sudo to your '/home/' and don't give the other users read-access or any other
access. 'Sudo' is located in the '/usr/bin' folder.
praka123
Jun 30, 2006 at 9:05 PM
*www.sudo.ws/pipermail/sudo-users/2003-May/001538.html

In message <OF5E57D999.156B24E2-ON86256D24.00575E49-86256D24.005773A6 at cis.cat.c
om>
so spake "Nicholas C. Aganan" (Aganan_Nicholas_C):

> How will I disable sudo -s? I don't want this functionality to be given to
> my users.

"sudo -s" is just a shortcut for "sudo $SHELL". If your sudoers
file doesn't allow users t orun shells, they won't be able to do
"sudo -s" either.

- todd
Also refer:
*forums.macnn.com/archive/index.php/t-18166.html
M
Jun 30, 2006 at 9:10 PM
Just make it non-executable for other users except you.
Code:
sudo chmod o-x /usr/bin/sudo
But if your account is compromised then well this trick won't help and neither will JGuru's.
JGuru
JGuru #5
Jul 1, 2006 at 12:41 AM
If you want the best unbreakable protection you must include Biometrics. Including
a retina scan & a thumb print scanner. There are some Biometrics software
available in Linux. The researchers say that even finger-print can be spoofed by using
gelatin or other similar substances!! So the new Biometrics software looks for Sweat!!
Read more about it here:
*news.zdnet.com/2100-1009_22-6003440.html
chesss
chesss #6
Jul 1, 2006 at 6:52 PM
any body can gain access to root by cmd "sudo -s" howto prevent this
Wouldn't they have to know the pasword as well??
mediator
Jul 1, 2006 at 8:13 PM
ravix said:
any body can gain access to root by cmd "sudo -s" howto prevent this:mad:

How dood?? My FC5 says "mediator is not in the sudoers file. This incident will be reported."
M
Jul 2, 2006 at 12:40 AM
Well mediator just do this
Code:
su
visudo
And search for tutorials on net on how to add user/group to sudoers file.
I have left the ubuntu defualt
%admin ALL=(ALL) ALL.
Well you can customise it to your needs.