djhawthorn
Technical User
I am running a Red Hat box with WU-FTP on it, and have two users - ftpadmin1 and ftpguest1, members of ftpadmin and ftpguest respectively. Both accounts have been setup the same way, with '/home/ftproot/./' as their home directory. The only difference is ftpadmin1 has access to read/write to /home/ftproot/ and ftpguest1 has only read access. Both accounts are ftp only (no telnet/shell login access).
The problem I'm having is with chroot(). When ftpguest1 logs in, he sees /home/ftproot/ as the root (/) folder. When ftpadmin1 logs in though, he sees /home/ftproot/ as /home/ftproot/, and can romp around the system and do damage. This I want to stop if possible by getting chroot() working for ftpadmin1 as well.
The /home/ftproot/ folder is owned by the root user, and the ftpadmin group. CHMOD'd 775 I think.
Any help would be appreciated.
The problem I'm having is with chroot(). When ftpguest1 logs in, he sees /home/ftproot/ as the root (/) folder. When ftpadmin1 logs in though, he sees /home/ftproot/ as /home/ftproot/, and can romp around the system and do damage. This I want to stop if possible by getting chroot() working for ftpadmin1 as well.
The /home/ftproot/ folder is owned by the root user, and the ftpadmin group. CHMOD'd 775 I think.
Any help would be appreciated.