"Dave Cost" <[EMAIL PROTECTED]> writes:

> I was tweaking the proftpd configuration when I discovered that it's
> impossible for proftpd to chroot to the user's home directory.
> 
> This is a highly recommended setting so that one can limit ftp users to
> their home directory (i.e. their web root directory) with no access outside.
> 
> This is done via the "DefaultRoot ~" proftpd directive.
> 
> However I cannot make it work not even by copying a working proftpd setup.
> It seems that it's not possible to chroot if not being root.
> 
> I tried being admin and being root on the virtual server. It won't work
> being admin, it works being root. It also works being admin with a suid
> chroot. However, on proftpd it won't work even if I set proftpd ug+s.....

If you are using the proftpd rpm supplied in the pkgs directory, then
ensure proftpd is started as the root user.  The use
  $ setrights <username> +chrtftp

to chroot the user into their home directory.  This is something DSVR
hacked together so as to simplify FTP server configuration, since the
customer would probably break things if they edited proftpd.conf.

Nick.

Reply via email to