Macos: Difference between revisions

From Halfface
Jump to navigation Jump to search
(Created page with "=create user with admin privilages= dscl . -create /Users/abjorklund dscl . -create /Users/abjorklund UserShell /bin/bash dscl . -create /Users/abjorklund RealName "Andreas...")
 
Line 5: Line 5:
  dscl . -create /Users/abjorklund UniqueID 1001
  dscl . -create /Users/abjorklund UniqueID 1001
  dscl . -create /Users/abjorklund PrimaryGroupID 1000
  dscl . -create /Users/abjorklund PrimaryGroupID 1000
  dscl . -create /Users/abjorklund NFSHomeDirectory /Local/Users/abjorklund/
  dscl . -create /Users/abjorklund NFSHomeDirectory /Users/abjorklund/
  dscl . -passwd /Users/abjorklund password
  dscl . -passwd /Users/abjorklund password
  dscl . -append /Groups/admin GroupMembership abjorklund
  dscl . -append /Groups/admin GroupMembership abjorklund

Revision as of 10:53, 27 October 2019

create user with admin privilages

dscl . -create /Users/abjorklund
dscl . -create /Users/abjorklund UserShell /bin/bash
dscl . -create /Users/abjorklund RealName "Andreas Bjorklund"
dscl . -create /Users/abjorklund UniqueID 1001
dscl . -create /Users/abjorklund PrimaryGroupID 1000
dscl . -create /Users/abjorklund NFSHomeDirectory /Users/abjorklund/
dscl . -passwd /Users/abjorklund password
dscl . -append /Groups/admin GroupMembership abjorklund