Search Results

Search: Posts Made By: PatGmac
Forum: OS X (Apple) 04-27-2009
35,380
Posted By PatGmac
Bash script prompt for sudo password?
I'm making a script that will be a double clickable .command file and I need it to prompt for the users admin password.

So far I have:

if [[ "$(/usr/bin/whoami)" != "root" ]]; then
sudo...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 03:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy