...
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 775o-rwx 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 775o-rwx www.earth.com |
Now we create users that will have access to their respective websites,
...