Outils du site

Quand on a dix pas à faire, neuf font la moitié du chemin. [Proverbe Chinois]

04-linux:10-administration:88-users

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
04-linux:10-administration:88-users [2018/04/16 09:33] – [Partage dossier entre utilisateurs] Roge04-linux:10-administration:88-users [2023/03/05 02:15] (Version actuelle) – [Partage dossier entre utilisateurs] Roge
Ligne 1: Ligne 1:
-====== Utilisateurs ======+====== Users ======
  
  
Ligne 104: Ligne 104:
  
 <code> <code>
 +sudo mkdir /home/public
  
-mkdir /home/public+sudo /usr/sbin/groupadd share
  
-/usr/sbin/groupadd share+sudo chown -R root.share /home/public
  
-chown -R root.share /home/public+sudo /usr/bin/gpasswd -a user1 share
  
-/usr/bin/gpasswd -a user1 share +sudo chmod ug+rwx -R /home/public
- +
-chmod ug+rwx -R /home/public+
  
 # 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/alter files in “/home/public” directory. # 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/alter files in “/home/public” directory.
  
-chmod g+s /home/public +sudo chmod g+s /home/public
 </code> </code>
 +
 +
 +
 +===== Sudoers =====
 +
 +
 +remove user from sudoers group
 +''sudo deluser <username> sudo''
Dernière modification : 2018/04/16 09:33