<html>
  <head>
    <style type="text/css">
      <!--
        body { font-variant: normal; margin-left: 4px; margin-bottom: 1px; margin-top: 4px; margin-right: 4px; line-height: normal }
        p { margin-bottom: 0; margin-top: 0 }
      -->
    </style>
    
  </head>
  <body>
    <p style="margin-top: 0; margin-bottom: 0">
      <font size="3" face="Lucida Grande">That is what I thought but wasn&#39;t 100&#37; on it. &nbsp;Everyone is part of staff &#40;20&#41; but this is reading it off the directory LDAP. &nbsp;So&#44; if a user goes into System Preferences&#44; and checks the box that says allow this user to administer this computer on their mobile account&#44; will it add the admin group&#44; or will it list the user under /Groups/admin on the machine locally&#63;</font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <font size="3" face="Lucida Grande">As far as I can tell it doesn&#39;t do either. &nbsp;When I invoke the dscl command it lists no one under the /Groups/admin on that machine locally. &nbsp;When I run the id command on a user it pulls up their info from LDAP&#44; not the local machine.</font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <font size="3" face="Lucida Grande">I guess is what I am trying to get to the bottom of is&#44; how do I tell if a user has checked the box to flag them as an administrator for just that machine in System Preferences&#63; &nbsp;Perhaps that is why I am getting the double entries in the JSS inventory&#63; &nbsp;</font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <font size="3" face="Lucida Grande">Thoughts&#63;</font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <font size="3" face="Lucida Grande">Thanks again for reading and helping with this&#44;</font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <font size="3" face="Lucida Grande">Tom</font><br><br>&gt;&gt;&gt; &quot;Miles Leacy&quot; &lt;miles.leacy@themacadmin.com&gt; 12/10/08 3:06 PM &gt;&gt;&gt;<br>I don&#39;t know if I&#39;m misunderstanding your message&#44; but it sounds like you&#39;re saying that membership in admin &#40;80&#41; is inherited by membership in staff &#40;20&#41;.    </p>
    <div http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p style="margin-top: 0; margin-bottom: 0">
        <br>
              </p>
    </div>
    <div>
      <p style="margin-top: 0; margin-bottom: 0">
        I don&#39;t believe that&#39;s the case.&nbsp;&#160;All accounts are members of staff by default.&nbsp;&#160;Only admin users are members of admin.&nbsp;&#160;An account can be a member of staff but not be a member of admin.      </p>
    </div>
    <div>
      <p style="margin-top: 0; margin-bottom: 0">
        <br>
              </p>
    </div>
    <div>
      <p style="margin-top: 0; margin-bottom: 0">
        The output is showing you the following:      </p>
    </div>
    <div>
      <p style="margin-top: 0; margin-bottom: 0">
        uid&#61;&lt;the account&#39;s user ID&gt; gid&#61;&lt;the account&#39;s &quot;primary group ID&quot;&#44; as seen in Workgroup Manager&#44; Groups tab&gt; &#35; What follows is a list of all of the groups that the account in question belongs to&#44; including the &quot;primary group&quot;.&nbsp;&#160;This is why you see &quot;staff&quot; appear twice in the command&#39;s output.&nbsp;&#160;The first instance lets you know what the account&#39;s &quot;primary group&quot; is&#44; and it appears again when listing all groups that the account is a member of.      </p>
    </div>
    <div>
      <p style="margin-top: 0; margin-bottom: 0">
        <br>
              </p>
    </div>
    <div>
      <p style="margin-top: 0; margin-bottom: 0">
        My apologies if I misunderstood your message.      </p>
    </div>
    <div>
      <p style="margin-top: 0; margin-bottom: 0">
        <br>
        ----------<br>Miles A. Leacy IV<br><br>&#63743; Certified System Administrator 10.4<br>&#63743; Certified Technical Coordinator 10.5<br>&#63743; Certified Trainer<br>Certified Casper Administrator<br>----------<br>voice: 1-347-277-7321<br><a href="mailto:miles.leacy@themacadmin.com">miles.leacy@themacadmin.com</a><br><a href="http://www.themacadmin.com">www.themacadmin.com</a><br><br><br><br><br>      </p>
      <div class="gmail_quote">
        <p style="margin-top: 0; margin-bottom: 0">
          2008/12/10 Ryan Harter        </p>
        <div dir="ltr">
          <p style="margin-top: 0; margin-bottom: 0">
            &lt;<a href="mailto:rharter@uwsp.edu">rharter@uwsp.edu</a>&gt;          </p>
        </div>
        <p style="margin-top: 0; margin-bottom: 0">
          <br>
                  </p>
        <blockquote style="border-left: 1px #ccc solid; margin-left: 0; margin-bottom: 0; margin-top: 0; margin-right: 0; padding-left: 0" class="gmail_quote">
          <div>
            <p style="margin-top: 0; margin-bottom: 0">
              _lpadmin is the CUPS account that correlates to the lpadmin command you find in the terminal.&nbsp;&#160;I can&#39;t tell you why this account is showing up twice&#44; but since it is a member for the staff group that should make it admin.&nbsp;&#160;Our local amdinistrator account is uid&#61;501&#40;adm&#41; gid&#61;20&#40;staff&#41; ...            </p>
            <div>
              <p style="margin-top: 0; margin-bottom: 0">
                <br>
                              </p>
            </div>
            <div>
              <p style="margin-top: 0; margin-bottom: 0">
                AFAIK the user is not directly a member of the admin group&#44; but staff is&#44; so it&#39;s like embedded groups.<br>              </p>
              <div>
                <div style="text-transform: none; font-variant: normal; color: rgb(0, 0, 0); letter-spacing: normal; text-align: auto; word-spacing: 0px; white-space: normal; text-indent: 0px; font-size: 12px; font-weight: normal; font-style: normal; font-family: Helvetica; line-height: normal">
                  <div style="margin-left: 0px; margin-bottom: 0px; margin-top: 0px; margin-right: 0px">
                    <p style="margin-top: 0; margin-bottom: 0">
                      <b style="color: rgb(135, 118, 179); font-size: 14px; font-weight: bold"><font size="4" color="#8776B3"><br style="color: rgb(135, 118, 179); font-weight: bold; font-size: 14px">
                      Ryan Harter</font></b>                    </p>
                  </div>
                  <div style="margin-left: 0px; margin-bottom: 0px; margin-top: 0px; margin-right: 0px">
                    <p style="margin-top: 0; margin-bottom: 0">
                      <font size="2" color="#8776B3">UW - Stevens Point</font>                    </p>
                  </div>
                  <div style="margin-left: 0px; margin-bottom: 0px; margin-top: 0px; margin-right: 0px">
                    <p style="margin-top: 0; margin-bottom: 0">
                      <font size="2" color="#8776B3">Workstation Developer</font>                    </p>
                  </div>
                  <div style="margin-left: 0px; margin-bottom: 0px; margin-top: 0px; margin-right: 0px">
                    <p style="margin-top: 0; margin-bottom: 0">
                      <font size="2" color="#8776B3">715.346.2716</font>                    </p>
                  </div>
                  <div style="margin-left: 0px; margin-bottom: 0px; margin-top: 0px; margin-right: 0px">
<br>                      
                    <div style="color: rgb(0, 0, 238)">
                      <p style="margin-top: 0; margin-bottom: 0">
                        Ryan.Harter@uwsp.edu                      </p>
                    </div>
                  </div>
                </div>
              </div>
              <p style="margin-top: 0; margin-bottom: 0">
                <br>
                              </p>
              <div>
                <div>
                  <div>
<br>                      
                  </div>
                  <div class="wj3c7c">
                    <div>
                      <p style="margin-top: 0; margin-bottom: 0">
                        On Dec 10&#44; 2008&#44; at 2:08 PM&#44; Thomas Larkin wrote:                      </p>
                    </div>
                    <p style="margin-top: 0; margin-bottom: 0">
                      <br>
                                          </p>
                  </div>
                </div>
                <blockquote type="cite">
                  <div style="text-transform: none; font-variant: normal; color: rgb(0, 0, 0); letter-spacing: normal; text-align: auto; word-spacing: 0px; white-space: normal; text-indent: 0px; font-size: 12px; font-weight: normal; font-style: normal; font-family: Helvetica; line-height: normal">
                    <div style="font-variant: normal; margin-left: 4px; margin-bottom: 1px; margin-top: 4px; margin-right: 4px; line-height: normal">
                      <div>
                        <div>
<br>                            
                        </div>
                        <div class="wj3c7c">
                          <div style="margin-bottom: 0px; margin-top: 0px">
                            <p style="margin-top: 0; margin-bottom: 0">
                              <font size="3" face="Lucida Grande">everyone&#44;</font>                            </p>
                          </div>
                          <p style="margin-top: 0; margin-bottom: 0">
                            <br>
                                                      </p>
                          <div style="margin-bottom: 0px; margin-top: 0px">
                            <p style="margin-top: 0; margin-bottom: 0">
                              <font size="3" face="Lucida Grande">So a user has a true flag under their account in the JSS for the inventory of that machine&#44; I will just copy/paste an example&#44; sorry if it doesn&#39;t format correctly.</font>                            </p>
                          </div>
                          <p style="margin-top: 0; margin-bottom: 0">
                            <br>
                                                      </p>
                          <div style="margin-bottom: 0px; margin-top: 0px">
                            <p style="margin-top: 0; margin-bottom: 0">
                              <font size="3" face="Lucida Grande">User in the JSS shows this:</font>                            </p>
                          </div>
                          <div style="margin-bottom: 0px; margin-top: 0px">
                            <p style="margin-top: 0; margin-bottom: 0">
                              <font size="3" face="Lucida Grande">Username</font>                            </p>
                          </div>
                          <div style="margin-bottom: 0px; margin-top: 0px">
                            <p style="margin-top: 0; margin-bottom: 0">
                              <font size="3" face="Lucida Grande">Real Name</font>                            </p>
                          </div>
                          <div style="margin-bottom: 0px; margin-top: 0px">
                            <p style="margin-top: 0; margin-bottom: 0">
                              <font size="3" face="Lucida Grande">UID</font>                            </p>
                          </div>
                          <div style="margin-bottom: 0px; margin-top: 0px">
                            <p style="margin-top: 0; margin-bottom: 0">
                              <font size="3" face="Lucida Grande">Home Directory</font>                            </p>
                          </div>
                          <div style="margin-bottom: 0px; margin-top: 0px">
                            <p style="margin-top: 0; margin-bottom: 0">
                              <font size="3" face="Lucida Grande">Home Directory Size</font>                            </p>
                          </div>
                          <div style="margin-bottom: 0px; margin-top: 0px">
                            <p style="margin-top: 0; margin-bottom: 0">
                              <font size="3" face="Lucida Grande">Admin</font>                            </p>
                          </div>
                          <div style="margin-bottom: 0px; margin-top: 0px">
                            <p style="margin-top: 0; margin-bottom: 0">
                              <font size="3" face="Lucida Grande">File Vault Enabled</font>                            </p>
                          </div>
                          <div style="margin-bottom: 0px; margin-top: 0px">
                            <p style="margin-top: 0; margin-bottom: 0">
                              <font size="3" face="Lucida Grande">Mia Green 22221 /Users/11miagre 5.28 GB true false</font>                            </p>
                          </div>
                          <div style="margin-bottom: 0px; margin-top: 0px">
                            <p style="margin-top: 0; margin-bottom: 0">
                              <font size="3" face="Lucida Grande">11miagre Mia Green 22221 /Users/11miagre 5.28 GB false false</font>                            </p>
                          </div>
                          <div style="margin-bottom: 0px; margin-top: 0px">
                            <p style="margin-top: 0; margin-bottom: 0">
                              <font size="3" face="Lucida Grande">student KCK Student 505 /Local/Users/student N/A false false</font>                            </p>
                          </div>
                          <p style="margin-top: 0; margin-bottom: 0">
                            <br>
                                                      </p>
                          <div style="margin-bottom: 0px; margin-top: 0px">
                            <p style="margin-top: 0; margin-bottom: 0">
                              <font size="3" face="Lucida Grande">For some reason it shows the user name twice and on the top one it says True False&#44; the First True being the admin flag</font>                            </p>
                          </div>
                          <p style="margin-top: 0; margin-bottom: 0">
                            <br>
                                                      </p>
                          <div style="margin-bottom: 0px; margin-top: 0px">
                            <p style="margin-top: 0; margin-bottom: 0">
                              <font size="3" face="Lucida Grande">Now&#44; when I ssh into said client machine and do some digging I find this:</font>                            </p>
                          </div>
                          <p style="margin-top: 0; margin-bottom: 0">
                            <br>
                                                      </p>
                          <div style="margin-bottom: 0px; margin-top: 0px">
                            <p style="margin-top: 0; margin-bottom: 0">
                              <font size="3" face="Lucida Grande">&#160;id 11miagre</font>                            </p>
                          </div>
                          <div style="margin-bottom: 0px; margin-top: 0px">
                            <p style="margin-top: 0; margin-bottom: 0">
                              <font size="3" face="Lucida Grande">uid&#61;22221&#40;11miagre&#41; gid&#61;20&#40;staff&#41; groups&#61;20&#40;staff&#41;&#44;98&#40;_lpadmin&#41;&#44;101&#40;com.apple.sharepoint.group.1&#41;&#44;104&#40;com.apple.sharepoint.group.2&#41;&#44;1042&#40;allstudents&#41;&#44;1053&#40;washington_2011&#41;</font>                            </p>
                          </div>
                          <p style="margin-top: 0; margin-bottom: 0">
                            <br>
                                                      </p>
                          <div style="margin-bottom: 0px; margin-top: 0px">
                            <p style="margin-top: 0; margin-bottom: 0">
                              <font size="3" face="Lucida Grande">GID 98 shows as _lpadmin what the heck is that&#63;&nbsp;&#160;Google says it configures the print system&#44; so I must assume it is a daemon from the OS&#63;&nbsp;&#160;</font>                            </p>
                          </div>
                          <p style="margin-top: 0; margin-bottom: 0">
                            <br>
                                                      </p>
                          <div style="margin-bottom: 0px; margin-top: 0px">
                            <p style="margin-top: 0; margin-bottom: 0">
                              <font size="3" face="Lucida Grande">Anyone else see this stuff&#63;&nbsp;&#160;Also dscl does not list this user under /Groups/admin either</font>                            </p>
                          </div>
                          <p style="margin-top: 0; margin-bottom: 0">
                            <br>
                                                      </p>
                          <div style="margin-bottom: 0px; margin-top: 0px">
                            <p style="margin-top: 0; margin-bottom: 0">
                              <font size="3" face="Lucida Grande">Thanks</font>                            </p>
                          </div>
                          <p style="margin-top: 0; margin-bottom: 0">
                            <br>
                            ___________________________<br>Thomas&#160;Larkin<br>TIS&#160;Department<br>KCKPS&#160;USD500<br><a target="_blank" href="mailto:tlarki@kckps.org">tlarki@kckps.org</a><br>blackberry:&#160;&#160;913-449-7589<br>office:&#160;&#160;913-627-0351<br><br><br><br><br><br>                          </p>
                        </div>
                      </div>
                      <div>
                        <p style="margin-top: 0; margin-bottom: 0">
                          &lt;ATT00001.txt&gt;                        </p>
                      </div>
                    </div>
                  </div>
                </blockquote>
              </div>
              <p style="margin-top: 0; margin-bottom: 0">
                <br>
                              </p>
            </div>
          </div>
          <p style="margin-top: 0; margin-bottom: 0">
            <br>
            _______________________________________________<br>Casper mailing list<br><a href="mailto:Casper@list.jamfsoftware.com">Casper@list.jamfsoftware.com</a><br><a target="_blank" href="http://list.jamfsoftware.com/mailman/listinfo/casper">http://list.jamfsoftware.com/mailman/listinfo/casper</a><br><br>          </p>
        </blockquote>
      </div>
      <p style="margin-top: 0; margin-bottom: 0">
        <br>
      </p>
    </div>
  </body>
</html>