No subject
Fri Jul 24 08:18:09 PDT 2009
dseditgroup -o edit -n /Local/Default -u admin -p <adminpassword> -a
printerusers -t group lpadmin
Mobile user:
dseditgroup -o edit -n /Local/Default -u admin -p <adminpassword> -a studen=
t
-t user lpadmin
Thomas
- in the JSS in 7 you can now create MCX preferences to push out. And
not to be a goob about it, but starting on page 302 of the Casper 7
manual, they lay out everything about Managed Preferences. It is
fairly simple to do, and during the creation of the profile you give
that MCX pref a scope of machines to work on.
Make sense?
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 Wed, Jul 29, 2009 at 9:12 AM, Alan Benedict <abenedict at integer.com>wrote=
:
> If one did want to put the password in the script for testing, where woul=
d
> I put it? I tried putting the password on the next line in the script, b=
ut
> it throws an error when the script is run because it tries to run the
> password as a command.
> --
> Alan Benedict
> =EF=A3=BF
> 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 versi=
on
>> 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 requi=
re
>> 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 w=
ant
>> them to install.
>>
>>
>>
>> I looked at that hint and it only allows the "add printer app" to run, a=
nd
>> 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=E2=80=99t have rights to add pr=
inters.
>>
>> 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
>>
>>
>
> _______________________________________________
> Casper mailing list
> Casper at list.jamfsoftware.com
> http://list.jamfsoftware.com/mailman/listinfo/casper
>
>
--0016e640876815654b046fd93b6d
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
You would use the "-p" flag in the dseditgroup command and put th=
e password right after it.<div><br></div><div>From the Apple article, netwo=
rk user:</div><div><br></div><div>dseditgroup -o edit -n /Local/Default -u =
admin -p <adminpassword> -a printerusers -t group lpadmin</div>
<div><br></div><div>Mobile user:</div><div><br></div><div>dseditgroup -o ed=
it -n /Local/Default -u admin -p <adminpassword> -a student -t user l=
padmin</div><div><br></div><div><br></div><div>Thomas -=C2=A0in=C2=A0the=C2=
=A0JSS=C2=A0in=C2=A07=C2=A0you=C2=A0can=C2=A0now=C2=A0create=C2=A0MCX=C2=A0=
preferences=C2=A0to=C2=A0push=C2=A0out.=C2=A0=C2=A0And=C2=A0not=C2=A0to=C2=
=A0be=C2=A0a=C2=A0goob=C2=A0about=C2=A0it,=C2=A0but=C2=A0starting=C2=A0on=
=C2=A0page=C2=A0302=C2=A0of=C2=A0the=C2=A0Casper=C2=A07=C2=A0manual,=C2=A0t=
hey=C2=A0lay=C2=A0out=C2=A0everything=C2=A0about=C2=A0Managed=C2=A0Preferen=
ces.=C2=A0=C2=A0It=C2=A0is=C2=A0fairly=C2=A0simple=C2=A0to=C2=A0do,=C2=A0an=
d=C2=A0during=C2=A0the=C2=A0creation=C2=A0of=C2=A0the=C2=A0profile=C2=A0you=
=C2=A0give=C2=A0that=C2=A0MCX=C2=A0pref=C2=A0a=C2=A0scope=C2=A0of=C2=A0mach=
ines=C2=A0to=C2=A0work=C2=A0on.</div>
<div><br></div><div>Make=C2=A0sense?</div><div><br></div><div><br><div>Stev=
e Wood<br>Director of IT<br><a href=3D"mailto:swood at integer.com">swood at inte=
ger.com</a> <br><br>The Integer Group | 1999 Bryan St. | Ste. 1700 | Dallas=
, TX 75201 <br>
T 214.758.6813 | F 214.758.6901 | C 940.312.2475 <br>
<br><br><div class=3D"gmail_quote">On Wed, Jul 29, 2009 at 9:12 AM, Alan Be=
nedict <span dir=3D"ltr"><<a href=3D"mailto:abenedict at integer.com">abene=
dict at integer.com</a>></span> wrote:<br><blockquote class=3D"gmail_quote"=
style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
If one did want to put the password in the script for testing, where would =
I put it? =C2=A0I 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.<br clear=3D"all">
<font color=3D"#888888">
--<br>Alan Benedict<br>=EF=A3=BF<br>Macintosh Technician <br>The Integer Gr=
oup<br>O: 515-247-2738<br>C: 515-770-8234<br><a href=3D"http://www.integer.=
com" target=3D"_blank">http://www.integer.com</a></font><div><div></div><di=
v class=3D"h5">
<br><br>
<br><br><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgc=
olor=3D"#FFFFFF"><div><div><blockquote type=3D"cite"><div><div><div><div st=
yle=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in=
">
<p style=3D"margin:0in;margin-bottom:.0001pt"><b><span style=3D"font-size:1=
0.0pt">From:</span></b><span style=3D"font-size:10.0pt"> <a href=3D"mailto:=
casper-bounces at list.jamfsoftware.com" target=3D"_blank">casper-bounces at list=
.jamfsoftware.com</a>
[mailto:<a href=3D"mailto:casper-bounces at list.jamfsoftware.com" target=3D"_=
blank">casper-bounces at list.jamfsoftware.com</a>] <b>On Behalf Of </b>Thomas=
Larkin<br>
<b>Sent:</b> Tuesday, July 28, 2009 1:57 PM<br>
<b>To:</b> Steve Wood<br>
<b>Cc:</b> Tommy Nguyen; <a href=3D"mailto:casper at list.jamfsoftware.com" ta=
rget=3D"_blank"></a><a href=3D"mailto:casper at list.jamfsoftware.com" target=
=3D"_blank">casper at list.jamfsoftware.com</a><br>
<b>Subject:</b> Re: [Casper] lpadmin script</span></p>
</div>
</div>
<p>=C2=A0</p>
<p><span style=3D"font-family:"Lucida Grande","serif"">=
Steve,</span> </p>
<p style=3D"margin:0in;margin-bottom:.0001pt">=C2=A0</p>
<p><span style=3D"font-family:"Lucida Grande","serif"">=
Would you please
extrapolate on this? =C2=A0As I am going to migrate to version 7 here reall=
y
soon and would love to just push out MCX instead.</span> </p>
<p style=3D"margin:0in;margin-bottom:.0001pt">=C2=A0</p>
<p><span style=3D"font-family:"Lucida Grande","serif"">=
Thanks</span> </p>
<p style=3D"margin:0in;margin-bottom:.0001pt">=C2=A0</p>
<p style=3D"margin-bottom:12.0pt"><span style=3D"font-family:"Lucida G=
rande","serif"">Tom</span><br>
<br>
>>> Steve Wood <<a href=3D"mailto:swood at integer.com" target=3D"=
_blank">swood at integer.com</a>> 07/28/09 3:51 PM >>><br>
And, if you are using Casper 7 you can now push an MCX pref to not require
admin privs to add printers.<br clear=3D"all">
<br>
Steve Wood<br>
Director of IT<br>
<a href=3D"mailto:swood at integer.com" target=3D"_blank"></a><a href=3D"mailt=
o:swood at integer.com" target=3D"_blank">swood at integer.com</a><br>
<br>
The Integer Group=C2=A0|=C2=A01999 Bryan St.=C2=A0|=C2=A0Ste.
1700=C2=A0|=C2=A0Dallas, TX 75201<br>
T 214.758.6813=C2=A0|=C2=A0F 214.758.6901=C2=A0|=C2=A0C 940.312.2475<br>
<br>
</p>
<div>
<p>On Tue, Jul 28, 2009 at 3:30 PM, Thomas Larkin </p>
<div>
<p><<a href=3D"mailto:tlarki at kckps.org" target=3D"_blank"></a><a href=3D=
"mailto:tlarki at kckps.org" target=3D"_blank">tlarki at kckps.org</a>> </p>
</div>
<p>wrote:</p>
<blockquote style=3D"border:none;border-left:solid #CCCCCC 1.0pt;padding:0i=
n 0in 0in 0in;margin-left:0in;margin-right:0in">
<div>
<p><span style=3D"font-family:"Lucida Grande","serif"">=
Tommy</span> </p>
<p>=C2=A0</p>
<p><span style=3D"font-family:"Lucida Grande","serif"">=
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.</s=
pan>
</p>
<p>=C2=A0</p>
<p><span style=3D"font-family:"Lucida Grande","serif"">=
I looked at that hint and
it only allows the "add printer app" to run, and it won't all=
ow 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. </span></p>
<p>=C2=A0</p>
<p><span style=3D"font-family:"Lucida Grande","serif"">=
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 a=
s
root and not ask for the password.</span></p>
<p>=C2=A0</p>
<p><span style=3D"font-family:"Lucida Grande","serif"">=
-Tom</span> </p>
<p>=C2=A0</p>
<p><br>
>>> "Nguyen, Tommy" <<a href=3D"mailto:Tommy.Nguyen at r=
aytownschools.org" target=3D"_blank"></a><a href=3D"mailto:Tommy.Nguyen at ray=
townschools.org" target=3D"_blank">Tommy.Nguyen at raytownschools.org</a>>
07/28/09 3:21 PM >>></p>
<div>
<div>
<p style=3D"margin:0in;margin-bottom:.0001pt">=C2=A0</p>
</div>
<div>
<div>
<p>Hello, </p>
<p style=3D"margin:0in;margin-bottom:.0001pt">=C2=A0</p>
<p>Can someone help me figure this script out? I am trying to setup rights =
for
my network mobile users and they don=E2=80=99t have rights to add printers.=
</p>
<p>But I found some help from apple that would let local and network users =
to
add printers without being administrators. </p>
<p><a href=3D"http://support.apple.com/kb/HT3511" target=3D"_blank"></a><a =
href=3D"http://support.apple.com/kb/HT3511" target=3D"_blank">http://suppor=
t.apple.com/kb/HT3511</a>
</p>
<p style=3D"margin:0in;margin-bottom:.0001pt">=C2=A0</p>
<p>When you add them to the user group of lpadmin it would ask for password
from the command line. </p>
<p style=3D"margin:0in;margin-bottom:.0001pt">=C2=A0</p>
<p>dseditgroup -o edit -p -d admin -t group _lpadmin </p>
<p>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?) </p>
<p style=3D"margin:0in;margin-bottom:.0001pt">=C2=A0</p>
<p>Thank you in advanced. </p>
</div>
</div>
</div>
</div>
<p style=3D"margin-bottom:12.0pt"><br>
_______________________________________________<br>
Casper mailing list<br>
<a href=3D"mailto:Casper at list.jamfsoftware.com" target=3D"_blank"></a><a hr=
ef=3D"mailto:Casper at list.jamfsoftware.com" target=3D"_blank">Casper at list.ja=
mfsoftware.com</a><br>
<a href=3D"http://list.jamfsoftware.com/mailman/listinfo/casper" target=3D"=
_blank"></a><a href=3D"http://list.jamfsoftware.com/mailman/listinfo/casper=
" target=3D"_blank">http://list.jamfsoftware.com/mailman/listinfo/casper</a=
></p>
</blockquote>
</div>
<p>=C2=A0</p>
</div>
</div></blockquote><blockquote type=3D"cite"><div><span>___________________=
____________________________</span><br><span>Casper mailing list</span><br>=
<span><a href=3D"mailto:Casper at list.jamfsoftware.com" target=3D"_blank">Cas=
per at list.jamfsoftware.com</a></span><br>
<span><a href=3D"http://list.jamfsoftware.com/mailman/listinfo/casper" targ=
et=3D"_blank">http://list.jamfsoftware.com/mailman/listinfo/casper</a></spa=
n><br></div></blockquote></div></div></div><br>____________________________=
___________________<br>
Casper mailing list<br>
<a href=3D"mailto:Casper at list.jamfsoftware.com" target=3D"_blank">Casper at li=
st.jamfsoftware.com</a><br>
<a href=3D"http://list.jamfsoftware.com/mailman/listinfo/casper" target=3D"=
_blank">http://list.jamfsoftware.com/mailman/listinfo/casper</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
Casper mailing list<br>
<a href=3D"mailto:Casper at list.jamfsoftware.com">Casper at list.jamfsoftware.co=
m</a><br>
<a href=3D"http://list.jamfsoftware.com/mailman/listinfo/casper" target=3D"=
_blank">http://list.jamfsoftware.com/mailman/listinfo/casper</a><br>
<br></blockquote></div><br></div></div>
--0016e640876815654b046fd93b6d--
More information about the Casper
mailing list