Linux

Confine SSH user to home directory with rbash

You can use rbash to limit a user to their own home directory (they cannot cd to other directories, or write to them). To do this, you will want to edit /etc/passwd and change the user’s shell: test:x:1001:1001:,,,:/home/test:/bin/bash should change to test:x:1001:1001:,,,:/home/test:/bin/rbash I did this on Ubuntu 12.04, so if your system varies from that then you might have additional steps.

Autostart.sh in openbox

To autostart programs or scripts in openbox, add # Programs that will run after Openbox has started command1 & command2 & To the end of ~/.config/openbox/autostart (create the directories and file if they don’t exist) My autostart section looks like this: #Programs that will run after Openbox has started tint2 & kupfer & nm-applet & dropbox start &