Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Replace /usr/bin/mail with Mail.app' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Replace /usr/bin/mail with Mail.app
Authored by: njnystrom on Aug 23, '03 01:38:03PM

You could also try something like this script:

% osascript -e 'do shell script "sudo -u USER whoami"
                password "PASSWORD" with administrator privileges'
USER

This works because root is allowed to sudo to any other user without a password.

---
Nate

[ Reply to This | # ]