sudo on OSX

Ken Ray kray at sonsothunder.com
Sun Oct 6 04:40:01 EDT 2002


Never mind... I just noticed the [r/o] (read-only) symbols next to the login
items... doesn't look like you can make ones that way...

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/

----- Original Message -----
From: "Ken Ray" <kray at sonsothunder.com>
To: <metacard at lists.runrev.com>
Sent: Sunday, October 06, 2002 3:16 AM
Subject: Re: sudo on OSX


> Simon,
>
> You could try using AppleScript and scripting the SYstem Events
application.
> You can get the current startup items by doing this:
>
> tell application "System Events"
>   get login items
> end tell
>
> I have tried creating a new login item with "make", but can't seem to get
it
> to work... perhaps someone else can?
>
> Ken Ray
> Sons of Thunder Software
> Email: kray at sonsothunder.com
> Web Site: http://www.sonsothunder.com/
>
> ----- Original Message -----
> From: "Simon Lord" <slord at mac.com>
> To: <metacard at lists.runrev.com>
> Sent: Sunday, October 06, 2002 1:13 AM
> Subject: sudo on OSX
>
>
> > Hi all, I have a minor problem with the StartupItems under OSX.  It's
> > owned by root.  So the application I'm writing can't set a script there
> > to launch on startup.  This is likely a security measure so my option
> > is to send a command to sudo and write/copy the script to the
> > StartupItems directory.  Problem is how does one do that?  I'll need to
> > ask the user to enter the password (root only, users cannot modify) but
> > then how do I actually run it in a command line *with* the password?
> > IE,. I don't want to run the script and have the Terminal say "ok,
> > what's the password", I want to include the password in the command to
> > copy the script to the StartupItems folder.
> >
> > Any ideas?
> >
> > Sincerely,
> > Simon
> >
> > _______________________________________________
> > metacard mailing list
> > metacard at lists.runrev.com
> > http://lists.runrev.com/mailman/listinfo/metacard
> >
>
> _______________________________________________
> metacard mailing list
> metacard at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/metacard
>




More information about the metacard mailing list