...
I find this approach is complex enough to address the needs of even complex banking most applications and at the same simple enough to implement for the intermediate level user.
...
Code Block | ||
---|---|---|
| ||
cd /home sudo mkdir www.krypton.com # Home directory for the website. cd /home/www.krypton.com sudo mkdir www # Folder for static content sudo addgroup --gid 3100 wgkryptonian # Special work group to distinguish users who should have access to the website. cd /home sudo chown -R serveradmin:wgkryptonian ./www.krypton.com/ sudo chmod -R g+wX,o-rwxwX www.krypton.com # Only svradm and users in the kryptonian group can manage. Apache(other's) still need to be able to read and browse. # Repeat for www.earth.com cd /home sudo mkdir www.earth.com cd /home/www.earth.com sudo mkdir www # Folder for static content sudo addgroup --gid 3101 wgearthling cd /home sudo chown -R serveradmin:wgearthling ./www.earth.com/ sudo chmod -R g+wX,o-rwxwX www.earth.com |
Now we create users that will have access to their respective websites,
...