LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Usermod expert, help needed. (https://www.linuxquestions.org/questions/linux-newbie-8/usermod-expert-help-needed-715340/)

acctman 03-29-2009 04:36 PM

Usermod expert, help needed.
 
i have 3 existing sites, MainSite TestSite and FileSite. Main and Test need to be apart of the FileSite group to be able to read/write/delete files.

usermod -a -G MainSite,TestSite FileSite
is that right, for giving access to FileSite?

Tinkster 03-29-2009 04:40 PM

The syntax would be fine if you weren't trying to add groups
to a group ... this only works for users, and groups can't be
members of groups.

acctman 03-29-2009 05:29 PM

Quote:

Originally Posted by Tinkster (Post 3491905)
The syntax would be fine if you weren't trying to add groups
to a group ... this only works for users, and groups can't be
members of groups.

this is how my setup is.
MainSite.com is part of MainSite group and user MainSite, so the group and user have the same name.

what i'm trying to do is allow MainSite & TestSite users to be apart of the FileSite group so I can have proper permission for unlinking files via php coding

Tinkster 03-29-2009 05:40 PM

In that case it should work just fine; the only thing to bear in mind is
that you'll also need to make the directories group-writeable.



Cheers,
Tink

acctman 03-29-2009 05:52 PM

Quote:

Originally Posted by Tinkster (Post 3491947)
In that case it should work just fine; the only thing to bear in mind is
that you'll also need to make the directories group-writeable.



Cheers,
Tink

what command would I use to do that, and would i apply that to the FileSite directory (/home/filesite/public_html/) correct?

Tinkster 03-29-2009 06:54 PM

chmod -R g+rwX /home/filesite/public_html/


All times are GMT -5. The time now is 05:05 AM.