administrator privileges

When performing…

do shell script ("something") user name "user" password "pass)" with administrator privileges

…does the user that is logged into the mac need to be an administrator to run the script?

I am not sure how to avoid having to authenticate to run a script with this in it.

-Dave

No, not the user, but the required username and password must be of an admin account.
The is necessary for security reasons, because administrator privileges gives the receiver root privileges!

That’s what I had hoped, but when I run the script when logged in as a non-admin, I get the following prompt:

“Type an administrator’s name and password to allow Finder to make changes.”

The user name & password provided in the script is the admin account on the workstation. This is on OS X 10.5.5

Like most of my scripts, I would have been done by now had I done this task manually : )

Oh, I see the issue now. It is not an issue with “do shell script,” it is an issue with telling the Finder to move something to the trash.

I will try to accomplish the same thing with Unix.