Hello Dan, Monday, September 8, 2008, 8:42:17 AM, you wrote:
DP> On Sun 07 Sep 2008 at 01:46PM, Robert Milkowski wrote: >> Hello pkg-discuss, >> >> [EMAIL PROTECTED]:~# pkg image-update -v >> Checking that SUNWipkg (in '/') is up to date... >> WARNING: pkg(5) appears to be out of date, and should be updated before >> running image-update. >> >> Please update pkg(5) using 'pfexec pkg install SUNWipkg' and then retry >> the image-update. >> [EMAIL PROTECTED]:~# >> >> >> IMHO pfexec should not be mentioned in above message as it will depend >> on a server configuration, etc. DP> Well, I thought about it, and worried that if we didn't tell users DP> to pfexec, they'd forget and then compain about that. I was trying to DP> be user friendly. DP> Is there a case when pfexec would actually make the command *not* DP> work? If it is executed from a user which has no admin role assigned to it then it will fail. I've just did: # pfexec bash # su - mysql mysql # pfexec pkg image-update -v Pkg failed "uncleanly" because of lack of proper permissions to /var/pkg/download/*. It failed the same way with or without pfexec. The other issue is that it is actually trying to Create Plan which takes some time and then it fails. Would be much nicer if it checked the proper permission access before doing anything and printed out an error message. user friendly yeah, I know what you mean. Perhaps something like "Try to run pkg command with Administrator Privileges like pfexec pkg..." -- Best regards, Robert mailto:[EMAIL PROTECTED] http://milek.blogspot.com _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
