News for hackers. Stuff that matters.
Re:Back That Gmail Up by sneak on Sunday May 27, 2012 @12:00PM (#4030308)
On most stock OSes, this will show your password to anyone who views the list of processes on the machine.

Try 'imapsync' [1] instead, as it uses a config file for your credentials instead of command-line arguments, keeping the secret(s) out of the process list.

Also, the author of this blog post is showing his inexperience:

> BaGoMa's output is pretty informative so I send it to log a file in case I ever want to check up on it and make sure the backups are still working.

You won't ever do that (no reason to check the logs when it's working), and it will fail (effectively-silently) one day without you noticing, and then you won't have backups when you actually find that you need them. Don't do it that way.

Instead, use a cronjob wrapper script (e.g. [2]) that is silent on success and outputs on error, so the "cronjob-output-as-email" feature works to notify you when it breaks.

[1] http://imapsync.lamiral.info/

[2] https://github.com/sneak/misc/blob/master/cronify/cronify

Re:Back That Gmail Up by cynwoody on Monday May 28, 2012 @01:28AM (#4032086)
> Try 'imapsync' [1] instead, as it uses a config file for your credentials instead of command-line arguments, keeping the secret(s) out of the process list.

Given where he said the box resides, I'd say he's got a major problem if unfriendlies are in s position to run ps -eF on it, no matter what is in the command strings, LOL!

And, if they can run ps, they can more than likely read the config files, too!

> Instead, use a cronjob wrapper script (e.g. [2]) that is silent on success and outputs on error, so the "cronjob-output-as-email" feature works to notify you when it breaks.

Excellent suggestion.

Re:Back That Gmail Up by chuckbot on Monday May 28, 2012 @03:14AM (#4032321)
gmvault opens a browser window, where you confirm you want to give an auth token to gmvault. All without a password anywhere.
Re:Back That Gmail Up by zoobert on Tuesday May 29, 2012 @04:23PM (#4039606)
If you don't want to use the oauth token mechanism or if it doesn't work, you could also use your gmail password but it isn't recommended.
Re:Back That Gmail Up by chuckbot on Thursday May 31, 2012 @02:09AM (#4046640)
My point was that I don't want to use the password. Don't want it in my cronjob file, don't want it in my logfiles. It's really bad practice of programs to rely on the Password. On the bright side, gmail also allows you to generate application specific passwords.
Re:Back That Gmail Up by MikeW on Sunday May 27, 2012 @07:20PM (#4031331)
imapsync doesn't work perfectly with gmails imap server. There are multiple scripts out there just to work around as many edge cases as possible.