Skip to main content
deleted 12 characters in body
Source Link
ndemou
  • 3k
  • 2
  • 24
  • 27

To change a user's primary group in Linux:

  • usermod -g new_group user_name
  • terminate all user_name's active sessions

To test your change login back,changes run id and look at the value of gid=

If the command runs without errors but the gid doesn'thasn't change you've missed the bold part of step 2.

To change a user's primary group in Linux:

  • usermod -g new_group user_name
  • terminate all user_name's active sessions

To test your change login back, run id and look at the value of gid=

If the command runs without errors but the gid doesn't change you've missed the bold part of step 2.

To change a user's primary group in Linux:

  • usermod -g new_group user_name
  • terminate all user_name's active sessions

To test your changes run id and look at the value of gid=

If the command runs without errors but the gid hasn't change you've missed the bold part of step 2.

Source Link
ndemou
  • 3k
  • 2
  • 24
  • 27

To change a user's primary group in Linux:

  • usermod -g new_group user_name
  • terminate all user_name's active sessions

To test your change login back, run id and look at the value of gid=

If the command runs without errors but the gid doesn't change you've missed the bold part of step 2.