[dev] FTP script: how to store password?

2013-02-09 Thread Hugues Moretto-Viry
Hi guys, I'm writing a little FTP client in pure shell + curl for my personal needs. Anyway, I need to store my passwords so I chose SQlite, because I don't want to put them in a regular file or in the script. Unfortunately, I think this is not really perfect. Do you know how to store my password

Re: [dev] FTP script: how to store password?

2013-02-09 Thread Daniel Zhang
Store it in pure text file & chown root & chmod 600 is the simpliest way. 2013/2/9 Hugues Moretto-Viry > Hi guys, > > I'm writing a little FTP client in pure shell + curl for my personal needs. > Anyway, I need to store my passwords so I chose SQlite, because I don't > want to put them in a reg

Re: [dev] FTP script: how to store password?

2013-02-09 Thread Sam Watkins
On Sat, Feb 09, 2013 at 12:20:58PM +0100, Hugues Moretto-Viry wrote: > Hi guys, > > I'm writing a little FTP client in pure shell + curl for my personal needs. > Anyway, I need to store my passwords so I chose SQlite, because I don't > want to put them in a regular file or in the script. > Unfortu

Re: [dev] FTP script: how to store password?

2013-02-09 Thread v4hn
On Sat, Feb 09, 2013 at 12:20:58PM +0100, Hugues Moretto-Viry wrote: > Hi guys, > > I'm writing a little FTP client in pure shell + curl for my personal needs. > Anyway, I need to store my passwords so I chose SQlite, because I don't > want to put them in a regular file or in the script. Why not?

Re: [dev] FTP script: how to store password?

2013-02-09 Thread hiro
store them in a dbus transmission loop.

Re: [dev] FTP script: how to store password?

2013-02-09 Thread Hugues Moretto-Viry
Thank you for the ideas, guys. @v4hn: Now, the password is requested via a variable (maybe I'll change it), for example: PASS=$(sqlite3 $HOME/.bin/Misc/FOO.sqlite "select pass from t1 limit 1";) I don't know if anyone else can read it with ps -ax. I tried myself and I was unable to see it.

Re: [dev] FTP script: how to store password?

2013-02-09 Thread Chris Down
$ yes password >/dev/null & ps ax | grep '[y]es' ; kill $! [1] 5476 5476 pts/9R 0:00 yes password On 9 February 2013 20:08, Hugues Moretto-Viry wrote: > > I don't know if anyone else can read it with ps -ax. I tried myself and I > was unable to see it. >

Re: [dev] FTP script: how to store password?

2013-02-09 Thread Hugues Moretto-Viry
If I understand correctly, your demonstration works because it's like you added a parameter to an existing program. In my script, you can't use a parameter, I just use variables inside the script. So, ps -ax just shows the called script or the command used in the variable (here SQlite) and not the

Re: [dev] FTP script: how to store password?

2013-02-09 Thread markus schnalke
[2013-02-09 22:32] Sam Watkins > On Sat, Feb 09, 2013 at 12:20:58PM +0100, Hugues Moretto-Viry wrote: > > Hi guys, > > > > I'm writing a little FTP client in pure shell + curl for my personal needs. > > Anyway, I need to store my passwords so I chose SQlite, because I don't > > want to put them i

Re: [dev] FTP script: how to store password?

2013-02-09 Thread Charlie Kester
On 02/09/2013 03:48, hiro wrote: store them in a dbus transmission loop. Please don't. Maybe your experience is different, but it seems like dbus only works less than half the time. You might as well save your passwords in /dev/null.

Re: [dev] FTP script: how to store password?

2013-02-09 Thread Christoph Lohmann
Greetings. On Sat, 09 Feb 2013 20:18:10 +0100 Charlie Kester wrote: > On 02/09/2013 03:48, hiro wrote: > > store them in a dbus transmission loop. > > Please don't. > > Maybe your experience is different, but it seems like dbus only works > less than half the time. Noone plans to store and

Re: [dev] FTP script: how to store password?

2013-02-09 Thread Rob
On Sat, Feb 09, 2013 at 01:41:26PM +0100, Hugues Moretto-Viry wrote: > If I understand correctly, your demonstration works because it's like you > added a parameter to an existing program. > In my script, you can't use a parameter, I just use variables inside the > script. > So, ps -ax just shows t

Re: [dev] FTP script: how to store password?

2013-02-09 Thread m...@pels.in
Hugues Moretto-Viry stated, On 2013-02-09 12:20: > Hi guys, > > I'm writing a little FTP client in pure shell + curl for my personal needs. > Anyway, I need to store my passwords so I chose SQlite, because I don't > want to put them in a regular file or in the script. > Unfortunately, I think this

Re: [dev] FTP script: how to store password?

2013-02-09 Thread Rox 64
>I'm writing a little FTP client in pure shell + curl for my personal needs. Looks interesting, will you make a public release?

Re: [dev] FTP script: how to store password?

2013-02-09 Thread Andrew Hills
On Sat, Feb 09, 2013 at 12:20:58PM +0100, Hugues Moretto-Viry wrote: > Anyway, I need to store my passwords so I chose SQlite, because I don't > want to put them in a regular file or in the script. > Unfortunately, I think this is not really perfect. > > Do you know how to store my passwords outsi

Re: [dev] FTP script: how to store password?

2013-02-09 Thread Daniel Bryan
On Feb 10, 2013 10:53 AM, "Rox 64" wrote: > > >I'm writing a little FTP client in pure shell + curl for my personal needs. > > Looks interesting, will you make a public release? +1. I spend far too much time in sucky clients like FireFTP.

Re: [dev] FTP script: how to store password?

2013-02-09 Thread Sam Watkins
> ai.ki sam something > nipl.net sam whatever > This looks much like a reinvention of netrc. Netrc is already > there and widespread. Also, users know that it contains sensible > data. The things not so perfect of netrc are minor compared to > that. A good point, in fact curl can use

Re: [dev] FTP script: how to store password?

2013-02-09 Thread Sam Watkins
On Sat, Feb 09, 2013 at 11:20:38AM -0800, Charlie Kester wrote: > On 02/09/2013 03:48, hiro wrote: > >store them in a dbus transmission loop. > > Please don't. sarcasm detection fail > > >

Re: [dev] FTP script: how to store password?

2013-02-09 Thread Charlie Kester
On 02/09/2013 17:44, Sam Watkins wrote: On Sat, Feb 09, 2013 at 11:20:38AM -0800, Charlie Kester wrote: On 02/09/2013 03:48, hiro wrote: store them in a dbus transmission loop. Please don't. sarcasm detection fail Yeah, I guess so. Glad to hear it was never a serious suggestion.

Re: [dev] FTP script: how to store password?

2013-02-09 Thread hiro
comcast.

Re: [dev] FTP script: how to store password?

2013-02-09 Thread Charlie Kester
On 02/09/2013 20:37, hiro wrote: comcast. lol. yeah, I am a total loser.

Re: [dev] FTP script: how to store password?

2013-02-10 Thread Hugues Moretto-Viry
Rox and Daniel: Yes, I'll share it when it's done.

Re: [dev] FTP script: how to store password?

2013-02-27 Thread Hugues Moretto-Viry
Finally, I found lftp[1] so I don't know if I will continue this script. Anyway, my script has less dependencies since it just needs sh + awk + curl (I dropped sqlite for plain file + awk). [1] http://lftp.yar.ru/ H.Mo.