What are other usermod options?

QuestionsQuestions8 SkillsProUser Account ManagementAug, 30 2025
0257

The usermod command has several options for modifying user accounts. Here are some commonly used options:

  • -a, --append: Add the user to the supplementary groups mentioned by the -G option without removing them from other groups.
  • -c, --comment: Change the user's comment (usually the full name).
  • -d, --home: Change the user's home directory.
  • -e, --expire: Set the expiration date for the user account.
  • -G, --groups: Specify a list of supplementary groups for the user.
  • -l, --login: Change the username.
  • -p, --password: Set the user's password (usually hashed).
  • -u, --uid: Change the user's numeric ID.

You can view all options and their descriptions by running man usermod in the terminal. If you need help with a specific option, let me know!

0 Comments

no data
Be the first to share your comment!