LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-18-2023, 04:11 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,659

Rep: Reputation: 255Reputation: 255Reputation: 255
ncftp with ls with wildcard ?


Hello,

ncftp allows to use FTP and to list files.

However, ls *mystring* does not work.

Code:
ls -ltra       <- works
ls *mystring*  <- does not work.
How to enable ncftp with ls with wildcard / * ?

Thank you in advance.

Kind regards
 
Old 12-18-2023, 07:39 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,837

Rep: Reputation: 5971Reputation: 5971Reputation: 5971Reputation: 5971Reputation: 5971Reputation: 5971Reputation: 5971Reputation: 5971Reputation: 5971Reputation: 5971Reputation: 5971
It works for me.
Have you verified that a file with the desired substring exists in the current working directory?
 
Old 12-18-2023, 10:05 AM   #3
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,659

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by michaelk View Post
It works for me.
Have you verified that a file with the desired substring exists in the current working directory?
I look for pdf files... but it does not work

Code:
ls *graph*.pdf
but it does not work. maybe connection shall activate wildcard ?
 
Old 12-18-2023, 11:01 AM   #4
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,969

Rep: Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577
It depends on the ftp server. For example, proftpd documentation tells this:
Quote:
UseGlobbing
Syntax: UseGlobbing on|off
Default: UseGlobbing on
Context: server config, <VirtualHost>, <Global>, <Anonymous>
Module: mod_ls
Compatibility: 1.2.5rc1 and later

The UseGlobbing directive controls the use of glob(3) functionality, which is needed for supporting wildcard characters such as "*" in directory listing requests from FTP clients.

The glob(3) functionality in FTP servers has been knowwn to cause security issues (see CVE-2001-0249), thus should be disabled when not needed.

Examples:

# Turn off support for globs in LIST/NLST commands
UseGlobbing off
 
Old 12-18-2023, 02:04 PM   #5
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,659

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by Petri Kaukasoina View Post
It depends on the ftp server. For example, proftpd documentation tells this:
I read that we must activate something while connecting to the FTP server.
 
Old 12-18-2023, 02:27 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,837

Rep: Reputation: 5971Reputation: 5971Reputation: 5971Reputation: 5971Reputation: 5971Reputation: 5971Reputation: 5971Reputation: 5971Reputation: 5971Reputation: 5971Reputation: 5971
What ftp server are you running?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[ncftp] how to delete oldest directory and file using ncftp commands booyeeka Linux - Newbie 3 08-17-2010 11:23 AM
Trying to set up an NCFTP server, NAT problems. GT_Onizuka Linux - Networking 0 12-25-2004 07:16 PM
ncftp commands.. kurrupt Linux - Software 1 08-23-2004 06:55 PM
NCFTP bash script dezeque Linux - Networking 1 04-29-2004 03:55 PM
where can i get the sourcecode of Ncftp? whepin Linux - General 3 03-30-2002 02:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration