I have a couple of questions: (Sysadmins tasks)
Here is what I asked to do
Create user Tim and add him to the supplementary group Webdev (Create the group if it doesn't exist), also Set Tim's default home directory to /websites - if this directory does not exist, create it.
So here is what I did:
useradd -m -d /websites Tim groupadd Webdev useradd -aG Webdev Tim
I think I did that correctly.
Now for the second task, I am really confused
Apply the same SELinux contexts and permissions to /websites that would be found on a user's /home directory such that Tim and only Tim will have access to /websites
How would I be able to do that ? I mean should the Tim's home directory be /websites anyways ?