Re: FindFolder/sudo puzzle
Re: FindFolder/sudo puzzle
- Subject: Re: FindFolder/sudo puzzle
- From: Bill Coderre <email@hidden>
- Date: Sat, 24 May 2008 20:38:49 -0700
On May 24, 2008, at 8:24 PM, Bruce Carter wrote:
On May 24, 2008, at 10:34 PM, Bill Coderre wrote:
Apple frequently uses su -c ${USER}, which is very close to the
same thing.
We use su instead of sudo because (if I recall correctly) sudo can
be configured to require keyboard confirmation to work, and that
would screw up a postflight script in at least some cases.
But yes, for all the kinds of scripts you write, su -c ${USER} is
reliable and should keep working for quite some time.
Should anything be read into the fact that the -c option is no
longer listed on the man page for su in Leopard?
I am not being clear enough:
su ${USER} -c "command flags arg arg arg..."
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden