I have used the following command in centos to set permissions but something went terrible wrong!
usermod -G myusergroup,apache apache
Now all my sites are giving me the 403 forbidden page! How can i reset this?
I have used the following command in centos to set permissions but something went terrible wrong!
usermod -G myusergroup,apache apache
Now all my sites are giving me the 403 forbidden page! How can i reset this?
I have found the solution:
When you use usermod -G you specify the groups the user belongs to. If you does not include the current groups in the command the user will get removed from these groups.
For example: User: A, Group: 1, 2, 3
Usermod -G 1,3 A This will remove user A from group 2.
So be carefull with this command.
I have added the user Apache to the group Access and Apache and now my websites are working again.
Merl.