unix

Chrooted FTP Access

FTP is an insecure, outdated and overall horrible protocol that you should never use yourself. Yet, sometimes you want to allow some people to upload files to your server, but you don't want them poking around your server or users demand FTP because they are used to it and have no idea what SSH/SFTP is.

Either way, following is how you "chroot" ftp users to their home folder, so they can't do any harm:

  • Download latest proftpd source to /usr/local/sources and change to that folder.
  • ./configure --sysconfdir=/etc --localstatedir=/var
  • make
  • make install
  • Edit vi /etc/proftpd.conf:
    • Change "Umask 022" to "Umask 002" #So, files they upload are group-writable
    • Uncomment "DefaultRoot ~" # this does actual chrooting
  • Make sure "/bin/false" is listed among the shells in "/etc/shells"
  • Create new unix user with "-s /bin/false"
  • Start proftpd daemon

Line Delimiters in Eclipse

Eclipse is an IDE of choice for many. It's been very popular among Java developers for a long time, but lately it is getting some traction in the PHP world, as well. A big contributor has been the absolutely fabulous Eclipse PDT project that makes Eclipse PHP-intelligent.

Whether you are developing in Java, PHP or any other language Eclipse supports, you most probably have to deal with cross-platform issues. One of the most trivial, yet annoying is the matter of line-delimiters. For whatever historical reasons Windows, Unix/Linux and Macintosh use different delimiters. It almost makes you wonder if the creators of the three major operating systems were sadistic enough to intentionally employ all three possible variations to make our lives more difficult.

Scheduling Skype Phone Call - Geek's VoIP

On unix-compatible systems, you can schedule Skype to make phone calls. For instance, On OS X, you can do it with a simple crontab setup, like:

55 7 * * * open callto://+13056740165 > /tmp/skype.log

which will call certain unfriendly company's customer service number, every day at 7:55 AM.

Syndicate content