Disabling password authentication every time is an iffy thing. For novice users I highly discourage such things. Also it is a very bad
thing to run as root. Most linux desktop distributions make this difficult to do, but, its not impossible.
For most desktop users once a system is set up and tuned the need to disable these prompt is fairly minimal. Maybe a prompt daily for a password when doing updates. If you're a developer this becomes more of issue where different packages are loaded, etc. This becomes very dependent on user preferences and skill.
With Windows UAC may be disabled (Vista maked a lot of gripes, Windows 7 is pretty cool about it, Windows 8 makes it much harder). Windows is inherently much less secure because of the fact that most users run as administrative users in the first place, and, there are some architectural differences that make linux a little more secure out of the box.
All of this said, however, you may want to disable password prompting. Please be careful. If you break something, remember that you own (and are responsible for) all the pieces left over.
Disabling sudo and gksudo prompting, is a matter of adding this line:
- Code: Select all
to the sudoers file. This should be done, at a terminal prompt, with "sudo visudo".
For more information on the /etc/sudoers file please read Marius Ducea
's nice article: http://www.ducea.com/2006/06/18/linux-tips-password-usage-in-sudo-passwd-nopasswd/
And for more information on PAM (of which sudo is part) IBM has a good article: http://www.ibm.com/developerworks/linux/library/l-pam/index.html?ca=dgr-lnxw9d&S_TACT=105AGX59&S_CMP=grsitelnxw9d