Freebsd user

De SLM - MediaWiki


Lister les utilisateurs

cat /etc/passwd

Lister les groupes

cat /etc/group

Créer un utilisateur

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'''

Attribuer ou modifier un mot de passe à un utilisateur

passwd slemoal