Mac添加用户

2020-05-21  本文已影响0人  踩着阳光

参考文章:https://www.jianshu.com/p/a0e61f65d539

添加用户rdguest,密码rdguest,命令如下:

sudo dscl . -create /Users/rdguest

sudo dscl . -create /Users/rdguest UserShell /bin/bash

sudo dscl . -create/Users/rdguest RealName "rdguest"

sudo dscl . -create /Users/rdguest UniqueID "503"

sudo dscl . -create /Users/rdguest PrimaryGroupID 20

sudo dscl . -create /Users/rdguest NFSHomeDirectory /Users/rdguest

sudo dscl . -append /Groups/staff GroupMembership rdguest

sudo dscl . -passwd /Users/rdguest rdguest

上一篇 下一篇

猜你喜欢

热点阅读