passing rsyncd password in a script (no ssh) - how?
Wojtek.Pilorz
wpilorz at bdk.pl
Thu Jan 11 07:30:56 GMT 2007
On Wed, 10 Jan 2007, Eberhard Moenkeberg wrote:
> Date: Wed, 10 Jan 2007 23:42:46 +0100 (CET)
> From: Eberhard Moenkeberg <emoenke at gwdg.de>
> To: rsync at lists.samba.org
> Subject: Re: passing rsyncd password in a script (no ssh) - how?
>
> Hi,
>
> On Wed, 10 Jan 2007, Matt McCutchen wrote:
> > On 1/10/07, Wojtek.Pilorz <wpilorz at bdk.pl> wrote:
>
> > > secret_pass would no longer be secret on most systems;
> > > Consider using --password-file instead.
> >
> > I doubt that environment variables are readable by others "on most
> > systems". On my Linux 2.6.18 system, a process's environment
> > variables are only readable by its owner. However, I prefer to use a
> > password file anyway.
>
> Environment variables are shell internals. If you do not 'export' them,
> not even subshells can see them.
If not exported, would not be seen by rsync, either. So I meant exported
variables of course. In current Linux systems they are not readable by
other users, as Matt noted.
>
> Cheers -e
>
Regards,
Wojtek
More information about the rsync
mailing list