Terminal - how to log in super user in a Standard user ?

I make an AppleScript to do some line code in Terminal.
Work great in my Admin User, but not in other User (standard).

Terminal calls … Acces denied…

Why ? I call the command line with and Admin Password.
HOW to log in Super User (or admin user) in a Standars user interface ?

Please help !!

[This script was automatically tagged for color coded syntax by Convert Script to Markup Code]

I don’t think you can if they don’t have admin rights. How did you set the root password in NetInfo or the terminal?

I believe that you can su to a particular user (ie: the machines administrator)

try this line instead, replacin username with the admin name:

do shell script "sudo su username" password adminPass with administrator privileges 

this will work also

do shell script "echo " & SUpassword & " | sudo  <command>