[Casper] disable ad hoc networking

Thomas Larkin tlarki at kckps.org
Wed Jan 14 06:41:12 PST 2009


After testing out that command it seems all it does is just require
admin rights to create ad hoc networks.  So if you don't have admin
rights you can't create them. 

Nifty

>>> "Miles Leacy" <miles.leacy at themacadmin.com> 01/13/09 2:55 PM >>>
Thanks!  Could you explain what the " 
-ibss_admin" switch means? How would this be undone if you needed to? 



If your airport interface is not "en1", would you need to discover the
correct value and substitute it in the command? Isn't airport en2 on Mac
Pros and en0 on MacBook Airs? 



Such as: 


airport_interface=`system_profiler SPNetworkDataType| grep -A 1
"Hardware: AirPort"` airport_interface=${airport_interface: -3}



expect -c 'spawn /usr/libexec/airportd $ 
airport_interface 
 -ibss_admin 1; expect eof' 





Thanks again for the great info! 


----------
Miles A. Leacy IV

 Certified System Administrator 10.4
 Certified Technical Coordinator 10.5
 Certified Trainer
Certified Casper Administrator
----------
voice: 1-347-277-7321
miles.leacy at themacadmin.com
www.themacadmin.com





2009/1/13 John DeTroye 
<detroye1 at apple.com> 




For Airport? From Terminal,   
sudo /usr/libexec/airportd en1 -ibss_admin 1  



or for remote deployment: 



expect -c 'spawn /usr/libexec/airportd en1 -ibss_admin 1; expect eof' 





johnd

--  

John DeTroye                        Email: johnd at apple.com 

Sr. Consulting Engineer         

  

Systems Management Specialist 

Apple - Education                   iChat: johnd at mac.com 

Systems Management Guide - http://www.apple.com/education/go/sysmgmt/ 

Tips and Tricks Docs - http://web.me.com/johnd/ 

-- 



On Jan 13, 2009, at 1:12 PM, Thomas Larkin wrote: 




I am looking at just disabling the ability to create an ad hoc network. 
A simple look at the given command line tools says I can't do this.  So,
now I am venturing into the real of editing a plist to disable that
function. 



Any pointers or suggestions? 




_______________________________________________
Casper mailing list
Casper at list.jamfsoftware.com
http://list.jamfsoftware.com/mailman/listinfo/casper




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.jamfsoftware.com/pipermail/casper/attachments/20090114/4f7f75c5/attachment.html 


More information about the Casper mailing list