天天看点

Mac,获得用户uid

因为要在虚拟的mac上安装vmware tools后修改VMware tools的services.sh文件:

mount -t vmhgfs -o uid=<XXX> .host:/ '/Volumes/Shared Folders'

XXX是用户的uid,可以通过下面命令查看机器所有用户uid:

dscl . -list /Users UniqueID

继续阅读