Situation: I'm running OS X 10.8.3 and i have 2 users, an Admin user and a Standard user. When i'm logged in as the standard user and i need to run a command with admin privileges in the terminal i use:
su myadmin <enter the password> sudo bash <enter the same password... again> easy_install etc (run the priveleged command) exit exit
Question: Can i do all of this in just 1 single terminal command, and only having to enter the admin password 1 time?
EDIT: fyi so far i found this, it's 1 command but it still requires me to enter the same password 2 times:
su myadmin -c 'sudo easy_install etc'