nkinkade at ub.edu.bz
Fri Jun 3 21:01:29 GMT 2005
On Fri, Jun 03, 2005 at 04:25:59PM -0400, Denny Jodeit wrote:
> On Fri, Jun 03, 2005 at 03:40:46PM -0400, Denny Jodeit wrote:
> > Hello,
> > I'm trying to restrict an ftp user to a particular directory. I've
> > written an ftpchroot file, as follows:
> > Username /var/spool/ftp/ ./Username/photos
> > After I write the file and restart inetd, I am not able to login to
> > ftp with this user account at all. I have RTFM and evidently don't get
> > it...
> > Thanks in advance for any and all suggestions.
> > Denny
> Is that a space character in the path above? If so, I don't think it
> should be there. Have you tried just using the line:
> username /var/spool/ftp
> ... to see if the chroot works at all? If so, then try adding user
> specific subdirs of the chroot (without the space before the ``.'')
> I've eliminated the space and restarted inetd and could not login to ftp
> with this particular username at all.
> I've changed the file to reflect your suggestion, same results...which
> as you indicate, would mean chroot is not working at all.
> If I remove the ftpchroot file altogether, I can login to ftp, but
> obviously not in the directory I wish the account to go to.
What are the permissions of the directory /var/spool/ftp? Make sure
that the user with which you are attempting to login has at lease
execture permissions for the directory in questions. Also, what
specific error are you getting from your ftp client?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050603/0ffbf4bb/attachment.bin
More information about the freebsd-questions