PDA

View Full Version : Disabling sudo on linux - safe or unsafe?



Grant A.
December 4th, 2008, 02:39 AM
What do you think, safe or unsafe? I myself prefer su as it doesn't stick around for 15 minutes.

EDIT- Can a mod please change this to disabling sudo on Linux?

bruce89
December 4th, 2008, 02:42 AM
I can't be bothered having to remember another password. Also, I'm sure security-wise, both methods are much the same (prove me wrong).

Grant A.
December 4th, 2008, 02:43 AM
both methods are much the same (prove me wrong).

Su dies after you kill the program/terminal session using it. Sudo on some distributions dies after 15 minutes.

Rokurosv
December 4th, 2008, 02:44 AM
I say give an option during the install, like Mint does for creating a superuser account with its own password. It's one of the things I don't like about Ubuntu, that the super user password is the same as the normal user, I don't know much about cracking passwords and all of that but I imagine is easier to get a normal user's password than a superuser's.

Joeb454
December 4th, 2008, 02:45 AM
Title changed as requested :)


Su dies after you kill the program/terminal session using it. Sudo on some distributions dies after 15 minutes.

While this is true, you can change the timeout...personally I find it useful, and if I'm working via ssh I always run
sudo -k after finishing any sudo work.

Either that or if it's for prolonged periods I just switch to root anyway to save a little hassle.

Personally I do think sudo is a good idea :)

Grant A.
December 4th, 2008, 02:46 AM
that the super user password is the same as the normal user, I don't know much about cracking passwords and all of that but I imagine is easier to get a normal user's password than a superuser's.

On Ubuntu the root password is randomized during install; however, due to the set up of the OS, you are quite correct, a normal user in some cases is a superuser.

Thank you for the title change Joeb! :D

damis648
December 4th, 2008, 02:53 AM
I say give an option during the install, like Mint does for creating a superuser account with its own password. It's one of the things I don't like about Ubuntu, that the super user password is the same as the normal user, I don't know much about cracking passwords and all of that but I imagine is easier to get a normal user's password than a superuser's.

Sorry, that's wrong. The root (superuser) password is randomly generated upon installation. The user's password is the only account that uses the password you used during the installation.

Rokurosv
December 4th, 2008, 02:57 AM
Sorry, that's wrong. The root (superuser) password is randomly generated upon installation. The user's password is the only account that uses the password you used during the installation.

Ohh I didn't know that :o. Then how does sudo work exactly? Cause when you want to do something that involves super user rights and you type sudo the password you introduce is the normal user password, if I'm not mistaken.

Grant A.
December 4th, 2008, 03:00 AM
Ohh I didn't know that :o. Then how does sudo work exactly? Cause when you want to do something that involves super user rights and you type sudo the password you introduce is the normal user password, if I'm not mistaken.

You type in your user password it gives you the administrative rights for 15 minutes in some distros, such as Ubuntu, by default.

damis648
December 4th, 2008, 03:03 AM
Ohh I didn't know that :o. Then how does sudo work exactly? Cause when you want to do something that involves super user rights and you type sudo the password you introduce is the normal user password, if I'm not mistaken.

Though I am not exactly sure technically how it works, it takes the normal user user password and authentication enough to run a superuser command. T modify settings, you can run 'sudo visudo'.

cardinals_fan
December 4th, 2008, 03:43 AM
I don't like sudo, and the timeout is madness. Just su to root, handle what needs to be handled, and exit.

*I realize that sudo may be useful in settings where carefully refined permissions policies are necessary, but this probably doesn't apply to most people here*