[Casper] lpadmin script

Alan Benedict abenedict at integer.com
Wed Jul 29 07:12:34 PDT 2009


If one did want to put the password in the script for testing, where would I
put it?  I tried putting the password on the next line in the script, but it
throws an error when the script is run because it tries to run the password
as a command.
--
Alan Benedict

Macintosh Technician
The Integer Group
O: 515-247-2738
C: 515-770-8234
http://www.integer.com



*From:* casper-bounces at list.jamfsoftware.com [mailto:
> casper-bounces at list.jamfsoftware.com] *On Behalf Of *Thomas Larkin
> *Sent:* Tuesday, July 28, 2009 1:57 PM
> *To:* Steve Wood
> *Cc:* Tommy Nguyen; <casper at list.jamfsoftware.com>
> casper at list.jamfsoftware.com
> *Subject:* Re: [Casper] lpadmin script
>
>
>
> Steve,
>
>
>
> Would you please extrapolate on this?  As I am going to migrate to version
> 7 here really soon and would love to just push out MCX instead.
>
>
>
> Thanks
>
>
>
> Tom
>
> >>> Steve Wood <swood at integer.com> 07/28/09 3:51 PM >>>
> And, if you are using Casper 7 you can now push an MCX pref to not require
> admin privs to add printers.
>
> Steve Wood
> Director of IT
>  <swood at integer.com>swood at integer.com
>
> The Integer Group | 1999 Bryan St. | Ste. 1700 | Dallas, TX 75201
> T 214.758.6813 | F 214.758.6901 | C 940.312.2475
>
>  On Tue, Jul 28, 2009 at 3:30 PM, Thomas Larkin
>
> < <tlarki at kckps.org>tlarki at kckps.org>
>
> wrote:
>
>  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>
> 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>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.
>
>
> _______________________________________________
> Casper mailing list
>  <Casper at list.jamfsoftware.com>Casper at list.jamfsoftware.com
>  <http://list.jamfsoftware.com/mailman/listinfo/casper>
> http://list.jamfsoftware.com/mailman/listinfo/casper
>
>
>
> _______________________________________________
> Casper mailing list
> Casper at list.jamfsoftware.com
> http://list.jamfsoftware.com/mailman/listinfo/casper
>
>
> _______________________________________________
> 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/20090729/1d83e0b2/attachment.html 


More information about the Casper mailing list