Diff for /wikisrc/tutorials/user_management.mdwn between versions 1.8 and 1.11

version 1.8, 2019/04/05 09:52:05 version 1.11, 2020/09/09 14:28:56
Line 37  If your favorite user with login passwor Line 37  If your favorite user with login passwor
 """]]  """]]
           
   
 #[**User**](http://netbsd.gw.com/cgi-bin/man-cgi?user++NetBSD-current)  #**User**
   
 The NetBSD maintains information in regard of each user who logs into, access system, runs processes on so forth. This include and not limited to:   The NetBSD maintains information in regard of each user who logs into, access system, runs processes on so forth. This include and not limited to: 
           
     - user name   - user name
     - password   - password
     - group   - group
     - base_dir   - base_dir
     - skel_dir   - skel_dir
     - shell   - shell
     - class   - class
     - homeperm   - homeperm
     - inactive   - inactive
     - expire   - expire
           
   
 The superuser called root has no limitations on its privileges.   The superuser called root has no limitations on its privileges. 
   
 To limit user priveleges consider to set limits by: coredumpsize, cputime, filesize, quota, maxproc, memory, openfiles etc.   To limit user priveleges consider to set limits by: coredumpsize, cputime, filesize, quota, maxproc, memory, openfiles etc. 
   
 `user` is frontend to the useradd, usermod, userinfo and userdel commands, it helps to manage users in the system.   `[[!template id=man name="user" section="8"]]` is frontend to the useradd, usermod, userinfo and userdel commands, it helps to manage users in the system. 
   
 Use [id](http://netbsd.gw.com/cgi-bin/man-cgi?id+1+NetBSD-current) to see user identity:   Use [[!template id=man name="id" section="1"]] to see user identity: 
   
     $ id      $ id
           
   
 Use [w](http://netbsd.gw.com/cgi-bin/man-cgi?w+1+NetBSD-current) to see who present and what they are doing:   Use [[!template id=man name="w" section="1"]] to see who present and what they are doing: 
   
     $ w      $ w
           
   
 Use [last](http://netbsd.gw.com/cgi-bin/man-cgi?last+1+NetBSD-current) to see last logins:   Use [[!template id=man name="last" section="1"]] to see last logins: 
   
   
     $ last      $ last
           
   
 ##  [useradd](http://netbsd.gw.com/cgi-bin/man-cgi?useradd++NetBSD-current)  ##  [[!template id=man name="useradd" section="8"]]
   
 To add user do:   To add user do: 
           
Line 89  To add a user and create a new home dire Line 89  To add a user and create a new home dire
   
 Look into the NetBSD Guide [Chapter 5.6](http://netbsd.org/docs/guide/en/chap-boot.html#chap-boot-adding-users)  Look into the NetBSD Guide [Chapter 5.6](http://netbsd.org/docs/guide/en/chap-boot.html#chap-boot-adding-users)
   
 ##  [userinfo](http://netbsd.gw.com/cgi-bin/man-cgi?userinfo++NetBSD-current)  ##  [[!template id=man name="userinfo" section="8"]]
   
 To see user information do:   To see user information do: 
           
     $ userinfo _myuser_      $ userinfo _myuser_
           
   
 ##  [usermod](http://netbsd.gw.com/cgi-bin/man-cgi?usermod++NetBSD-current)  ##  [[!template id=man name="usermod" section="8"]]
   
 To modify existing user login do:   To modify existing user login do: 
           
Line 121  To modify existing user login do:  Line 121  To modify existing user login do: 
     # usermod -F _username_                 ; force user to change password      # usermod -F _username_                 ; force user to change password
           
   
 ##  [userdel](http://netbsd.gw.com/cgi-bin/man-cgi?userdel++NetBSD-current)  ##  [[!template id=man name="userdel" section="8"]]
   
 To remove a user from the system do:   To remove a user from the system do: 
           
     # userdel _myuser_      # userdel _myuser_
           
   
 ##  [passwd](http://netbsd.gw.com/cgi-bin/man-cgi?passwd++NetBSD-current)  ##  [[!template id=man name="passwd" section="5"]]
   
 To see a list of all users in the system do:   To see a list of all users in the system do: 
           
Line 140  To edit _/etc/passwd_ file do:  Line 140  To edit _/etc/passwd_ file do: 
     # vipw      # vipw
           
   
 ##  [chpass](http://netbsd.gw.com/cgi-bin/man-cgi?chpass++NetBSD-current)  ##  [[!template id=man name="chpass" section="1"]]
   
 Use [chpass, chfn, chsh]((http://netbsd.gw.com/cgi-bin/man-cgi?chpass+1+NetBSD-current)) to add or change user database information.   Use chpass, chfn, and chsh ([[!template id=man name="chpass" section="1"]]) to add or change user database information. 
   
 To change the shell of _myuser_, for an exapmle to /bin/ksh:   To change the shell of _myuser_, for an exapmle to /bin/ksh: 
           
Line 152  To change the shell of _myuser_, for an  Line 152  To change the shell of _myuser_, for an 
       
   
   
 #  [**Group**](http://netbsd.gw.com/cgi-bin/man-cgi?group++NetBSD-current)  #  **Group**
   
 To manage groups check `/etc/group` file which maintains name of each group, group id and list of users who is a group member.   To manage groups check `/etc/group` file which maintains name of each group, group id and list of users who is a group member. 
   
 `group` is frontend to the groupadd, groupmod, groupinfo and groupdel commands, it helps to manage groups in the system.   `[[!template id=man name="group" section="8"]]` is frontend to the groupadd, groupmod, groupinfo and groupdel commands, it helps to manage groups in the system. 
   
 To add group do:   To add group do: 
           
Line 180  To modify existing group do:  Line 180  To modify existing group do: 
   
 To remove user from the group you have to do `user del` and then add user again.   To remove user from the group you have to do `user del` and then add user again. 
   
 ##  [groupadd](http://netbsd.gw.com/cgi-bin/man-cgi?groupadd+8+NetBSD-current)  ##  [[!template id=man name="groupadd" section="8"]]
   
 ##  [groupdel](http://netbsd.gw.com/cgi-bin/man-cgi?groupdel+8+NetBSD-current)  ##  [[!template id=man name="groupdel" section="8"]]
   
 ##  [groupinfo](http://netbsd.gw.com/cgi-bin/man-cgi?groupinfo+8+NetBSD-current)  ##  [[!template id=man name="groupinfo" section="8"]]
   
 ##  [groupmod](http://netbsd.gw.com/cgi-bin/man-cgi?groupmod+8+NetBSD-current)  ##  [[!template id=man name="groupmod" section="8"]]
   
 #  Other  #  Other
   
 ##  [chmod](http://netbsd.gw.com/cgi-bin/man-cgi?chmod++NetBSD-current)  ##  [[!template id=man name="chmod" section="1"]]
   
 ##  [chown](http://netbsd.gw.com/cgi-bin/man-cgi?chown++NetBSD-current)  ##  [[!template id=man name="chown" section="8"]]
   
 To change files/directory ownership:   To change files/directory ownership: 
           
Line 201  To change files/directory ownership:  Line 201  To change files/directory ownership: 
   
 Where myuser is the name of user and path is directory where files are located.   Where myuser is the name of user and path is directory where files are located. 
   
 ##  [chgrp](http://netbsd.gw.com/cgi-bin/man-cgi?chgrp++NetBSD-current)  ##  [[!template id=man name="chgrp" section="1"]]
   
 ##  [chroot](http://netbsd.gw.com/cgi-bin/man-cgi?chroot++NetBSD-current)  ##  [[!template id=man name="chroot" section="8"]]
   
 ##  [quota](http://netbsd.gw.com/cgi-bin/man-cgi?quota++NetBSD-current)  ##  [[!template id=man name="quota" section="1"]]
   
 Use quota to set users quotas per desire.   Use quota to set users quotas per desire. 
   

Removed from v.1.8  
changed lines
  Added in v.1.11


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb