Thanks to everyone for their comments. I have tried the touch newer trick and found the files changed. The critical file is the user's login.keychain file. As near as I can tell only the user can modify this file (I tried using security as root on a user's file and it asked me for the user's password to access it). I also tried the keychain scripting with the same issue - as root I cannot modify user's keychain files. I am now partway down the road of using apple script (man is the language atrocious) to basically screen scrape the process of an administrator going changing the password via network preferences.
It is really incredible how hard it is to work with Mac's in an enterprise. ski On Tue, 2009-03-24 at 13:26 -0400, Gilbert Wilson wrote: > On second thought, > > man security > > Will probably get you farther and cause less head trauma. > > Gil > > On Tue, Mar 24, 2009 at 1:17 PM, Gilbert Wilson <[email protected]> > wrote: > > You can use Applescript to create a Keychain entry for the wireless > > network. To find the relevant commands specific to the task, in > > script editor go to: > > > > File -> Open Dictionary -> Keychain Scripting > > > > All you need to do is get your head around the mindblowingly awful > > syntax and grammar of Applescript. :) > > > > Gil > > > > On Tue, Mar 24, 2009 at 8:29 AM, Stefan <[email protected]> wrote: > >> see if: > >> > >> $man networksetup > >> > >> reveals anything of use ... > >> > >> Stefan > >> > >> On Tue, Mar 24, 2009 at 1:08 AM, Ski Kacoroski <[email protected]> wrote: > >>> Hi, > >>> > >>> This should be a simple thing, but I keep running into walls. We need > >>> to change the wireless password on one of our schools network (WPA2 > >>> encryption) and move another network into production. The server side > >>> is easy. The problem I have is that I cannot figure out a way to add a > >>> wireless network and change a wireless network password on OSX without > >>> using the GUI as the local user (and I really do not want to touch 6000 > >>> workstations by hand). > >>> > >>> I can use the networksetup and airport commands to set it temporarily, > >>> but once the machine reboots the changes are lost. I can create > >>> passwords in the system keychain as root, but not in the user's login > >>> keychain and for some reason, the network chooser requires an entry in > >>> the user's login keychain. > >>> > >>> Any ideas or hints on how other people manage wireless passwords on OSX > >>> are most appreciated. > >>> > >>> cheers, > >>> > >>> ski > >>> > >>> -- > >>> "When we try to pick out anything by itself, we find it > >>> connected to the entire universe" John Muir > >>> > >>> Chris "Ski" Kacoroski, [email protected], 206-501-9803 > >>> or ski98033 on most IM services > >>> > >>> > >>> _______________________________________________ > >>> Tech mailing list > >>> [email protected] > >>> http://lopsa.org/cgi-bin/mailman/listinfo/tech > >>> This list provided by the League of Professional System Administrators > >>> http://lopsa.org/ > >>> > >> > >> _______________________________________________ > >> sage-members mailing list > >> [email protected] > >> http://mailman.sage.org/mailman/listinfo/sage-members > >> > > > > _______________________________________________ > Tech mailing list > [email protected] > http://lopsa.org/cgi-bin/mailman/listinfo/tech > This list provided by the League of Professional System Administrators > http://lopsa.org/ -- "When we try to pick out anything by itself, we find it connected to the entire universe" John Muir Chris "Ski" Kacoroski, [email protected], 206-501-9803 or ski98033 on most IM services _______________________________________________ Tech mailing list [email protected] http://lopsa.org/cgi-bin/mailman/listinfo/tech This list provided by the League of Professional System Administrators http://lopsa.org/
