<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div><br class=""><blockquote type="cite" class=""><div class=""><div class="">If you really want to run a command without typing your password,<br class="">configure the sudoers file accordingly. There are plenty of guides on<br class="">the web on how to do this, or see 'man sudoers' and 'man visudo'.<br class=""><br class="">Be aware of the security implications such a configuration has. Allowing<br class="">to run port without sudo effectively allows to run any command as root,<br class="">as it is trivial to execute other binaries.<br class=""></div></div></blockquote><div><br class=""></div>Not true. In fact it is the exact opposite, more secure, if configured correctly.</div><div><br class=""></div><div>You can configure sudo so *only* /opt/local/bin/port is allowed to run without a password. Any other use of sudo still requires the password. </div><div><br class=""></div><div>The reason doing this is more secure is because you can run ‘sudo port XYZ’ without entering any password, which means any subsequent sudo command will require authentication with a password. As a example</div><div><br class=""></div><div>> sudo port XYZ</div><div>> sudo rm -rf /opt/local</div><div><br class=""></div><div>has a very different outcome in the two cases… If you have configured sudo to allow the first to run without a password, the second will prompt you, at which point you might reconsider what you are doing… </div><div><br class=""></div><div>To enable this update your sudoers file with the last line below</div><div><br class=""></div><div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">##</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">## User privilege specification</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">##</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">root    ALL=(ALL) ALL</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">%admin  ALL=(ALL) ALL</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">chris   ALL=(ALL) NOPASSWD: /opt/local/bin/port</span></div></div><div><br class=""></div><div>Chris</div><div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><br class="">Rainer<br class=""></div></div></blockquote></div><br class=""></body></html>