I Added My User To A Group Last Week, And Now The User Isn’t In The Group
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
One thought on - I Added My User To A Group Last Week, And Now The User Isn’t In The Group
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?