Enter your email address:

Delivered by FeedBurner

usermod - modify a user account

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

Share/Save

If this was useful for you, please consider making a donation, any amount is welcome, please proceed by clicking on the yellow donate button, thank you in advance.

Navigation

Recent comments