Bloc de code:
mbp-de-fofana:~ fofana$ sudo rm -f /private/var/db/dslocal/nodes/Default/users/macbook.plist ; sudo ls /private/var/db/dslocal/nodes/Default/users
Password:
_amavisd.plist _fpsd.plist _ondemand.plist
_analyticsd.plist _ftp.plist _postfix.plist
_appleevents.plist _gamecontrollerd.plist _postgres.plist
_applepay.plist _geod.plist _qtss.plist
_appowner.plist _hidd.plist _sandbox.plist
_appserver.plist _iconservices.plist _screensaver.plist
_appstore.plist _installassistant.plist _scsd.plist
_ard.plist _installer.plist _securityagent.plist
_assetcache.plist _jabber.plist _serialnumberd.plist
_astris.plist _kadmin_admin.plist _softwareupdate.plist
_atsserver.plist _kadmin_changepw.plist _spotlight.plist
_avbdeviced.plist _krb_anonymous.plist _sshd.plist
_calendar.plist _krb_changepw.plist _svn.plist
_captiveagent.plist _krb_kadmin.plist _taskgated.plist
_ces.plist _krb_kerberos.plist _teamsserver.plist
_clamav.plist _krb_krbtgt.plist _timed.plist
_cmiodalassistants.plist _krbfast.plist _timezone.plist
_coreaudiod.plist _krbtgt.plist _tokend.plist
_coremediaiod.plist _launchservicesd.plist _trustevaluationagent.plist
_ctkd.plist _lda.plist _unknown.plist
_cvmsroot.plist _locationd.plist _update_sharing.plist
_cvs.plist _lp.plist _usbmuxd.plist
_cyrus.plist _mailman.plist _uucp.plist
_datadetectors.plist _mbsetupuser.plist _warmd.plist
_devdocs.plist _mcxalr.plist _webauthserver.plist
_devicemgr.plist _mdnsresponder.plist _windowserver.plist
_displaypolicyd.plist _mobileasset.plist _www.plist
_distnote.plist _mysql.plist _wwwproxy.plist
_dovecot.plist _netbios.plist _xserverdocs.plist
_dovenull.plist _netstatistics.plist daemon.plist
_dpaudio.plist _networkd.plist fofana.plist
_eppc.plist _nsurlsessiond.plist nobody.plist
_findmydevice.plist _nsurlstoraged.plist root.plist
Bloc de code:
mbp-de-fofana:~ fofana$ sudo ls /private/var/db/dslocal/nodes/Default/users | sed '/^_/ d'
daemon.plist
fofana.plist
nobody.plist
root.plist
mbp-de-fofana:~ fofana$ diskutil listUsers / | grep -v '.*[\^\_\].*'
USERS
-----
Disk: disk1
Volume: Macintosh HD
Mountpoint: /
UID Short Name Long Name
------------------------------------------------------------------------
1 daemon System Services
501 fofana fofana
-2 nobody Unprivileged User
0 root System Administrator
mbp-de-fofana:~ fofana$ dscl . -list /Users home | grep -v '.*[\^\_\].*'
daemon /var/root
fofana /Users/fofana
nobody /var/empty
root /var/root
mbp-de-fofana:~ fofana$ sudo du -sh /Users/*
4,0K /Users/Guest
455M /Users/Shared
347M /Users/fofana
42G /Users/macbook
4,0K /Users/wtmp
mbp-de-fofana:~ fofana$
Dernière édition par un modérateur: