“I was an engineer at PGP from 2004-2011 … My own secret hope is that Apple is forced to open iMessage as a part of an anti-trust action and that acts as a catalyst for interoperability. ” Found here
Offlineimap is a tool to backup or sync IMAP accounts. Backing up an IMAP account to a local folder is easy.
Create a file `.offlineimaprc` in your home directory like described here: http://www.offlineimap.org/doc/quick_start.html.
Now you can run `offlineimap` from your command line. Type in your password and the download will start.
pgrep looks through the currently running processes and lists the process IDs. Use
pgrep -f 'process_name'
to find the process ID of a process.
To create a user (sftp) with readonly access via sftp to a single directory (/var/sftp_readonly), perform the following steps:
sudo su #become root useradd sftp #create new user passwd sftp #set a password groupadd sftp_readonly #create a group mkdir /var/sftp_readonly #create a directory usermod -G sftp_readonly sftp # add user to group chmod 755 /var/sftp_readonly/ #allow others to read cp /etc/ssh/sshd_config ~/sshd_config.bck #backup your ssh config editor /etc/ssh/sshd_config # edit your ssh_config
Add the following lines to the bottom of /etc/ssh/sshd_config
Match Group sftp_readonly X11Forwarding no AllowTcpForwarding no ChrootDirectory /var/sftp_readonly/ ForceCommand internal-sftp
Also make sure that the following line is present
Subsystem sftp internal-sftp
Reload your ssh service
sudo service ssh reload