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 [2018/04/16 09:33] – [Partage dossier entre utilisateurs] Roge | 04-linux:10-administration:88-users [2023/03/05 02:15] (Version actuelle) – [Partage dossier entre utilisateurs] Roge | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== | + | ====== |
Ligne 104: | Ligne 104: | ||
< | < | ||
+ | sudo mkdir / | ||
- | mkdir /home/public | + | sudo /usr/sbin/ |
- | /usr/sbin/ | + | sudo chown -R root.share |
- | chown -R root.share | + | sudo /usr/bin/gpasswd -a user1 share |
- | / | + | sudo chmod ug+rwx -R / |
- | + | ||
- | 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/ | # 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/ | ||
- | chmod g+s / | + | sudo chmod g+s / |
</ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ===== Sudoers ===== | ||
+ | |||
+ | |||
+ | remove user from sudoers group | ||
+ | '' |