On Tue, Oct 28, 2008 at 8:38 AM, Benjamin Schollnick < [EMAIL PROTECTED]> wrote:
> Folks, > > I'm working on some time machine scripting... In a gist, there is a > .Backup.log file that I want to access via readline & python.... > > >From the MOSX gui, it appears some of the files require root access (eg. > Authentication dialog pops up). Now, I am using the applet maker to > compile the python to a GUI stub, so I can't SUDO the python script... Is > there some method that I can use to authenticate via the python script > internally? > > I'm in the middle of a google search on this, but I am having no luck at > refining my search phrase currently (Macintosh python authenticate)... > > - Benjamin > im not sure if python's cocoa services allow access to the "Authorization services API " through python. how good is your C? http://developer.apple.com/documentation/Security/Reference/authorization_ref/Reference/reference.html if you can find a way around it, u need this: http://docs.python.org/library/getpass.html shouldn't this script startout privlaged or otherwise may be exploited? you can sudo gui apps from the commandline or use Psudo<http://personalpages.tds.net/%7Ebrian_hill/pseudo.html>, the mac privlage elevation program, http://personalpages.tds.net/~brian_hill/pseudo.html -- "lalalalala! it's not broken because I can use it" http://linux.slashdot.org/comments.pl?sid=194281&threshold=1&commentsort=0&mode=thread&cid=15927703
_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig