Re: how to authenticate in order to run a sudo shellscript?
Re: how to authenticate in order to run a sudo shellscript?
- Subject: Re: how to authenticate in order to run a sudo shellscript?
- From: Mark Douma <email@hidden>
- Date: Wed, 3 Mar 2004 02:06:50 -0500
On Mar 01, 2004, at 1:11 AM, Andrew Oliver wrote:
If you need to run with elevated/root privileges, use the 'do shell
script'
mechanism that's designed for this:
do shell script "blah blah blah" with administrator privileges
You'll be prompted for your password with authenticates you in the
same way
sudo does, then it runs the command.
Would anyone happen to know what "with administrator privileges" uses
to be able to run with root permissions? Like does it rely on shell
commands such as sudo or su (behind the scenes), or is it similar to
the "authexec" method which many apps to gain those permissions?
For example, if the permissions of "su" and/or "sudo" were damaged, say
with no root ownership and no SetUID bit, would the "do shell script
with administrator privileges" still be able to succeed?
------------------------------------------------------------------------
---
Mark Douma
Grand Rapids, MI, USA
email@hidden
http://homepage.mac.com/mdouma46/
------------------------------------------------------------------------
---
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.