我知道有诸如“ Staff”和“ Admin”之类的组名,但是只有这些吗?我怀疑root用户也应该被分组。使用该命令可以dscacheutil -q user
告诉我root的编号-0。如果用户帐户是admin,则不是在“ Admin”和“ Staff”组中吗?
通过运行命令ls -la /Users
,我得到以下输出:
Nicholass-MacBook:~ Ee$ ls -la /Users
total 32
drwxr-xr-x 12 root admin 408 Nov 3 15:11 .
drwxr-xr-x@ 35 root wheel 1258 Oct 29 20:21 ..
-rw-r--r--@ 1 root admin 12292 Oct 27 09:02 .DS_Store
-rw-r--r-- 1 root wheel 0 Aug 25 16:58 .localized
drwxrwx--- 5 root admin 170 Nov 3 08:00 Deleted Users
drwxr-xr-x+ 21 Ee staff 714 Nov 3 08:06 Ee
drwx------+ 84 root admin 2856 Oct 26 06:49 Ee (Deleted)
drwxr-xr-x+ 11 EeJ staff 374 Nov 3 15:07 EeJ
drwxr-xr-x+ 14 900 admin 476 Oct 24 2012 Ee******** (Deleted)
drwxr-xr-x 3 root admin 102 Oct 27 06:50 Old Ee (frm Snow Leopard)
drwxr-xr-x+ 11 ParAcnt staff 374 Nov 3 15:11 ParAcnt
drwxrwxrwt 6 root wheel 204 Nov 1 18:18 Shared