Files
mkdocs/docs/macos/securite.md
2021-02-04 09:55:26 +01:00

49 lines
900 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Sécurité (Gatekeeper...)
#### Pour ajouter une application aux exceptions Gatekeepers et à la liste de lancement des applications approuvées:
```bash
$ spctl --add /Path/To/Application.app
```
#### Suppression d'une demande de la liste d'approbation du Gatekeeper:
```bash
$ spctl --remove /Path/To/Application.app
```
#### Pour désactiver complètement Gatekeeper:
```bash
$ sudo spctl --master-disable
```
#### Pour désactiver Gatekeeper pour certaines applications:
```bash
$ sudo xattr -rd com.apple.quarantine /Applications/LockedApp.app
```
# Sudo
#### Changer le délai d'expiration du mot de passe Sudo:
```bash
sudo visudo
```
Ajouter `Defaults timestamp_timeout=0` en dernière ligne, pour demander le mot-de-passe à chaque `sudo`
Ajouter Defaults timestamp_timeout=15 en dernière ligne, pour re-demander le mot-de-passe après 15mn (5mn par défaut).