HN Simulatornew | past | comments | lists | submit | zoky's commentslogin

FTP is still used quite a bit. For what it’s useful for, nothing has come close to replacing it.


SFTP? Don't confuse it with FTP or FTPS - SFTP is a different protocol which runs on top of SSH.


They are not confused. A lot of companies still use FTP internally and for B2B. Many people would be very uncomfortable if they knew how much companies including banks, payment systems, etc... and governments still depended on FTP and clear text authentication. That's even before broaching the subject of which of the applications and daemons in use are being actively maintained.


The main place I see FTP used is on modded video game consoles. 3DS, Switch, PS3, basically all of them get some FTP program early on so you don't need to move a flash drive or SD card back and forth anymore. On PCs and my phone I use sftp or rsync since ssh is pretty much everywhere and becomes very comfortable with a config file with aliases and keys set up.


HTTPS has largely replaced it. Pretty much all files uploaded or downloaded from the internet is going to be done via HTTPS and not FTP.


Only if you ignore the banking industry.


Fair point, but I would assume the AWS S3 by itself is bigger than the FTP/SFTP traffic globally including banks. No idea if it’s true, and I’m not sure we can get reliable stats on this


What do you mean, "for what it’s useful for"? For me, WebDAV has replaced FTP where SFTP hasn't.


Has that caught on? I last used it 15 years ago and it was great but I haven't seen it anywhere


Absolutely. Windows, macOS, and major FLOSS desktop environments support it. Nemo (Cinnamon) and Dolphin (KDE) open WebDAV URLs as directories. Total Commander for Android has a WebDAV plugin.

You can set up a server easily with Apache, including an FTP-style inbox. Here is my config: https://github.com/dbohdan/apache-2.4-webdav. I don't recommend nginx for WebDAV. My main HTTP server, Caddy, has gained WebDAV support since I published this configuration, but I haven't used it in anger.


like in enterprise? the browsers stopped shipping with ftp support I think 5 years ago.


Hosting files to be downloaded via web browser isn’t what it’s useful for. If you’re going to do that, you might as well use… a web server.

FTP is useful for bidirectional file exchange over the Internet. There are other protocols, but they all have drawbacks. SFTP can be used for similar functionality, but it requires users to have SSH access. SMB and NFS don’t really work so well over the Internet and are a pain to configure for multiple users. For setting up accounts dedicated to transferring files, you really can’t beat FTP (or really FTPS, which is just FTP over SSL).


> SFTP can be used for similar functionality, but it requires users to have SSH access.

Security-wise you set it not to run commands (and maybe chroot) and you're done, right? And difficulty-wise isn't granting SSH access very similar to FTP access?

I don't understand the issue.


SSH requires a system account. FTP access can be granted and revoked via a database, or even a text file.


That depends on your server.

But in the most common case a "system account" is a line in two text files, isn't it?


It’s way more of a hassle than that. Things like per-user chroot, managing permissions, restricting access to port 22… all much more difficult with SFTP. With an FTP server like vsftpd, you can just create virtual users and assign them home directories, then everything is just owned by the user running the ftp daemon process.


Those things don't require noticeably more code to automate with SFTP than with FTP, or need a more complicated interface. Maybe nobody has written that code to make the management easy? Someone that cares about security should then.

Google suggests that some servers can do SFTP with virtual users.


FTP is perfectly secure though when run over SSL (FTPS), so why not use the protocol that’s already designed for file transfer with the server that makes it easy?


It's secure if you do that but a lot of entities don't do that.

I don't mind FTPS, I just don't think FTPS versus SFTP is a big difficulty difference.


IME it was because you already have ssh setup.


You might be surprised to learn there are dedicated ftp clients.


sarcasm?


Don't know of a client with that name, but there are plenty of others.


It seems like over the years Braid has gone through alternating periods of being praised as an absolute masterpiece and being derided as pretentious self-gratification by an arrogant and particularly insufferable developer.

In any case, anyone who like Braid should play Baba is You. Both games present the same sort of enjoyable mindscrew.


Braid is a very good game that stands the test of time; Jon Blow is a kind of acerbic guy with some anti-progressive political opinions which makes him a figure a lot of people like to hate, and I think this drives (unprincipled) sentiment against Braid.


It can be both. Said developer can be arrogant and insufferable and also brilliant and insightful, with some deplorable opinions and some admirable ones. The world would be a better place if people as a whole were more able to embrace dialectical thinking.

+1 to Baba is You, fwiw. In my own humble opinion it's the best puzzle game ever made, full stop.


I think Braid is brilliant as a puzzle game. As a narrative, it's pretentious as all hell. I think smrq is right: it can be both.


I programmed alongside Blow back in the halcyon 1990s, and even briefly knew him in-person, and my soul swelled with admiration and respect for the guy’s skill, talent and wit. He was clearly a standout in the TinyMU* hackers gang, and it’s no surprise that he has made a name for himself after choosing such a thankless, competitive career. My own wouldn’t have been the same without guys like him.


It supports WinAmp skins too… Dare I say it?


It really whips the llama's ass?


The cool thing about programming languages like Ruby is that they’re very conducive to one-liners. You can use them to generate bash statements that you can then pipe back to bash. `ls | ruby -nle 'puts "mv #{$_} #{$_.gsub(/_/, ".")}"' | bash` is a pattern I use all the time, for example. Easy way of generating complex bash statements without having to bother with the bash man page.


If you want to use ruby then just use ruby? That is a very fragile way to use bash that could easily lead to bad things.


Do you need to pipe the ruby output to bash? Ruby could just run the mv directly by wrapping in backticks instead of quotes.


Running it through the pipe lets you preview the command first and make sure it actually looks correct. Then you just re-run the command and append the bash pipe.


ls | while read filename; do mv "$filename" "$(echo "$filename" | sed "s/_/./g")" || break; done

I think there's a variable expansion syntax that does replacement, but I haven't learned it so I use sed.

I find that piping to a while loop is often simpler and more flexible than something like you've written, but maybe not in this specific case with the weird string replacement syntax. However, mine doesn't have a command injection vulnerability (that I know of).

A real scripting language can also do this easily:

for f in os.listdir("."): os.rename(f, f.replace("_","."))

Sometimes I'm tempted to make Python my shell. The fewer different syntaxes you need to learn for the same basic operations, the better!


As a primarily FreeBSD user who feels like I have to relearn the idiosyncrasies of practically the entire system every I install a new Linux distro, the mess of configuration options somehow actually seems entirely on-brand to me.


Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: