🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.electronics.design
Article #294

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

#294
From: Don Y
Date: Tue, 13 Oct 2026 23:28
266 lines
13000 bytes
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??  :>

>>> 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.

> 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.)?

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"

>> 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.

> 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)

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...
Technical Details
Message-ID: <11amer9$10ig1$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
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>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Don Y <blockedofcourse@foo.invalid>
Newsgroups: sci.electronics.design
Subject: Re: network (as in The Internet, not YOUR "intranet") file systems
Date: Tue, 13 Oct 2026 16:28:39 -0700
Organization: A noiseless patient Spider
Lines: 266
Message-ID: <11amer9$10ig1$1@dont-email.me>
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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 13 Oct 2026 23:28:42 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1067521"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18O2qZ3XOxwnlLBOxoXG/vT"; posting-host="bc79b7fdbdfc8590048fdbb8ea4675a3"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:LRUgfutz3uMYep5xJQLJIG1ryyk= sha256:Qg/ldUsaSQejYJVgBIyRyHsHrqcZQyHvDsMLPhOZ4oM=
	sha1:zRVS/V+j7ZpAe1Fji49q8zHlrGo= sha256:8gFKtIQvMKKIr/3Db6vS3Yu696ysoamfRd8GAPTq61A=
Content-Language: en-US
In-Reply-To: <11am5pb$2csfr$1@paganini.bofh.team>