Go2Linux | Linux Operating System

A site dedicated to: Linux Operating System

usermod - modify a user account

Date: 2009-01-06 00:00:00 -0400

usermod - modify a user account

Once a user is already created, you can still modify its options and data, to do that use usermod

Syntax

  • -d home directory
  • -s starting program (shell)
  • -p password
  • -g (primary group assigned to the users)
  • -G (Other groups the user belongs to)

Example

If you want to change the default login shell of a user user

usermod -s /bin/tsh user

Read the man page of usermod for more information

Related pages useradd userdel

If you liked this article please share it.

powered by TinyLetter

If you want to contact me in any other way, please use the contact page.