[Casper] lpadmin script

Thomas Larkin tlarki at kckps.org
Tue Jul 28 13:30:22 PDT 2009


Tommy 

Ever think of adding printers in Casper Admin then adding them as a self
service install and limiting the scope of clients to what printers you
want them to install. 

I looked at that hint and it only allows the "add printer app" to run,
and it won't allow for users to add it via System Prefs.  Every user is
part of the _lpadmin group but I couldn't get it to work either really. 
 

Also are you running that as a log in hook?  Because casper will only
use $3 as the current user when using it as a log in hook.  If you run
it as a log in policy it should run as root and not ask for the
password.


-Tom 


>>> "Nguyen, Tommy" <Tommy.Nguyen at raytownschools.org> 07/28/09 3:21 PM
>>>

Hello, 
  
Can someone help me figure this script out? I am trying to setup rights
for my network mobile users and they don’t have rights to add printers. 
But I found some help from apple that would  let local and network users
to add printers without being administrators. 
http://support.apple.com/kb/HT3511 
  
When you add them to the user group of lpadmin it would ask for password
from the command line. 
  
dseditgroup -o edit -p -d admin -t group _lpadmin 
dseditgroup -o edit -n /Local/Default -u admin -p -a $3 -t user lpadmin 
(this line would ask for user of admin password, no idea where to add if
I put it in the script?) 
  
Thank you in advanced. 

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


More information about the Casper mailing list