I'm not sure I follow your argument. Assume you are using Ubuntu: after you type that command, you still have to enter a password. Ubuntu is not set to allow password-free superuser privileges to regular users. One gotcha, however, is that I believe the default in Ubuntu is a 15 minute no-password period, after you enter your pass. That is, every subsequent sudo command for the next 15 minutes does not require a password. That's a very poor default, I think.mzilikazi wrote:Personally I won't use sudo at all. I just don't see any point not to mention the complete and total lack of securty it creates. I've never booted Ubuntu. What happens if you do this?(Don't try this at home boys & girls)Code: Select all
sudo rm -rf /some/dir
Would it nuke your entire dir?
That said, in Debian what's to stop me from entering this?
Code: Select all
su -c 'rm -rf /some/dir'