What does `usermod -s` do?

QuestionsQuestions8 SkillsProUser Account ManagementOct, 07 2025
094

The usermod -s option is used to change the default login shell for a user in a Linux system.

  • -s: Specifies the path to the new shell that will be set as the user's default shell.

For example, using usermod -s /bin/bash username sets the Bash shell as the default shell for the specified user. This affects how the user interacts with the command line when they log in.

0 Comments

no data
Be the first to share your comment!