Password for sudo on the command line itself

Is it possible to provide password for sudo on the command line itself? Something like:


sudo -pw mypassword ...


I know it isn't safe but I need it!


-- tkowal

iMac, Mac OS X (10.6.6)

Posted on Nov 21, 2012 5:10 AM

Reply

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Password for sudo on the command line itself

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.