[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wuftpd-questions
Subject:    RE: Path-Filter Message not being displayed to users
From:       "Smith, William E. (Bill), Jr." <Bill.Smith () jhuapl ! edu>
Date:       2006-12-01 12:52:48
Message-ID: CB58A9148BBF0A439E16B6355EE0260E0240FFBB () aplesnation ! dom1 ! jhuapl ! edu
[Download RAW message or body]

Padmanabhan,
 
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!
 
- Bill

________________________________

From: Padmanabhan Palanivelu [mailto:padmanabhan.p@hp.com] 
Sent: Friday, December 01, 2006 06:07
To: Smith, William E. (Bill), Jr.
Cc: wuftpd-questions@wu-ftpd.org
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. 

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: 

	Padmanabhan,
	 
	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.
	 
	- Bill

________________________________

	From: Padmanabhan Palanivelu [mailto:padmanabhan.p@hp.com] 
	Sent: Thursday, November 30, 2006 02:10
	To: Smith, William E. (Bill), Jr.
	Cc: wuftpd-questions@wu-ftpd.org
	Subject: Re: Path-Filter Message not being displayed to users
	
	
	Hello Bill,
	
	Is it not being displayed for both the type of users ? What is
the permission bits on the message file ?
	
	Padmanabhan
	
	Smith, William E. (Bill), Jr. wrote: 

		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:]._-]*$ ^[.-] 
		path-filter     anonymous
/var/ftp/pub/etc/filenameconv.msg ^[[:alnum:]._-]*$ ^[.-] 

		Thanks, 

		Bill Smith
		<mailto:bill.smith@jhuapl.edu
<mailto:bill.smith@jhuapl.edu> >
		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/>




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


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

[Attachment #3 (text/html)]

<!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=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV dir=ltr align=left><FONT face=Tahoma><FONT size=2>Padmanabhan<SPAN 
class=392465112-01122006>,</SPAN></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma><FONT size=2><SPAN 
class=392465112-01122006></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Tahoma><FONT size=2><SPAN 
class=392465112-01122006>That was it.&nbsp; The problem was staring me blank in 
the face and I just missed it.&nbsp; I modified the pathname to be relative to 
the chroot and voila, it worked.&nbsp; Thank you much for your 
assistance!</SPAN></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma><FONT size=2><SPAN 
class=392465112-01122006></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Tahoma><FONT size=2><SPAN 
class=392465112-01122006>- Bill</SPAN></FONT></FONT></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Padmanabhan Palanivelu 
[mailto:padmanabhan.p@hp.com] <BR><B>Sent:</B> Friday, December 01, 2006 
06:07<BR><B>To:</B> Smith, William E. (Bill), Jr.<BR><B>Cc:</B> 
wuftpd-questions@wu-ftpd.org<BR><B>Subject:</B> Re: Path-Filter Message not 
being displayed to users<BR></FONT><BR></DIV>
<DIV></DIV><TT>Hello Bill,<BR><BR>The pathname to the message files mentioned in 
the ftpaccess should be relative to the chroot. <BR><BR>For eg,<BR>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<BR><BR>path-filter 
anonymous&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /pub/etc/filenameconv.msg 
^[[:alnum:]._-]*$ ^[.-]<BR><BR>rather than<BR><BR></TT><TT>path-filter 
anonymous&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /var/ftp/pub/etc/filenameconv.msg 
^[[:alnum:]._-]*$ ^[.-]<BR><BR>Similar case for guest users 
also.<BR><BR>Padmanabhan.</TT><TT><BR></TT><BR>Smith, William E. (Bill), Jr. 
wrote: 
<BLOCKQUOTE 
cite=midCB58A9148BBF0A439E16B6355EE0260E0240FFAF@aplesnation.dom1.jhuapl.edu 
type="cite">
  <META content="MSHTML 6.00.5730.11" name=GENERATOR>
  <DIV dir=ltr align=left><FONT face=Arial><FONT size=2>Padmanabhan<SPAN 
  class=546522214-30112006>,</SPAN></FONT></FONT></DIV>
  <DIV dir=ltr align=left><SPAN class=546522214-30112006></SPAN>&nbsp;</DIV>
  <DIV dir=ltr align=left><SPAN class=546522214-30112006><FONT face=Arial 
  size=2>Thank you for the response.&nbsp; To answer your questions, the message 
  is not being displayed for either class of users.&nbsp; As for permissions, 
  they are 644 with ownership being root:root.&nbsp; I tried setting them to 777 
  but that didn't make any difference either.</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=546522214-30112006></SPAN>&nbsp;</DIV>
  <DIV dir=ltr align=left><SPAN class=546522214-30112006><FONT face=Arial 
  size=2>- Bill</FONT></SPAN></DIV><BR>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> Padmanabhan Palanivelu [<A 
  class=moz-txt-link-freetext 
  href="mailto:padmanabhan.p@hp.com">mailto:padmanabhan.p@hp.com</A>] 
  <BR><B>Sent:</B> Thursday, November 30, 2006 02:10<BR><B>To:</B> Smith, 
  William E. (Bill), Jr.<BR><B>Cc:</B> <A class=moz-txt-link-abbreviated 
  href="mailto:wuftpd-questions@wu-ftpd.org">wuftpd-questions@wu-ftpd.org</A><BR><B>Subject:</B> \
  Re: Path-Filter Message not being displayed to 
  users<BR></FONT><BR></DIV><TT>Hello Bill,<BR><BR>Is it not being displayed for 
  both the type of users ? What is the permission bits on the message file 
  ?<BR><BR>Padmanabhan<BR></TT><BR>Smith, William E. (Bill), Jr. wrote: 
  <BLOCKQUOTE 
  cite=midCB58A9148BBF0A439E16B6355EE0260E0240FFA0@aplesnation.dom1.jhuapl.edu 
  type="cite">
    <META content="MS Exchange Server version 6.5.7650.28" name=Generator><!-- \
Converted from text/rtf format -->  <P><FONT face=Arial size=2>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.&nbsp; While   the path filter itself appears to be working, the message \
is not being   displayed to users.&nbsp; Instead, they receive an error indicating \
that   permission was denied.&nbsp; (Filename (accept)) appears in part of the 
    message but it's still not obvious to all as to what the problem 
    is.&nbsp;&nbsp; I've looked up the path-filter statement in the man page and 
    the format I have seems to be correct.&nbsp; Any ideas on why the message is 
    not being displayed?</FONT></P>
    <P><FONT face=Arial size=2>path-filter&nbsp;&nbsp;&nbsp;&nbsp; 
    guest&nbsp;&nbsp; /var/ftp/pub/etc/filenameconv.msg ^[[:alnum:]._-]*$ 
    ^[.-]</FONT> <BR><FONT face=Arial size=2>path-filter&nbsp;&nbsp;&nbsp;&nbsp; 
    anonymous&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    /var/ftp/pub/etc/filenameconv.msg ^[[:alnum:]._-]*$ ^[.-]</FONT> </P>
    <P><FONT face=Arial size=2>Thanks,</FONT> </P>
    <P><FONT face=Arial>Bill Smith</FONT><FONT 
    face="Times New Roman"><BR></FONT><FONT face=Arial>&lt;</FONT><A 
    href="mailto:bill.smith@jhuapl.edu"><U><FONT face=Arial 
    color=#0000ff>mailto:bill.smith@jhuapl.edu</FONT></U></A><FONT 
    face=Arial>&gt;</FONT><FONT face="Times New Roman"><BR></FONT><FONT 
    face=Arial>ISS Server Systems Group</FONT><FONT 
    face="Times New Roman"><BR></FONT><FONT face=Arial>Johns Hopkins University 
    Applied Physics Laboratory</FONT><BR><FONT face=Arial>11100 Johns Hopkins 
    Road</FONT><BR><FONT face=Arial>Laurel, MD 20723</FONT><FONT 
    face="Times New Roman"><BR></FONT><FONT face=Arial>Phone:&nbsp; 
    443-778-5523</FONT><FONT face="Times New Roman"><BR></FONT><FONT 
    face=Arial>Web:&nbsp;</FONT> <A href="http://www.jhuapl.edu/"><U><FONT 
    face=Arial color=#0000ff>http://www.jhuapl.edu</FONT></U></A><FONT 
    face=Arial>&nbsp; &nbsp;</FONT><FONT face="Times New Roman"> 
  </FONT></P><BR></BLOCKQUOTE><BR><PRE class=moz-signature cols="72">-- 
A good programmer is someone who looks both ways before crossing a one-way street. - \
Doug Linder  </PRE></BLOCKQUOTE><BR><PRE class=moz-signature cols="72">-- 
A good programmer is someone who looks both ways before crossing a one-way street. - \
Doug Linder </PRE></BODY></HTML>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic