I am using bash shell. I want to run all commands of a specific user to be run as a specific group command in the shell. How can I do it? Can anything be can be done in ~/.bashrc ?
If a user wants to spend the rest of his session in somegroup, he can run
He may or may not be prompted for a password depending on permissions. See
The group that the user is in when he starts his session is determined by the fourth field of his line of the
For information on how to interpret the fields in the