you would of cousre, see something like this
uid=501(bob) gid=501(bob) groups=501(bob)
Each domain has its own username. So to modify each domain, you have to ftp in as the username for that domain, or su as the user.
What i want to do is i want to create a username called master, taht will have a home dir of /home/sites, and will have full control over /home/sites/* BUT STILL ALLOW each user to control its own domain/directory and have full permission for their own dir/domain...
I know how to give the username master a home dir of /home/sites -- dont worry.
what im saying is this:
say all the files in /home/sites/domain1.com/ and on are owned by bob.bob so /home/sites/domain1.com/*
if you ftp in, as the username bob, and go in /home/sites/domain1.com/public_html/ and put an image called toy.gif
it will easily load on the web, and when you ls -al in /home/sites/domain1.com/public_html you will see bob bob (that it's owned by bob.bob)
so what i want to be able to do is ftp in with the username master, switch over to /home/sites/domain1.com/public_html (because master should have permission to go in and do whatever it wants) and DEL toy.gif EVEN THOUGH it is owned by bob.bob
be able to del, be able to upload files there, as the username master, and have the username BOB be able to DELETE the files that master puts there
so its like they are sharing a house
So in sense "master" is like the "root user" for /home/sites/*
that is what i'd like to do. i am guessing id have to group master with all these users, correct? Could anyone explain to me an easy way or the simplest way to go about it
Keep in mind everything i just said.
If you ftp in as the username bob, and go in /home/sites/domain1.com/public_html/cgi-bin and put id.cgi in there, chmod 755 it. it will be owned by bob.bob, and will EXECUTE as bob, becuase apache has
which is GOOD.
so say bob deletes id.cgi
bob logs out.
so say master logs in
i would like to make it, so the username master can ftp in, and go in domain1.com/public_html/cgi-bin and be able to upload id.cgi
chmod 755 it
and make it so whe you goto www.domain1.com/cgi-bin/id.cgi it will still execute.....
What the output would be, i wouldnt konw.
but im guessing it would look something like this
uid=501(bob) gid=501(somegroup) groups=501(bob)
So basically, i want to be able to have master and any of the users in /home/sites/* be able to share everything
so master can go in any dirs, and delet, create, and those users can delete what master creates/modify what he creates
and same for master
but at the same i want to ensure all CGI files actually execute, so i know id hav eto modify the user group for each domain....
I'm really sorry that this is so long, but this is the only way i think i can describe what i want to do / how i want to do this.
If anyone has any information on how I can do part one, PLUS part two (The cgi bit with suexec), or any ideas, or has ANY clue what im talking about, id appreciate any replies.
Last edited by clocker1996; 08-13-2002 at 02:15 PM.