Type in the simplest command to do this?

CORRECT TEXT
User Sheets has been exiled to the marketing department who has a group name mktg. You now

wish to change the primary group for the user Sheets to the mktg group.
Type in the simplest command to do this?

CORRECT TEXT
User Sheets has been exiled to the marketing department who has a group name mktg. You now

wish to change the primary group for the user Sheets to the mktg group.
Type in the simplest command to do this?

Answer: usermod -g mktg Sheets



Leave a Reply 2

Your email address will not be published. Required fields are marked *


Busindre

Busindre

NO, usermod is OK

newgrp (log in to a new group) changes the group identification of its caller, analogously to login(1). The same person remains logged in, and the current directory is unchanged, but calculations of access permissions to files are performed with respect to the new group ID.