• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: FindFolder/sudo puzzle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: FindFolder/sudo puzzle (From: Andy O'Meara <email@hidden>)
 >Re: FindFolder/sudo puzzle (From: Bill Coderre <email@hidden>)
 >Re: FindFolder/sudo puzzle (From: Bruce Carter <email@hidden>)

  • Prev by Date: Re: FindFolder/sudo puzzle
  • Next by Date: postflight script and manual install questions
  • Previous by thread: Re: FindFolder/sudo puzzle
  • Next by thread: Re: FindFolder/sudo puzzle
  • Index(es):
    • Date
    • Thread