Re: Deny directory listing on vsftpd anonymous upload
- From: Nigel Wade <nmw@xxxxxxxxxxxx>
- Date: Tue, 24 Jul 2007 10:10:09 +0100
Nikkilä Tommi wrote:
If you mean the dirlist_enable option that is a definite no-no, since
it prohibits the directory listing from everybody and I need the
other users to be able to see the contents of their respective
directories. Also the deny_file and hide_file options are out unless
they could somehow be tweaked to rule out [directory]/* and only to
be effective on the anonymous user. I guess a anon_hide_file option
would be a needed addition...
You can specify per-user settings with vsftpd. In the config file you can define a directory to hold the per-user config files (user_config_dir). In that directory you create a file for each user who's configuration needs to differ from the default. You only need to put the non-default settings in to the file.
Create a file in your user_config_dir called ftp (ftp is the anonymous user) with the line:
dirlist_enable=no
That should give a "550 Permission denied" message if the anonymous user attempts a directory listing.
--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@xxxxxxxxxxxx
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
- Follow-Ups:
- RE: Deny directory listing on vsftpd anonymous upload
- From: Nikkilä Tommi
- RE: Deny directory listing on vsftpd anonymous upload
- References:
- Deny directory listing on vsftpd anonymous upload
- From: Nikkilä Tommi
- Re: Deny directory listing on vsftpd anonymous upload
- From: Gaddis, Jeremy L.
- RE: Deny directory listing on vsftpd anonymous upload
- From: Nikkilä Tommi
- Deny directory listing on vsftpd anonymous upload
- Prev by Date: RE: Deny directory listing on vsftpd anonymous upload
- Next by Date: RE: Deny directory listing on vsftpd anonymous upload
- Previous by thread: RE: Deny directory listing on vsftpd anonymous upload
- Next by thread: RE: Deny directory listing on vsftpd anonymous upload
- Index(es):
Relevant Pages
- Re: Help. In ftp sessions, how to refresh directory list?
... The coder of the example inline comment probably means that if you are doing any directory
listing, it needs be refresh in order to see the posted file. ... For example, if you
wrote a FTP GUI program and you started it, connected to a ftp site, it will most likely start
by listing the current directory. ... For the WININET.DLL library, the FTP user command "DIR"
translates to a FTP SERVER "LIST" command, and to WININET.DLL does an emulation of the FindFirstFile/FindNextFile/FindCloseAPIs.
... (microsoft.public.vc.language) - Re: long ftp dir listings
... > I am often annoyed trying to get a long directory listing from my unix box ...
I often resort to using ftp in Windows DOS mode so I can scroll ... I use zsh's built in
ftp. ... autoload -U zfinit ... (freebsd-questions) - RE: vsftpd Questions.
... FTP access, I want her not to sshinto my system using that user ... After this
" Here comes the directory listing" message the directory listing ... directory instead
of the respective user's home directory. ... -- redhat-list mailing list unsubscribe
mailto:redhat-list-request@redhat.com?subject=unsubscribe ... (RedHat) - Re: FTP limitation on directory size
... I seem to remember someone talking in the past about some limitation on the ...
directory size for FTP to be able to see all the files. ... The FTP server producing a
directory listing can pretty well just use ... A gui client, on the other hand...
... (comp.os.vms) - Re: Deny directory listing on vsftpd anonymous upload
... that after the upload the anonymous user could not see the directory listing
... (and thus preventing the viewing of the file names in the directory)? ...
(RedHat)