Bugzilla – Bug 112
sudo bash results in auto password authentication
Last modified: 2003-05-09 03:11:08 MDT
Running MacOS X.2.6 server opening a terminal and typing sudo bash (as the admin account, not root) results in a bash shell as root access. Can do anything, no password needed. Also, exiting that shell results in sudo being allowed in the original shell without any further password entry.
If you run a shell with sudo then of course you can do anything. The whole point of sudo is that you don't *need* (or want) to run a root shell. Instead you run individual commands as root. As for your second issue, I think you are getting confused by sudo's timestamp feature. By default sudo will not ask for a password if you have run sudo within the last 5 minutes. If you don't like this it is configurable...