I'm running a competition as part of a class on web application development. I need to prevent one user group from accessing the other user group's work directory and vice versa.
I know I'll be preventing web access using a .htaccess file, and I'm fine on that front. I need to prevent permission access on the command line so that one group can't access the other group's directory. Seems like a simple chown and chmod thing, but I'm getting stuck.
My impression is that it should be something like:
chown -R :250a 250_A chmod -R 707 250_A
but that allows world access, so the group can get into the directory. I just want to prevent one group (250b) from getting into the group.