Live data from Hacker News

FTP is 50 years old

filestash.app

181–187 of 187 posts

Re: FTP is 50 years old

#181
post #118

Earlier quoted context omitted.

I was forced to implement chroot() for SFTP users under Oracle/RedHat Linux 5. We are, alas, still running it. The OpenSSH 4.3 release on this platform does not support the "match" keyword, but I was able to coerce it to run a separate SFTP-only on port 24, where I constrained the SFTP-specific accounts. I find that I prefer this approach. My wily users then discovered that the working passwd entry also let them logi…

It uses pam so you can configure it however you want or even write your own module. It’s dangerous though, be sure to check these users don’t get shell access or the ability to create network pipes.

also symlinks and hardlinks. You can restrict this in the internal-sftp subsystem assuming you force sftp.

Re: FTP is 50 years old

#182
post #118

Earlier quoted context omitted.

I was forced to implement chroot() for SFTP users under Oracle/RedHat Linux 5. We are, alas, still running it. The OpenSSH 4.3 release on this platform does not support the "match" keyword, but I was able to coerce it to run a separate SFTP-only on port 24, where I constrained the SFTP-specific accounts. I find that I prefer this approach. My wily users then discovered that the working passwd entry also let them logi…

Makes sense. I also had to implement a work around "scponly" for CentOS 5. Not fun. I put a sftp server back up. Feel free to play around with it. This is a single sshd instance and a copy of the config is in the /pub directory of the anonymous user. I did not change anything in pam. The sftp users are selinux confined as user_u. server: 45.79.100.12 port: 22 username: anonymous, anon, pub, public pw: (null) just hit…

Updated this system. It should create accounts if you try to sftp to it. Just wait 2 mins and try the same name again. Any non system account 2 to 16 chars starting with alpha should work.

Re: FTP is 50 years old

#184

Old but not obsolete.

Definitly, there's about 10 millions server with port 21 opened (source: https://www.shodan.io/search?query=port%3A21 )

One of those is definitely mine. I have an anonymous FTP server up and serving a bunch of old goldsrc game maps and mods, mostly for my own nostalgia but sharing for anyone else who liked the original Half-Life series and mods as much as I did.

Re: FTP is 50 years old

#185
post #73

Not that I think we should go back, but I do miss the wildwest days of web development when it was still acceptable to FTP untested code straight to production. For my first dev job we would develop on production using an FTP client to push up changes on save. One day I was writing an SQL UPDATE statement and I forgot to include a WHERE clause. I basically nuked the entire product DB and it took days to recover becau…

It's still used a lot in finance for file delivery.
Post reply on HN