RE: Path-Filter Message not being displayed to users

"Smith, William E. (Bill), Jr." <[email protected]> Fri, 1 Dec 2006 07:52:48 -0500
Newsgroups gmane.network.ftp.wuftpd.user
Message-ID <CB58A9148BBF0A439E16B6355EE0260E0240FFBB@aplesnation.dom1.jhuapl.edu>
This is a multi-part message in MIME format.

------_=_NextPart_001_01C71547.9A821BC4
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Padmanabhan,
=20
That was it.  The problem was staring me blank in the face and I just
missed it.  I modified the pathname to be relative to the chroot and
voila, it worked.  Thank you much for your assistance!
=20
- Bill

________________________________

From: Padmanabhan Palanivelu [mailto:[email protected]]=20
Sent: Friday, December 01, 2006 06:07
To: Smith, William E. (Bill), Jr.
Cc: [email protected]
Subject: Re: Path-Filter Message not being displayed to users


Hello Bill,

The pathname to the message files mentioned in the ftpaccess should be
relative to the chroot.=20

For eg,
If for anonymous ftp, the home directory is "/var/ftp" the anonymous
user will be chrooted to "/var/ftp" and hence "/var/ftp" will be "/" so
the configuration file should mention

path-filter anonymous       /pub/etc/filenameconv.msg ^[[:alnum:]._-]*$
^[.-]

rather than

path-filter anonymous       /var/ftp/pub/etc/filenameconv.msg
^[[:alnum:]._-]*$ ^[.-]

Similar case for guest users also.

Padmanabhan.

Smith, William E. (Bill), Jr. wrote:=20

	Padmanabhan,
	=20
	Thank you for the response.  To answer your questions, the
message is not being displayed for either class of users.  As for
permissions, they are 644 with ownership being root:root.  I tried
setting them to 777 but that didn't make any difference either.
	=20
	- Bill

________________________________

	From: Padmanabhan Palanivelu [mailto:[email protected]]=20
	Sent: Thursday, November 30, 2006 02:10
	To: Smith, William E. (Bill), Jr.
	Cc: [email protected]
	Subject: Re: Path-Filter Message not being displayed to users
=09
=09
	Hello Bill,
=09
	Is it not being displayed for both the type of users ? What is
the permission bits on the message file ?
=09
	Padmanabhan
=09
	Smith, William E. (Bill), Jr. wrote:=20

		I have the following two path filters configured with a
text file containing text on what constitutes a valid file name should
users attempt to upload a file with invalid characters.  While the path
filter itself appears to be working, the message is not being displayed
to users.  Instead, they receive an error indicating that permission was
denied.  (Filename (accept)) appears in part of the message but it's
still not obvious to all as to what the problem is.   I've looked up the
path-filter statement in the man page and the format I have seems to be
correct.  Any ideas on why the message is not being displayed?

		path-filter     guest
/var/ftp/pub/etc/filenameconv.msg ^[[:alnum:]._-]*$ ^[.-]=20
		path-filter     anonymous
/var/ftp/pub/etc/filenameconv.msg ^[[:alnum:]._-]*$ ^[.-]=20

		Thanks,=20

		Bill Smith
		<mailto:[email protected]
<mailto:[email protected]> >
		ISS Server Systems Group
		Johns Hopkins University Applied Physics Laboratory
		11100 Johns Hopkins Road
		Laurel, MD 20723
		Phone:  443-778-5523
		Web:  http://www.jhuapl.edu <http://www.jhuapl.edu/>




	--=20
	A good programmer is someone who looks both ways before crossing
a one-way street. - Doug Linder
	 =20


--=20
A good programmer is someone who looks both ways before crossing a
one-way street. - Doug Linder

------_=_NextPart_001_01C71547.9A821BC4
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Path-Filter Message not being displayed to =
users</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.5730.11" name=3DGENERATOR></HEAD>
<BODY text=3D#000000 bgColor=3D#ffffff>
<DIV dir=3Dltr align=3Dleft><FONT face=3DTahoma><FONT =
size=3D2>Padmanabhan<SPAN=20
class=3D392465112-01122006>,</SPAN></FONT></FONT></DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DTahoma><FONT size=3D2><SPAN=20
class=3D392465112-01122006></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DTahoma><FONT size=3D2><SPAN=20
class=3D392465112-01122006>That was it.&nbsp; The problem was staring me =
blank in=20
the face and I just missed it.&nbsp; I modified the pathname to be =
relative to=20
the chroot and voila, it worked.&nbsp; Thank you much for your=20
assistance!</SPAN></FONT></FONT></DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DTahoma><FONT size=3D2><SPAN=20
class=3D392465112-01122006></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DTahoma><FONT size=3D2><SPAN=20
class=3D392465112-01122006>- Bill</SPAN></FONT></FONT></DIV><BR>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B> Padmanabhan Palanivelu=20
[mailto:[email protected]] <BR><B>Sent:</B> Friday, December 01, 2006 =

06:07<BR><B>To:</B> Smith, William E. (Bill), Jr.<BR><B>Cc:</B>=20
[email protected]<BR><B>Subject:</B> Re: Path-Filter Message =
not=20
being displayed to users<BR></FONT><BR></DIV>
<DIV></DIV><TT>Hello Bill,<BR><BR>The pathname to the message files =
mentioned in=20
the ftpaccess should be relative to the chroot. <BR><BR>For eg,<BR>If =
for=20
anonymous ftp, the home directory is "/var/ftp" the anonymous user will =
be=20
chrooted to "/var/ftp" and hence "/var/ftp" will be "/" so the =
configuration=20
file should mention<BR><BR>path-filter=20
anonymous&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /pub/etc/filenameconv.msg=20
^[[:alnum:]._-]*$ ^[.-]<BR><BR>rather than<BR><BR></TT><TT>path-filter=20
anonymous&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
/var/ftp/pub/etc/filenameconv.msg=20
^[[:alnum:]._-]*$ ^[.-]<BR><BR>Similar case for guest users=20
also.<BR><BR>Padmanabhan.</TT><TT><BR></TT><BR>Smith, William E. (Bill), =
Jr.=20
wrote:=20
<BLOCKQUOTE=20
cite=3DmidCB58A9148BBF0A439E16B6355EE0260E0240FFAF@aplesnation.dom1.jhuap=
l.edu=20
type=3D"cite">
  <META content=3D"MSHTML 6.00.5730.11" name=3DGENERATOR>
  <DIV dir=3Dltr align=3Dleft><FONT face=3DArial><FONT =
size=3D2>Padmanabhan<SPAN=20
  class=3D546522214-30112006>,</SPAN></FONT></FONT></DIV>
  <DIV dir=3Dltr align=3Dleft><SPAN =
class=3D546522214-30112006></SPAN>&nbsp;</DIV>
  <DIV dir=3Dltr align=3Dleft><SPAN class=3D546522214-30112006><FONT =
face=3DArial=20
  size=3D2>Thank you for the response.&nbsp; To answer your questions, =
the message=20
  is not being displayed for either class of users.&nbsp; As for =
permissions,=20
  they are 644 with ownership being root:root.&nbsp; I tried setting =
them to 777=20
  but that didn't make any difference either.</FONT></SPAN></DIV>
  <DIV dir=3Dltr align=3Dleft><SPAN =
class=3D546522214-30112006></SPAN>&nbsp;</DIV>
  <DIV dir=3Dltr align=3Dleft><SPAN class=3D546522214-30112006><FONT =
face=3DArial=20
  size=3D2>- Bill</FONT></SPAN></DIV><BR>
  <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
  <HR tabIndex=3D-1>
  <FONT face=3DTahoma size=3D2><B>From:</B> Padmanabhan Palanivelu [<A=20
  class=3Dmoz-txt-link-freetext=20
  href=3D"mailto:[email protected]">mailto:[email protected]</A>]=20
  <BR><B>Sent:</B> Thursday, November 30, 2006 02:10<BR><B>To:</B> =
Smith,=20
  William E. (Bill), Jr.<BR><B>Cc:</B> <A =
class=3Dmoz-txt-link-abbreviated=20
  =
href=3D"mailto:[email protected]">[email protected]=
</A><BR><B>Subject:</B>=20
  Re: Path-Filter Message not being displayed to=20
  users<BR></FONT><BR></DIV><TT>Hello Bill,<BR><BR>Is it not being =
displayed for=20
  both the type of users ? What is the permission bits on the message =
file=20
  ?<BR><BR>Padmanabhan<BR></TT><BR>Smith, William E. (Bill), Jr. wrote:=20
  <BLOCKQUOTE=20
  =
cite=3DmidCB58A9148BBF0A439E16B6355EE0260E0240FFA0@aplesnation.dom1.jhuap=
l.edu=20
  type=3D"cite">
    <META content=3D"MS Exchange Server version 6.5.7650.28" =
name=3DGenerator><!-- Converted from text/rtf format -->
    <P><FONT face=3DArial size=3D2>I have the following two path filters =
configured=20
    with a text file containing text on what constitutes a valid file =
name=20
    should users attempt to upload a file with invalid characters.&nbsp; =
While=20
    the path filter itself appears to be working, the message is not =
being=20
    displayed to users.&nbsp; Instead, they receive an error indicating =
that=20
    permission was denied.&nbsp; (Filename (accept)) appears in part of =
the=20
    message but it's still not obvious to all as to what the problem=20
    is.&nbsp;&nbsp; I've looked up the path-filter statement in the man =
page and=20
    the format I have seems to be correct.&nbsp; Any ideas on why the =
message is=20
    not being displayed?</FONT></P>
    <P><FONT face=3DArial size=3D2>path-filter&nbsp;&nbsp;&nbsp;&nbsp;=20
    guest&nbsp;&nbsp; /var/ftp/pub/etc/filenameconv.msg =
^[[:alnum:]._-]*$=20
    ^[.-]</FONT> <BR><FONT face=3DArial =
size=3D2>path-filter&nbsp;&nbsp;&nbsp;&nbsp;=20
    anonymous&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
    /var/ftp/pub/etc/filenameconv.msg ^[[:alnum:]._-]*$ ^[.-]</FONT> =
</P>
    <P><FONT face=3DArial size=3D2>Thanks,</FONT> </P>
    <P><FONT face=3DArial>Bill Smith</FONT><FONT=20
    face=3D"Times New Roman"><BR></FONT><FONT face=3DArial>&lt;</FONT><A =

    href=3D"mailto:[email protected]"><U><FONT face=3DArial=20
    color=3D#0000ff>mailto:[email protected]</FONT></U></A><FONT=20
    face=3DArial>&gt;</FONT><FONT face=3D"Times New =
Roman"><BR></FONT><FONT=20
    face=3DArial>ISS Server Systems Group</FONT><FONT=20
    face=3D"Times New Roman"><BR></FONT><FONT face=3DArial>Johns Hopkins =
University=20
    Applied Physics Laboratory</FONT><BR><FONT face=3DArial>11100 Johns =
Hopkins=20
    Road</FONT><BR><FONT face=3DArial>Laurel, MD 20723</FONT><FONT=20
    face=3D"Times New Roman"><BR></FONT><FONT face=3DArial>Phone:&nbsp;=20
    443-778-5523</FONT><FONT face=3D"Times New Roman"><BR></FONT><FONT=20
    face=3DArial>Web:&nbsp;</FONT> <A =
href=3D"http://www.jhuapl.edu/"><U><FONT=20
    face=3DArial =
color=3D#0000ff>http://www.jhuapl.edu</FONT></U></A><FONT=20
    face=3DArial>&nbsp; &nbsp;</FONT><FONT face=3D"Times New Roman">=20
  </FONT></P><BR></BLOCKQUOTE><BR><PRE class=3Dmoz-signature =
cols=3D"72">--=20
A good programmer is someone who looks both ways before crossing a =
one-way street. - Doug Linder
  </PRE></BLOCKQUOTE><BR><PRE class=3Dmoz-signature cols=3D"72">--=20
A good programmer is someone who looks both ways before crossing a =
one-way street. - Doug Linder
</PRE></BODY></HTML>

------_=_NextPart_001_01C71547.9A821BC4--