Freebsd user

De SLM - MediaWiki
Révision datée du 7 avril 2020 à 15:39 par Admin (discussion | contributions)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)

Retour

Lister les utilisateurs

cat /etc/passwd

Lister les groupes

cat /etc/group

Créer un utilisateur

adduser
Username: '''slemoal'''
 Full name: '''slemoal'''
 Uid (Leave empty for default):
 Login group [slemoal]:
 Login group is slemoal. Invite slemoal into other groups? []: '''wheel'''
 Login class [default]:
 Shell (csh sh tcsh opnsense-installer opnsense-shell nologin) [sh]:
 Home directory [/home/slemoal]: '''/home'''
 Home directory permissions (Leave empty for default):
 Use password-based authentication? [yes]:
 Use an empty password? (yes/no) [no]:
 Use a random password? (yes/no) [no]:
 Enter password:'''un vrai mot de passe'''
 Enter password again:'''le vrai mot de passe'''
 Lock out the account after creation? [no]:
 Username   : slemoal
 Password   : *****
 Full Name  : slemoal
 Uid        : 1001
 Class      :
 Groups     : slemoal wheel
 Home       : /home
 Home Mode  :
 Shell      : /bin/sh
 Locked     : no
 OK? (yes/no): '''yes'''
 adduser: INFO: Successfully added (slemoal) to the user database.
 Add another user? (yes/no): '''no'''
 Goodbye!

Attribuer ou modifier un mot de passe à un utilisateur

passwd slemoal