linux:misc:cli_usr_mgmt

Linux CLI User Management

Add new user

useradd username

Add samba user (for existing system user)

smbpasswd -a username

Add new group

Add existing user to existing secondary group

 usermod -a -G groupname username

Add existing user to existing default group

 usermod -a -g groupname username

Add new user into existing group

  • linux/misc/cli_usr_mgmt.txt
  • Last modified: 2019/10/31 09:05
  • by 127.0.0.1