Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
04-linux:10-administration:88-users [2017/10/06 23:40] – modification externe 127.0.0.1 | 04-linux:10-administration:88-users [2023/03/05 02:15] (Version actuelle) – [Partage dossier entre utilisateurs] Roge | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== | + | ====== |
Ligne 101: | Ligne 101: | ||
+ | ===== Partage dossier entre utilisateurs ===== | ||
+ | |||
+ | < | ||
+ | sudo mkdir / | ||
+ | |||
+ | sudo / | ||
+ | |||
+ | sudo chown -R root.share / | ||
+ | |||
+ | sudo / | ||
+ | |||
+ | sudo chmod ug+rwx -R / | ||
+ | |||
+ | # set the SGID bit on the shared directory. Normally whenever you create files in a directory, by default it belongs to the default group or user. When a file is created in a directory with the SGID bit set it belongs to the same group as the directory. The result being that all users of the “share” group can create/ | ||
+ | |||
+ | sudo chmod g+s / | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ===== Sudoers ===== | ||
+ | |||
+ | |||
+ | remove user from sudoers group | ||
+ | '' |