Bruce Marshall < bmarsh at bmarsh.com >
aharrison at gmail.com
Mon Jun 4 19:29:36 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
On 6/4/07, Greg Booth wrote:
> > 1. Get the facts about sudo.
> That's why I was asking this question. It seems to me there's no benefit to using sudo versus su. You get the same functionality, plus it almost seems that your password gets cached somehow. If you run a number of sudo commands one after the other it only prompts you the first time, that caching functionality to me seems strange as I don't understand it or what it's doing.
It is not the same functionality. su is all-or-nothing. On the other
hand, sudo can be used in a very granular fashion, allowing specific
commands to be run by specific users or groups.
Also, to reduce the number of times you're prompted for a password
while using sudo, you can change the default timeout value. Edit the
/etc/sudoers file and modify the Defaults line and add a
passwd_timeout param. Example:
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the kubuntu-users