Code: Select all
pure-pw useradd newuser -u newuser -g newusers -d /home/newuser/public_html
chown -R newusers:newuser /home/newuser/public_html
So how can the user only be allowed access to the public_html directory above
Thanks!
Code: Select all
pure-pw useradd newuser -u newuser -g newusers -d /home/newuser/public_html
chown -R newusers:newuser /home/newuser/public_html
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!!!hongtrang wrote:My server running pure-fpt. I used the following command to create users and add them to the directoryBut this user can access other folders like /home, /etc or /var, /opt ...Code: Select all
pure-pw useradd newuser -u newuser -g newusers -d /home/newuser/public_html chown -R newusers:newuser /home/newuser/public_html
So how can the user only be allowed access to the public_html directory above
Thanks!
Thank you, me was resolve with the USERS VIRTUALTrevorH wrote:We dont ship pureftp so it's not a product I am familiar with. Our ftp daemon is vsftpd. On that you can set up chroot environments that stop users from getting to places they shouldn't. I would suspect pureftp has a similar functionality - you just need to find someone who knows that package or, alternatively, read the documentation for it.