-1

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?

Merl
  • 43
  • 2
  • 9
  • Used this post: http://stackoverflow.com/questions/14427808/you-dont-have-permission-error-in-apache-in-centos please help! – Merl Jan 02 '15 at 10:17

1 Answers1

0

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.

Merl
  • 43
  • 2
  • 9