Profiles take effect when you run the command under the profile. What you are missing is the "pfexec" command, which runs the command on the rest of the command line using the users profiles.
So, if you ran it as "pfexec pkg refresh" you probably would have gotten what you expected. You can use the profile shells pfsh, pfcsh and pfksh to get the same effect for extended periods. John Hawk wrote: > Here is why I'm confused. In linux root is the holy grail you get it all. > However, on my opensolaris that is only true if I su into root. The better > question might be why isn't > the profile working as described in documentation "as I understand it". > > My profile excerpt: > jhawk::::type=normal;profiles=Basic Solaris User,Primary > Administrator,Software Installation;roles=root > > Example: > > [EMAIL PROTECTED] ~ >profiles > Basic Solaris User > All > Primary Administrator > Software Installation > > [EMAIL PROTECTED] ~ >pkg refresh > Excerpt: > IOError: [Errno 13] Permission denied: > '//var/pkg/catalog/opensolaris.org/attrs' > [EMAIL PROTECTED] ~ > > > [EMAIL PROTECTED] ~ >su > Password: > [EMAIL PROTECTED] ~ >pkg refresh > [EMAIL PROTECTED] ~ > > > As far as testing for the value: > Get test.py here http://home.comcast.net/~hawk.john/test.py > > john > -- > > This message posted from opensolaris.org > > _______________________________________________ > indiana-discuss mailing list > [email protected] > http://mail.opensolaris.org/mailman/listinfo/indiana-discuss -- blu "You've added a new disk. Do you want to replace your current drive, protect your data from a drive failure or expand your storage capacity?" - Disk management as it should be. ---------------------------------------------------------------------- Brian Utterback - Solaris RPE, Sun Microsystems, Inc. Ph:877-259-7345, Em:brian.utterback-at-ess-you-enn-dot-kom _______________________________________________ indiana-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
