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
On 10/16/2016 04:57 AM, Xuwen Fang wrote:> 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?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"
Possibly Parallel Threads
- I added my user to a group last week, and now the user isn't in the group
- Using pkgs from centos repos or building pkgs myself?
- Using pkgs from centos repos or building pkgs myself?
- file permissions and groups
- [Bug 826] RFE: scp and ssh should have an option to set the group-id at login time