Hello everyone,
I added my user account to a group called "www-pub" for easier manipulations on web files on my server. And today I found that my account was not in the group "www-pub" any longer..... What I did to add my account to the group is like "sudo usermod -a -G www-pub myaccount". Is there anything wrong?
Thanks for any suggestions.
Sincerely, Xuwen
Date: Sunday, October 23, 2016 19:51:02 +0800 From: Xuwen Fang fxuwen@gmail.com To: CentOS mailing list centos@centos.org
Hello everyone,
I added my user account to a group called "www-pub" for easier manipulations on web files on my server. And today I found that my account was not in the group "www-pub" any longer..... What I did to add my account to the group is like "sudo usermod -a -G www-pub myaccount". Is there anything wrong?
Thanks for any suggestions.
Sincerely, Xuwen
After issuing that command did you check the /etc/group and /etc/gshadow files to confirm that the command was successful? And, have you looked there now? Have you checked/compared the system-generated "~" backups?
Assuming you were successfully added, and the entries aren't there now, have reviewed the /var/log/secure log for subsequent actions that would have reversed that? [realizing of course that the password and group files can be hand-edited.]
What are the modified timestamps on those two group files (and their system-generated backups) relative to when you issued that command?