[Casper] lpadmin script
Thomas Larkin
tlarki at kckps.org
Tue Jul 28 14:16:07 PDT 2009
It seems that script requires a password, which means you can put the
password in there but you would then be putting the password in your log
files which is not a good thing.
I am not sure exactly the best work around for this. I would go with
the MCX method or with the Casper Admin and Self Service methods.
___________________________
Thomas Larkin
TIS Department
KCKPS USD500
tlarki at kckps.org
blackberry: 913-449-7589
office: 913-627-0351
>>> "Nguyen, Tommy" <Tommy.Nguyen at raytownschools.org> 07/28/09 4:09 PM
>>>
Thank you guys for your help, I think I’m going to try out the MCX and
see if that would work.
Here is the script logs.
/usr/sbin/jamf is version 7.0
Executing Policy Lpadmin mobile...
Downloading http://10.8.10.134:80/APPSOSX/Scripts//lpadmin mobile.sh...
Running Script lpadmin mobile.sh...
Script Exit Code:255
Script Result: Please enter user password:
Authentication failed.
Running Recon...
Thanks,
Tommy Nguyen
From:
Thomas Larkin [mailto:tlarki at kckps.org]
Sent: Tuesday, July 28, 2009 3:57 PM
To: Steve Wood
Cc: casper at list.jamfsoftware.com; Nguyen, Tommy
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
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>
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> 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.
_______________________________________________
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/20090728/e524ce9d/attachment.htm
More information about the Casper
mailing list