LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   restricting users to one folder (https://www.linuxquestions.org/questions/linux-security-4/restricting-users-to-one-folder-923/)

flip-x 02-18-2001 05:37 PM

does anyone know how to restrict a user to one folder without using chroot?
for example, when you ftp on ftp.xoom.com, you can log on using your l/p, and when you try to move up a directory, it drops you in your home directory again
i've tried using chmod and chown, but it never works ... i can restrict the whole shebang, but then they cannot access their subfolders
here's how it's set up:
/var/lib/apache/htdocs/members/memname
is an alias on the server so that www.x451.com/members/memname goes there
the problem is that when someone joins, it adds a user, but the user can browse the rest of the system
how do i restrict someone to just their folder? i tried using chroot, but i had to copy bash every time in order for them to be able to use ftp
PLEASE! HELP!


All times are GMT -5. The time now is 09:29 AM.