On 1/12/06 1:25 PM, Bryan Harris deftly typed out: > I was surprised to learn that sudo will allow you to pipe the password to it > (though you do have to use the -S switch). > > Surprisingly, however, this script quits *my* database daemon and not hers! > I tried it several times, even when I "su <her username>" and run the > osascript as her, it still quits my daemon and leaves hers running! Only if > I physically switch over to her user account (i.e. fast user switch) does > that command quit her daemon. > > Now I'm really perplexed...
That *is* interesting. It sounds like a security bug to me. Her user should not be able to quit one of your processes without first elevating her privileges. I think I remember that AppleScript requires that an account be logged into the console (needs the WindowServer running or something). That may explain why it quits *your* daemon...because whatever parent process AppleScript needs, it is not running in her context. Maybe you'll just have to be less nice and 'kill' it. -Remo Del Bello -- "Kids, you tried your best and you failed miserably. The lesson is, never try." - Homer Simpson -- To unsubscribe: <mailto:[EMAIL PROTECTED]> archives: <http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/> old-archive: <http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>
