I Cannot Add User To A Group Permanently
Hello Everyone,
I’m using a CentOS 7 server. I tried to add my own user to group ‘apache’
and it works temporarily. When I SSH to it later, I found my user not a member of group ‘apache’. What’s wrong with it?
Thanks.
Sincerely, Xuwen
One thought on - I Cannot Add User To A Group Permanently
Are you using “newgrp”? That tool starts a new session wherein the user is a member of a new group. Permanent addition should be “usermod -a -G
$group $user”