My server running pure-fpt. I used the following command to create users and add them to the directory
Code: Select all
pure-pw useradd newuser -u newuser -g newusers -d /home/newuser/public_html
chown -R newusers:newuser /home/newuser/public_html
But this user can access other folders like /home
So how can the user only be allowed access to the public_html directory above
Can you create a /home/newuserID and create a directory called /public_html which all users have access to, but then using chmod make directories like /home, /etc, /var, /opt, etc. and put them all under a directory called /Admin under a group called Admin that could only be accessed by a few select people (systems administrators) which is password protected. That way newusers are left in their own little ghetto, and even IF one is a hacker and can figure out where all those "missing" directories have gone s/he then has to crack a Password just to make themselves part of the Admin group. IF they can manage to do that offer them a job!!!