Changeset 81558


Ignore:
Timestamp:
Aug 1, 2011, 10:05:00 PM (9 years ago)
Author:
jeremyhu@…
Message:

Lion: Hide new users from Users & Groups preference pane. #30168

Location:
trunk/base
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/portmgr/dmg/postflight

    r81467 r81558  
    148148        done
    149149        ${DSCL} -q . -create /Users/${RUNUSR} UniqueID $NEXTUID
     150
     151        # These are implicitly added on Mac OSX Lion.  AuthenticationAuthority
     152        # causes the user to be visible in the Users & Groups Preference Pane,
     153        # and the others are just noise, so delete them.
     154        # https://trac.macports.org/ticket/30168
     155        ${DSCL} -q . -delete /Users/${RUNUSR} AuthenticationAuthority
     156        ${DSCL} -q . -delete /Users/${RUNUSR} PasswordPolicyOptions
     157        ${DSCL} -q . -delete /Users/${RUNUSR} dsAttrTypeNative:KerberosKeys
     158        ${DSCL} -q . -delete /Users/${RUNUSR} dsAttrTypeNative:ShadowHashData
     159
    150160        ${DSCL} -q . -create /Users/${RUNUSR} RealName MacPorts
    151161        ${DSCL} -q . -create /Users/${RUNUSR} Password \*
  • trunk/base/src/port1.0/portutil.tcl

    r81119 r81558  
    20972097    if {${os.platform} eq "darwin"} {
    20982098        set dscl [findBinary dscl $portutil::autoconf::dscl_path]
     2099        exec $dscl . -create /Users/${name} UniqueID ${uid}
     2100
     2101        # These are implicitly added on Mac OSX Lion.  AuthenticationAuthority
     2102        # causes the user to be visible in the Users & Groups Preference Pane,
     2103        # and the others are just noise, so delete them.
     2104        # https://trac.macports.org/ticket/30168
     2105        exec $dscl . -delete /Users/${name} AuthenticationAuthority
     2106        exec $dscl . -delete /Users/${name} PasswordPolicyOptions
     2107        exec $dscl . -delete /Users/${name} dsAttrTypeNative:KerberosKeys
     2108        exec $dscl . -delete /Users/${name} dsAttrTypeNative:ShadowHashData
     2109
     2110        exec $dscl . -create /Users/${name} RealName ${realname}
    20992111        exec $dscl . -create /Users/${name} Password ${passwd}
    2100         exec $dscl . -create /Users/${name} UniqueID ${uid}
    21012112        exec $dscl . -create /Users/${name} PrimaryGroupID ${gid}
    2102         exec $dscl . -create /Users/${name} RealName ${realname}
    21032113        exec $dscl . -create /Users/${name} NFSHomeDirectory ${home}
    21042114        exec $dscl . -create /Users/${name} UserShell ${shell}
Note: See TracChangeset for help on using the changeset viewer.