Yes, or you could use visudo to edit the sudoers file to give your non-admin account permission to run the port command with sudo, as Stephen explained below.
On Nov 17, 2010, at 23:40, Scott Webster wrote: > You have to be admin (i.e. su to your admin account). And THEN use > sudo to run the port command. I believe only admin accounts can use > sudo to get root permissions, which is what you need. > > On Wed, Nov 17, 2010 at 6:22 PM, Stephen Langer <[email protected]> > wrote: >> Your root account doesn't have the right environment (path, etc), but your >> user account doesn't have the right permissions. Since you probably don't >> actually have a root account, I don't know how to give it the right >> environment... >> >> It might be easier if you use sudo instead of su. Use visudo to give >> yourself the same permissions as root when using sudo. Then you can do root >> tasks from your user account, but only via sudo, so it's not as risky as >> actually logging in as admin. sudo will use your environment, I think, but >> root's permissions. _______________________________________________ macports-users mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
