nerdexam
Red_Hat

RH302 · Question #89

Make Secondary belongs the jackie and curtin users on sysuser group. But david user should not belongs to sysuser group.

1. usermod -G sysuser jackie 2. usermod -G sysuser curtin 3. Verify by reading /etc/group file Using usermod command we can make user belongs to different group. There are two types of group one primary and another is secondary. Primary group can be only one but user can…

System configuration

Question

Make Secondary belongs the jackie and curtin users on sysuser group. But david user should not belongs to sysuser group.

Explanation

  1. usermod -G sysuser jackie
  2. usermod -G sysuser curtin
  3. Verify by reading /etc/group file Using usermod command we can make user belongs to different group. There are two types of group one primary and another is secondary. Primary group can be only one but user can belongs to more than one group as secondary. usermod -g groupname username To change the primary group of the user usermod -G groupname username To make user belongs to secondary group.

Topics

#usermod#secondary group#group membership

Community Discussion

No community discussion yet for this question.

Full RH302 Practice