network (as in The Internet, not YOUR "intranet") file systems

Oct 09, 2026 Last reply: 4 weeks ago 29 Replies

Most relevant reply

Don Y

The concensus was FTP -- for the sites we are likely to frequent. Additionally, it is a credentialed protocol so you're more likely to have access to things that aren't available to "unauthorized" clients. HTTP(S) doesn't really serve the same sort of clients. FTP filesystems…

Read the full reply

I have a service that catalogs every file on every medium present, here. It is smart enough to dig into various archive formats (zip, tar, ace, etc.) and other containers (vhd, vmdk) to find files that they can contain. And, it does so recursively (so, a tgz located in a vmdk that happens to contain a vhd which holds a cpio archive... can be explored).



A colleague has asked me to extend this for his use *beyond* his local network segment.



E.g., he'd like to be able to point it at various Internet resources and have those contents catalogued, as well.



As I'm not keen on undertaking a major redesign, I'm just looking to wrap those resources in a FUSE and just add hooks to mount the resources in question thusly.



But, there are lots of ways that resources are exposed to The Internet (WebDAV, FTP sites, HTTP-wrapped folders, etc.).



Any observations of what seem to be the most common? [I'm not interested in cloud provided services as they can change their interfaces on a whim]


Don Y snipped-for-privacy@foo.invalid wrote: |--------------------------------------------------------------------------| |"But, there are lots of ways that resources are exposed to The Internet | |(WebDAV, FTP sites, HTTP-wrapped folders, etc.). | | | |Any observations of what seem to be the most common? [I'm not interested | |in cloud provided services as they can change their interfaces on a whim]"| |--------------------------------------------------------------------------|

HTTPS is the most common.

If Plan 9 would be common then perhaps a new version of Plan 9 (e.g. without real Plan 9's lame memory limit) would still encourage mapping the Internet onto a local filesystem.

(S.

formatting link
fuer Kontaktdaten!)

The Apache Commons Virtual File System might not be what you want (e.g. it does not support all the file formts that you mentioned) but it may be worth considering: "Commons VFS provides a single API for accessing various different file systems. It presents a uniform view of the files from various different sources, such as the files on local disk, on an HTTP server, or inside a Zip archive.

Some of the features of Commons VFS are:

A single consistent API for accessing files of different types. Support for numerous file system types . Caching of file information. Caches information in-JVM, and optionally can cache remote file information on the local file system (replicator). Event delivery. Support for logical file systems made up of files from various different file systems. Utilities for integrating Commons VFS into applications, such as a VFS-aware ClassLoader and URLStreamHandlerFactory. A set of VFS-enabled Ant tasks." says

formatting link
Cf.
formatting link

I am aware of a person who is disappointed by this API, but it disappoints him because of a failure to perform a specific purpose which you did not say that you want. (S.

formatting link
fuer Kontaktdaten!)

The concensus was FTP -- for the sites we are likely to frequent. Additionally, it is a credentialed protocol so you're more likely to have access to things that aren't available to "unauthorized" clients. HTTP(S) doesn't really serve the same sort of clients.

FTP filesystems are ancient history (dating back at least 30 years). The same approach can address objects served over HTTP. I spent a few hours adding support for "FTP objects".

But, I had assumed all filesystems would tend to be local. And, under "your" control -- not some other entity. Accommodating such means certain types of errors are potentially more common.

It also means a narrower pipe is typically involved in access. I.e., the net bandwidth available of your client, connection, server's connection and server itself.

I have to be able to read every object encountered (excepting those whose reading would have side-effects) to:

- determine an appropriate signature for it's current state

- identify the actual type of object involved.

E.g., "text" might be Java source code, C++ source code, C source, SQL, Makefile, Korn shell script, Bourne, etc. I use the file name and an analysis of the file's contents to make this assessment (the file's contents being available as a side-effect of determining its signature!).

I need to add switches to the algorithm to limit how/when/why it looks at the actual files' contents as a "foreign" FTP site likely would be annoyed if I *effectively* downloaded their entire contents! Especially as I am not *keeping* those contents locally!

[A site that supports server-side MD5 computation avoids one of the needs for the download. Heuristics relying on likely naming conventions could avoid the need for examining the content in detail to characterize the objects]

Don Y snipped-for-privacy@foo.invalid wrote: |-----------------------------------------------------------------| |"> HTTPS is the most common. | | | |The concensus was FTP -- for the sites we are likely to frequent.| |[. . .]" | |-----------------------------------------------------------------|

FTP is less bad than HTTPS. HTTPS is the most common. FTP suffers corruptions (e.g. CD-sized ISO files). I never notice SFTP suffering a corruption, but I never use SFTP as much as FTP for such big transfers. (S.

formatting link
fuer Kontaktdaten!)

Hash support is built into newer clients and servers. So, you can query the server for the hash of a file and compare that with the locally computed hash to verify integrity.

Other servers have long maintained an md5sums file that you can DL and grep for the file of interest.

That is curious consensus. I see FTP uses in VLAN-s, but on the Internet its uses seem to be close to negligible. To mes HTTP(S) looks much more popular (with nothing really coming close to it).

Concerning "authorised", AFAIK FTP sends passwords in clear text, so really should not be be used when you need authentication over untrusted network (that is outside VLAN that you control). IIUC using https one can have authentication that uses proper encrypted protocol, so much safer.

BTW: It is hard to imagine network administrator blocking https port. All other ports seem to be fair game. So, even if underlying protocol is different, there is reasonable chance that it will be tunelled via https to avoid network blocks.

Note: "for the sites we are likely to frequent"

But requires a web server at the site. Do you serve files in your organization with a web service? Or, via FTP? I.e., when an engineer wants to access the corporate file server, is it a web server that he interacts with? So, if he wants to pull down an entire folder, does he just access the folder? Or, its individual contents?

I have a web server running on just one host -- the one that SWMBO uses to peruse her music archive. And that just so I can "dress up" the presentation for her. Every other file store is accessed via FTP or an NFS/CIFS share -- so I don't have to maintain web services on every host just to gain access to its content.

The file systems that I export are similarly served. No one wants to be coerced into an IT role. My colleagues know how to use FTP so it doesn't need to be "dumbed down" for them.

FTP is probably the hardest to use when there is NAT or port filtering along the route. I like sftp as it is secure, very flexible and doesn't need anything special to be set up on any of the machines where I use it. https is also very useful if I have a set of files that I explicitly want to share without giving access to the whole machine. John

I've never had a problem connecting to an FTP service.

Yet, we still see these *FTP* sites on the Internet (many quite large!) -- not SFTP (nor FTPS nor HTTP) sites.

formatting link

You can do that with an FTP server as well.

OK, still curious.

Sure, each access method requires its server.

Traditionaly, you are shifting goals. I wrote about Internet. LAN and VLAN-s are different.

I work at a universty. Central university administration basically uses Microsoft for most common services. There is an important university-wide non-Microsoft system which is accessed from the Internet via https. Local department used to have ssh (and so scp) access to files (either on a file server or via NFS mounted filesystem available to ssh sever), but now most of this is moved to Google.

There are various internal systems, AFAIK they are reachable from outside only via VLAN.

Outside university I run my server (https, ssh, mail, no ftp).

AFAICS nobody sane would expose NFS to the Internet. Locally machines that I have usually have web server installed, but frequently the server is not active or not configured to give access to files. OTOH the machines do not serve as store for files. Machines run ssh demon and ssh/scp it is used to transfer files when needed. No of my machines runs FTP. ATM I do not use NFS, but I would if it made sense.

We transfer files. We don't "interact" with scripts on web sites. So, we rely on protocols intended to transfer files. FTP seeming to be the most ubiquitous.

I pulled 84GB from ftp://ftp.netbsd.org last week. Without touching my keyboard during the transfer.

I asked how you serve files in your organization. By extension, I would assume you would use a similar mechanism to serve them to "outsiders" and that your staff would use the same sorts of tools to retrieve files from other sites.

Did you note the catalog of *open* FTP sites I mentioned?

You have an IT department. None of my colleagues do. Nor do we want one. We don't need that overhead when we can achieve our goals with "standard products".

What's your IT department's budget? How many do they employ? How many seats do they serve? How often do they pull the rug out from under you for an "upgrade cycle"?

Should we move everything to a cloud service and just pay them?

So, how would you pull down the 84GB of files that I accessed? Build a big file list and then write a script?

What *else* does your HTTPd host -- besides file stores?

I didn't say *I* did. I stated that *my* filestores are accessed via SMB or FTP (rsync in some cases).

The point being that I don't run a web server just to access a file store.

Ah, so your HTTPd is NOT used to serve files but, rather, for other purposes.

FTP runs on everything -- even if you don't have it set up. I can access an FTP server with an Inferno host, Sun workstation (with badly outdated software), etc.

Are you advocating I *build* modern tools and install them on all of these platforms JUST so I can avoid using a tool that already is in place?

You'd likewise advocate that I install SSHd on each box as their existing TELNET services are less than ideal?

Gee, it sure would be nice to have that IT department...

To see how handy FTP is as a file transfer protocol (I presume you have access to at least one Windows machine):

Open "This PC" Right click to access "Add a network location" Follow the wizard to specify an FTP site: ftp.netbsd.org/pub/pkgsrc select anonymous or provide a user/credentials give it a name let the site open

DRAG a folder onto your desktop to copy it there (if you have write access to the site, you can similarly drag a local file *into* it)

Note that this is the same interface you would experience with an SMB share (or an NFS share if you had support for it)

In my use case, I walk that tree as if it was a local filesystem, computing checksums for each entity encountered as well as encoding the relationship of each entity to the items it "contains". I also use the name and a sample of each's contents to identify their nature (executable binary, korn script, bourne script, awk script, makefile, tgz archive, Limbo source, SQL script, etc.)

The hassle with doing this for a foreign site is the amount of data that has to be transfered to complete both of these assessments. If the FTP site supports MD5/MMD5 commands, I can skip the checksum computation and just take the sites word for it (something that isn't available for local files/folders without explicitly examining their entire contents).

But, I can only rely on hints in the *name* to infer the type of object without moving a lot of data!

(try to click on "distfiles" in the above FTP share...)

I imagine that SFTP is better. (S.

formatting link
fuer Kontaktdaten!)

It's not a question of which protocol is "better". Rather, "Any observations of what seem to be the most common?"

As I've said, *we* have determined that the sites we are most interested are served by FTP. FTP servers don't inherently support SFTP. Nor FTPS for that matter (which would be an easier adaptation)

I use my own server also for work related purposes, the main reason being that I consider university services to be inadequate. I certainly do not recomend cloud offerings. I simply noted that they are used.

That depends on what is offered by the server. Recursive 'wget' can pull a lot of data unatended. Sometimes links are hidden in say Javascript, then I try to extract list of links and run a script to fetch them.

When I can I use rsync which IME is rather efficient. Also git seem to be quite efficient. scp seem to be less efficient, but is convenient when available.

There is a wiki, in a sense file store, but with added features (history and formatting). There is access to computations. There was an application to show students their grades (a student could see only his/her grades). For some time I had a big php package with similar purpose, but its performance was rather bad, it offered a lot of functionality that I did not need and did not allow things that I can do with a home-grown app.

In a LAN I personally find little use of web servers. Basically they are here so that I can test things in a sandbox before deploying them on the internet. OTOH, IME people expect to access various things from web browser, so I have web server for them.

To be more precise, some programs use web browser as ther UI, but I have them available only one the machine they run on and not on the LAN.

ftp client runs when you have a binary, that is when it is set up. For server beside binary I would need configuration (I do not know how much as in more than 30 years I never set up ftp server).

ftp is part of outdated world. But I hope that you do not expose outdated software to the internet.

Normally I have at least modestly modern software (say less than

15 years old). All my resonably sized systems have ssh demon. In one case I have system (200 MB installed size) with no web server. AFAIK installing a web server there would be easy, ftp less easy. In other cases having a web server is basically choosing an install option (and similarly for ftp server).

My systems are installed with ssh demon and no access via telnet. Unless you have _very_ old systems it takes extra work to get telnet demon.

I am not sure what you consider as modern, the last systems where I used telnet for connection (as opposed to using it as a debug tool) was NCSA telnet on DOS machines. Once those were retired (which happended more than 25 years ago) it was ssh only.

FTP is okay as long as it’s read-only and the information isn’t confidential. There are pretty secure FTP servers out there, iirc—I used to use one called vsftp.

Cheers

Phil Hobbs

Or, did you miss that? All of those sites running "old" software instead of migrating their stores to an HTTP(s) interface. What were they thinking?? :>

But that assumes you want everything under the tree. And, have a way to convey the URL to wget.

I point a tool at two FTP directories (or, two shares, or a share and an FTP directory; or a share and a local file, etc.) and tell it to "make them consistent". (much like rsync in its

*unconstrained* mode).

The cost for determining the state of each tree varies. If a filename is missing in one tree, then (obviously) that's an inconsistency that needs to be resolved (do you remove it from the tree that HAS it? Or, add it to the tree that doesn't?).

You can look at file sizes and a discrepancy is obvious there.

Timestamps are more dubious -- unless you have control over both trees and have implemented a policy to ensure they never get altered from their initial settings.

So, short of transfering the entire file (which is the last resort) and comparing -- keeping (or pushing) one or the other in the event of a discrepancy -- the only other mechanism is to compare hashes.

FTP servers now support MD5 and MMD5 commands. Or, will often have an md5sums file that you can pull down to check the hashes of the files on the server before pulling them down.

rsync can exploit all of these mechanisms. BUT, the operator of an rsyncd can elect to turn off certain command line options. E.g., to disable the "checksum" comparison, forcing you to rely on sizes and timestamps -- and, requiring a DL to get the actual contents.

So, I can't access it with the normal filesystem API (readdir, read, write, etc.)?

The advantage of SMB and NFS shares is they look like local files to code running on the local host. FUSE lets me mount other objects as filesystems (e.g., an FTP site, a tarball, a VMDK, etc.). So, I can, for example, "mount" a tarball and then treat its contents as if it was just a collection of files.

As the purpose is cataloging files, I can locate a particular file regardless of the "container" that is holding it, just by examining one catalog ("Where are my 2024 tax returns?").

And, can find duplicate copies ("backups") in the event that a particular copy is corrupt or unreadable (or, simply not as easily accessed as another -- e.g., the catalog includes all of my offline media, optical disks, etc.)

These are things that you wouldn't use an FTP service to implement. Serving up *files*, is!

As I said, I have exactly one -- for SWMBO to build "playlists" (virtual CDs) for her HiFi. A web page can add logic to the interface instead of just a listing of files (which likely are NOT grouped the way she would like to hear them).

As interfacing to SQL is common in a web site design, it seemed more prudent to build a web site than to write code to handle the data management AND presentation.

FTP clients and servers are typically present in my OSs. IIS (windows) also supports FTP (and FTPS). Though I would hesitate to serve anything from a windows machine (mainly because I wouldn't have to "start over" each time MS forced an update)

You mean like email? You'll note the number of sites that still serve files via FTP -- despite "modern" alternatives being available.

ftp.netbsd.org ftp.freebsd.org ftp.mirrorservice.org ftp.cs.cmu.edu

many university department similarly deploy content this way as it is easy, the protocol is lightweight, etc.

FTP uses far less resources (memory and MIPS) than HTTP. HTTP has more "work" to do than FTP. FTP stores far less state (per connection) than HTTP. I can implement an FTPd on an 8 bit MPU and performance will be limited to how fast the MPU could push bytes down the protocol stack (because that's all it has to do). HTTPd would be considerably harder (unless you decide to only implement a specific subset -- and lose any other capabilities that could have been available)

Think: "an order of magnitude"

To enable telnetd, I remove the semicolon from the line in inetd.conf(5) that defines that service. Then, "telinit q" and its live.

I do similarly to enable sshd. But, have to ensure I have host keys in place client and server side. And, hope that the dozens of settings in ssh.config and sshd.config have thoughtfully been set for *my* needs. This, because ssh can be used as a tunneling protocol so the variations require are considerably more complex.

As with FTP, the telnet service and client are considerably smaller and simpler than their ssh counterparts -- on the order of tens of KB. Again, think an order of magnitude difference to support SSH.

E.g., you can likely shrink a telnet client to < 20KB in an embedded system. And, set aside a few KB of RAM for a single session.

An SSH client would be almost ten times that and require 10 times the RAM, per session.

As with every application, time brings bloat, not economy.

I use an SB2000 to verify that my sources are portable (the SB2000 is SPARC, not ARM or x86; big-endian instead of little; etc.). As my code runs on bare metal, I am only using the hardware resources on the machine. So, the fact that it runs SLOWARIS 8 (EoL more than 15 years ago!) isn't an issue -- as long as I can move files onto it and cause them to run.

I have a Sun SPARCstation Voyager (1994 collector's piece) that is similarly unconstrained. Ditto a Compaq 386 Portable (1987).

Why would I want to spend time porting "modern" software to *any* of these boxes? As long as I can access them remotely and move data between them... Their value is historic, not performative (though the 386 also host an Opus PM 110 to give me access to that toolchain)

My workstations run W7, NetBSD 10.1 and FreeBSD 14.3. But, the network is airgapped so there's no need to worry about some clandestine packet sniffer hiding in a bathroom...

formatting link
are typical program and memory sizes of telnet and ssh clients and servers> [paraphrased for formatting]

Size and Memory Comparison

Protocol Typical Binary Size Typical RAM Usage (Per Session) Telnet Client ~100 KB to 150 KB ~1 MB to 2 MB Telnet Server ~50 KB to 100 KB ~1 MB to 3 MB SSH Client ~800 KB to 1.5 MB ~4 MB to 7 MB SSH Server ~1.2 MB to 2.5 MB ~5 MB to 10 MB (per daemon/connection)

Most folks are ignorant of these issues as they live in "a world of plenty". (Note google is working with desktop implementations, here)

Not all FTP clients support downloading a folder. I know of no SFTP client which does not support downloading a folder. (S.

formatting link
fuer Kontaktdaten!)

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required