On Thu, Oct 08, 2009 at 02:27:15PM -0600, Jim Walker wrote: > Is there a reason why the pkg(1) commands don't > do a privilege check prior to performing a > command? > > For example, during image-update if you forget > the pfexec prefix it will go through the entire > time consuming download phase then bomb out do > to lack of privileges. > > Why don't we check the privileges before the > download? > > Other privileged pkg(1) and beadm commands have > similar issues.
Normally you don't want to check for privs because you don't necessarily know which ones you'll need. It's better to not check, but if pkg would check, it should only _warn_, not exit if the user lacks privs. _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
