Web Hosting Talk







View Full Version : possible to get sendmail to handle Virtual Hosts? / how to chroot using wu-ftpd?


g333
05-04-2002, 11:14 PM
Is it possible to get sendmail to handle Virtual Hosts? I have been looking around and couldn't find any info. Can someone lighten my day. :)

Secondly... Can someone please tell me how to chroot using wu-ftpd. Yes, I know. The most un-secure ftp dameon out there. But I got it under control for now. :)

Thanks,
Michael

clocker1996
05-04-2002, 11:40 PM
look in /etc/mail for that virtaulusertable file or whatever

knuckles
05-05-2002, 06:51 PM
create a group called "ftpchroot" and assign any ftponly users to that group...

the edit you /etc/passwd file as follows for such users...


username:x:511:511::/home/username/./:/etc/ftponly

that extra "./" means they will not be able to browse behind they're home dir, and /etc/ftponly is a nonexistant shell.

I still recomend you read a "chroot" or "jail" tutorial, because they cant access anything behind they're home dirs, you might need to copy certain dir structures into the home dir ex: /bin to have access to commands like "ls" and such...

hope I dint forget anything...
Cheers,
Dan