Pink jackal

Erlang, Riak, WebRTC, Linux, Mac, traveling, etc.

Configuring SFTP only user access on Ubuntu

Jul 28, 18:38

Let's say we want to configure SFTP access for a user. We want the user to be able using SFTP (i.e. download/upload files on his WWW folder), but we don't want him to login over SSH and execute any commands on the server.

Edit /etc/ssh/sshd_config file and add the following at the end:

Match Group sftpusers
 ChrootDirectory /home/%u
 ForceCommand internal-sftp



Restart SSH: sudo service ssh restart

Add sftpusers group: sudo groupadd sftpusers

Add a user if necessary, and put it to sftpusers group: sudo usermod -a -G sftpusers %username%

Disable login to console for the user: sudo usermod -s /bin/false %username%

Now, the user will be able to connect using SFTP and do file operations using programs like WinSCP, but it will be unable to login over SSH and execute any commands on the server.

Building Erlang development environment for Windows

Jul 27, 10:47
  1. download Erlang for Windows and install it
  2. add path to Erlang bin directory (i.e. c:\Program Files\erl6.1\bin) to the system PATH variable
  3. download Git for Windows
  4. install Git for Windows — when installing, choose Use Git from Windows Command Prompt option
  5. go to a temporary folder
  6. in the command line execute git clone git@github.com:rebar/rebar.git — it will download Rebar Erlang build tool
  7. now go to rebar folder and execute bootstrap.bat — it will build Rebar tool
  8. copy rebar and rebar.cmd files from the rebar folder to the Erlang bin folder (i.e. c:\Program Files\erl6.1\bin)

Now you have installed Erlang, Git and Rebar.

My new book is published

Jun 1, 2014, 22:05

My new book on WebRTC just became available on Amazon: http://www.webrtcblueprints.com

WebRTC Blueprints

An error occurred while loading or saving gnome-terminal

Nov 8, 2013, 16:12

...nautilus, whatever


If you see this message, you can try to do this:


chmod 700 /tmp/gconfd-username/


You should also restart the machine or X server or VNC server (in case if you're working via VNC).

p.s. you need to replace 'username' in this command with your actual username

Emacs trump stucks if remote shell is ZSH

Apr 16, 2013, 15:31

How to get Emacs + Trump to work with ZSH as default shell?

Just out the following line into ~/.zshrc


[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ '


Ctrl + ↓ Earlier