Exactement, une seule session invité et rien d’autre...Tu n'as qu'un utilisateur invité affiché et pas ton nom d'utilisateur principal ?
Exactement, une seule session invité et rien d’autre...Tu n'as qu'un utilisateur invité affiché et pas ton nom d'utilisateur principal ?
Oui je peux redémarrer mais quand je le fais ca me remet la même choseBon. Est-ce que tu as une option de redémarrage ou non ?
YesEn plus l'écran d'ouverture de session est en Anglais.
Presse le bouton : "Restart" (redémarrer) > et tiens aussitôt les 2 touches ⌘R (cmd R) pressées -->
- est-ce que tu vois s'afficher une > une barre de chargement > et est-ce que tu obtiens l'écran d'une session de secours affichant une fenêtre de 4 Utilitaires macOS ?
diskutil list
-bash-3.2# diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk2 499.8 GB disk0s2
/dev/disk1 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +2.1 GB disk1
1: Apple_HFS macOS Base System 2.0 GB disk1s1
/dev/disk2 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +499.8 GB disk2
Physical Store disk0s2
1: APFS Volume Macintosh HD 69.1 GB disk2s1
2: APFS Volume Preboot 21.1 MB disk2s2
3: APFS Volume Recovery 506.8 MB disk2s3
4: APFS Volume VM 2.1 GB disk2s4
/dev/disk3 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *1.0 TB disk3
1: Windows_NTFS Disque Dur 1.0 TB disk3s1
/dev/disk4 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +5.2 MB disk4
/dev/disk5 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk5
/dev/disk6 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk6
/dev/disk7 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk7
/dev/disk8 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk8
/dev/disk9 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk9
/dev/disk10 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk10
/dev/disk11 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +12.6 MB disk11
/dev/disk12 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +4.2 MB disk12
/dev/disk13 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +1.0 MB disk13
/dev/disk14 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk14
/dev/disk15 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk15
/dev/disk16 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk16
/dev/disk17 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +1.0 MB disk17
/dev/disk18 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk18
/dev/disk19 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +6.3 MB disk19
/dev/disk20 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +6.3 MB disk20
/dev/disk21 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk21
/dev/disk22 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk22
-bash-3.2#
rm /Volumes/"Macintosh HD"/var/db/.AppleSetupDone
sudo ls /private/var/db/dslocal/nodes/Default/users | sed '/^_/ d'
diskutil listUsers / | grep -v '.*[\^\_\].*'
dscl . -list /Users home | grep -v '.*[\^\_\].*'
sudo du -sh /Users/*
Last login: Mon Jul 1 11:51:20 on console
MBPdeStanislas:~ toto$ sudo ls /private/var/db/dslocal/nodes/Default/users | sed '/^_/ d'
sudo: /etc/sudoers is owned by uid 1, should be 0
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
MBPdeStanislas:~ toto$ diskutil listUsers / | grep -v '.*[\^\_\].*'
USERS
-----
Disk: disk1s1
Volume: Macintosh HD
Mountpoint: /
UID Short Name Long Name
------------------------------------------------------------------------
501 toto toto
-2 nobody Unprivileged User
201 Guest Guest User
0 root System Administrator
1 daemon System Services
MBPdeStanislas:~ toto$ dscl . -list /Users home | grep -v '.*[\^\_\].*'
daemon /var/root
Guest /Users/Guest
nobody /var/empty
root /var/root
toto /Users/toto
MBPdeStanislas:~ toto$ sudo du -sh /Users/*
sudo: /etc/sudoers is owned by uid 1, should be 0
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
MBPdeStanislas:~ toto$
chown 0:0 /Volumes/"Macintosh HD"/etc/sudoers
csrutil disable
sudo ls /private/var/db/dslocal/nodes/Default/users | sed '/^_/ d'
sudo du -sh /Users/*
-bash-3.2# chown 0:0 /Volumes/"Macinstosh HD"/etc/sudoers
chown: /Volumes/Macinstosh HD/etc/sudoers: No such file or directory
-bash-3.2#