خرید بک لینک

I have a limited knowledge of Linux systems, so bare with me :) I'm trying to add apache and a user called admin to the same group on CentOS. When I run id admin I get groups 1000 (apache) and group 1002 (admin), when I run id apache I get groups 1000 (apache) and 1003 (access).

I see that they're both members of the 1000 group (apache), but when I try to add admin to the 1003 (access) group as well via usermod -G access admin, it deletes admin from the apache group for some reason (so then when I run 'id admin' I get groups 1002 and 1003, but it is not listed as part of 1000 anymore).

Is there like a limitation of the number of groups a user can be a member of? If not, how do I put them in the same group?

My problem is due to permissions issues - in a specific folder, which is owned by 'admin', for instance, when I try to create a new directory or upload a file with the admin user I am able to do so. However, when I try to do that using the apache user I can't.

Thanks

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 11 فروردين 1395 ساعت: 18:58

صفحه بندی