Panther: possible to run a do shell script as admin in standard user

Hi,

obviously it’s not possible to eject a disk in a standard user account in Panther
You will be asked for admin username and password.
So I tried a script with

do shell script "sudo /usr/sbin/diskutil unmount /Volumes/xxxx" password "¢¢¢¢" with administrator privileges

(in Panther there is no user name parameter) and got an error “wrong password attempt”

Is there a trick ?

hi stephan,

try it without sudo, which is unnecessary. like this:

do shell script "/usr/sbin/diskutil unmount /Volumes/xxxx" password "¢¢¢¢" with administrator privileges

more info is down near the bottom of this page:

http://bbs.applescript.net/viewtopic.php?id=19576

cheers.

Hi waltr,

thanks for the response. I forgot to mention, that I tried everything with/without sudo,
with/without password, with/without full path, user password/admin password.
I think, Panther behaves quite different in this case as Tiger does.