Article View: sci.electronics.design
Article #385Re: network (as in The Internet, not YOUR "intranet") file systems
From: Waldek Hebisch
Date: Sun, 18 Oct 2026 00:21
Date: Sun, 18 Oct 2026 00:21
334 lines
16140 bytes
16140 bytes
Don Y <blockedofcourse@foo.invalid> wrote:
> On 10/13/2026 1:54 PM, Waldek Hebisch wrote:
>>>>> 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?
>>>>
>>>> Traditionaly, you are shifting goals. I wrote about Internet.
>>>> LAN and VLAN-s are different.
>>>
>>> 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?
>
> 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?? :>
FTP is fine if data is world accessible and you either do not
care about integrity or have a way to verify integrity (like
securely transmited cryptographic checksums).
The mere existence of servers is weak indicator. There are
active gopher servers (I supect that there are a lot of them,
but for me it makes no sense to try to find them), a guy in
alt.fun.computers offers various inf via finger protocol.
You asked "what is used", and AFAICS in most cases it is https,
or possibly http if you want to save cost of encryption and
have cryptographic checksums to verify integrity.
>>>> 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).
>>>
>>> So, how would you pull down the 84GB of files that I accessed?
>>> Build a big file list and then write a script?
>>
>> That depends on what is offered by the server. Recursive 'wget'
>> can pull a lot of data unatended.
>
> But that assumes you want everything under the tree. And,
> have a way to convey the URL to wget.
More or less the same as with ftp.
>> Sometimes links are hidden
>> in say Javascript, then I try to extract list of links and
>> run a script to fetch them.
>
> 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.
>> 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.
>>
>>> What *else* does your HTTPd host -- besides file stores?
>>
>> There is a wiki, in a sense file store, but with added features
>
> So, I can't access it with the normal filesystem API
> (readdir, read, write, etc.)?
No. I do not like this aspect, but core data is stored as blob
understood by wiki software, but inconvenient to handle in other
way.
> 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.)
>> (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.
>
> These are things that you wouldn't use an FTP service to implement.
> Serving up *files*, is!
>
>>>>> 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.
>>>>
>>>> AFAICS nobody sane would expose NFS to the Internet. Locally
>>>
>>> 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.
>>>
>>>> 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
>>>
>>> Ah, so your HTTPd is NOT used to serve files but, rather, for
>>> other purposes.
>>
>> In a LAN I personally find little use of web servers. Basically
>
> 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.
>
>> 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.
>>
>>>> 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.
>>>
>>> FTP runs on everything -- even if you don't have it set up.
>>
>> 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 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)
>
>>> 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?
>>
>> ftp is part of outdated world. But I hope that you do not expose
>> outdated software to the internet.
>
> 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.
>
>> 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).
>
> 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"
1) You asked what is used on the Internet. Frequently answer to
this is bloated software and bloated protocol.
2) Apparently you argue that ftp is better. AFAICS basically the
only advantage is that ftp spec is simpler. http/https have
many optional parts and even if you do not implement minimal
spec are still likely to work well. You say that ftp has less
state, but AFAIK it is not true: http can handle single request,
so can be almost stateless, the only state needed is for tcp
stream. ftp has separate control and data connections and even
if you intend to transfer single file you need to keep state of
control connection. As a practical example you can see http
server for Arduino.
If you want good perfromance server will get more complicated,
but http server has advantage that single connection can handle
both control and data and you can transfer several files over
single connection.
3) AFAICS having a single protocol is simpler than multiple
protocols. Since typically at least some things need encryption,
one is likely to need https server. Once this server is in
place easy way it to use it to serve other stuff. Also, web
browser have a lot of capabilties and user are expected to have
a web browser. That IMO explains why https is popular. Other
protocols get use either of inertia or possibly optimizing
specific application.
>>> You'd likewise advocate that I install SSHd on each box as
>>> their existing TELNET services are less than ideal?
>>
>> 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.
>
> 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.
Cost of ssh is mainly due to encryption. I did not look how
small ssh demon can be, but there are more lightweight alternatives
with less features. Note that after setting up encrypted
connection RAM cost may be rather low. Cost in CPU time depends
on hardware suport, but when connection is used for control
or debug even pure CPU implementation is likely to be good
enough.
Unecrypted connections are suitable only for closed networks so
are almost irrelevent in context of internet.
>> 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.
>
> 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)
I have a 386 machine, but it has no network card and was not
used in many years so such issues are irrelevant for it. But
when I used netoworked 386 I had ssh on it. Modern variant
indeed would need some porting work, but even old one is more
secure than unencrypted connection.
> 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...
--
Waldek Hebisch
Technical Details
Message-ID:
<11b13ea$3p658$1@paganini.bofh.team>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.bofh.team!paganini.bofh.team!not-for-mailReferences:
<11a9fft$c4mn$1@dont-email.me> <11ae6sq$1etd1$3@paganini.bofh.team> <11aevum$2a4ka$1@dont-email.me> <11ai8bb$20gh7$2@paganini.bofh.team> <11ai9n2$3ertm$1@dont-email.me> <11al1sj$2aq5h$1@paganini.bofh.team> <11al795$gv5n$2@dont-email.me> <11am5pb$2csfr$1@paganini.bofh.team> <11amer9$10ig1$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: antispam@fricas.org (Waldek Hebisch)
Newsgroups: sci.electronics.design
Subject: Re: network (as in The Internet, not YOUR "intranet") file systems
Date: Sun, 18 Oct 2026 00:21:32 -0000 (UTC)
Organization: bofh.team Usenet service
Message-ID: <11b13ea$3p658$1@paganini.bofh.team>
References: <11a9fft$c4mn$1@dont-email.me> <11ae6sq$1etd1$3@paganini.bofh.team> <11aevum$2a4ka$1@dont-email.me> <11ai8bb$20gh7$2@paganini.bofh.team> <11ai9n2$3ertm$1@dont-email.me> <11al1sj$2aq5h$1@paganini.bofh.team> <11al795$gv5n$2@dont-email.me> <11am5pb$2csfr$1@paganini.bofh.team> <11amer9$10ig1$1@dont-email.me>
Injection-Date: Sun, 18 Oct 2026 00:21:32 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="3971240"; mail-complaints-to="usenet@bofh.team"; posting-host="d028f9ad2fa2c51f22dbfed0d81d7daf"; posting-account="69e66f1681224ab92235b464ce7a90b6"
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.1.0-9-amd64 (x86_64))
X-Postfilter: Postfilter-NG 2026.10.2