Page tree
Skip to end of metadata
Go to start of metadata

Detailed view of WordPress with ACLs.

Users and Groups

User NameAssigned UserGroupHigh Level Access
dailyplanet01Clark KentwgdailyplanetAccess to Daily Planet website and blog files.
lexcorp01Lex LuthorwglexcorpAccess to LexCorp website and blog files.
tin.phamTin PhamstaffRead access to all websites and blogs
acme01Bugs BunnywgacmeNo access

Setup Groups and Users

... to fill in...

Permission and Group Structure

We want to provide website hosting for two different clients, The Daily Planet and LexCorp. Employees from the respective companies will belong in the system under the following groups, wgdailyplanet and wglexcorp. Here is the top level structure,

User NameAssigned UserGroupWeb Root DirectoryFile AccessDirectory Access
dailyplanet01Clark Kentwgdailyplanet/opt/web/php/dailyplanet.com/Read, Write and ExecuteRead, Write and Execute
lexcorp01Lex Luthorwglexcorp/opt/web/php/lexcorp.com/Read, Write and ExecuteRead, Write and Execute
 Apache Serverwww-data/opt/web/php/dailyplanet.com/
/opt/web/php/lexcorp.com/
ReadRead and Execute (required to transverse directories)
 Other  No AccessNo Access

Setup Directories

... to fill in...

Test Regular Permission

Testing results of regular permission on /opt/web/,

#User NameTest CaseTest RunResult
01

tin.pham


dailyplanet01

lexcorp01

acme01

Verify user and groups
id
uid=2000(tin.pham) gid=50(staff)...
groups
staff adm

sudo su - dailyplanet01
groups
wgdailyplanet
exit

sudo su - lexcorp01
groups
wglexcorp
exit

sudo su - acme01
groups
wgacme

(tick)

 

02tin.phamShow permissions
cd /opt
ls -al
drwxr-x--x   3 serveradmin staff 4096 Mar 28 20:35 web

cd web
ls -al
drwxr-x--x 2 serveradmin staff 4096 Apr 17 19:57 php
(tick)
03dailyplanet01   

 

...

  • No labels