Rather than putting a password into a plain text file, we prefer to create a user with very limit priviliges - ie can only access one schema and can only create and insert into that schema and read nothing. Then in the pg_hba.conf give that user local access to your database using trust. <div><div><br></div><div>In reality, whether you put in a plain text password or no password, it should only be for a user with limited priviliges, and no capacity to to access private data or damage the existing database. If you then limit their access from the local server, you are getting pretty secure. </div><div><br></div><div>Cheers</div><div><br></div><div>Ben</div><div><br><br>On Friday, 26 August 2016, Mark Volz <<a href="mailto:MarkVolz@co.lyon.mn.us">MarkVolz@co.lyon.mn.us</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal">Hello,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I am having issues with a Windows batch load script.  This script should scan for any new shapefiles in the “PostGIS Incoming” folder, load the shapefiles into postGIS, then place the shapefiles in a completed folder.  This script seemed
 to work in the past, but is now complaining about a password – which I did not change.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">What is wrong with this script, and or what can I do to specify a password?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">##############################<wbr>#############<u></u><u></u></p>
<p class="MsoNormal">#      LOAD SHAPEFILES INTO POSTGIS SCRIPT<u></u><u></u></p>
<p class="MsoNormal">##############################<wbr>#############<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">set PATH=C:\Program Files\PostgreSQL\9.2\bin;%<wbr>PATH%<u></u><u></u></p>
<p class="MsoNormal">cd /d "D:\PostGISIncoming\LyonGIS"<u></u><u></u></p>
<p class="MsoNormal">rem load data to postgis<u></u><u></u></p>
<p class="MsoNormal">for %%f in (*.shp) do shp2pgsql -d -I -s 103749 -W LATIN1 %%f %%~nf | psql -w -U postgres -d lyongis<u></u><u></u></p>
<p class="MsoNormal">rem move data to done folder<u></u><u></u></p>
<p class="MsoNormal">for %%a in (*.*) do move "%%a" "D:\PostGISIncoming\LyonGIS\<wbr>Done"<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks <u></u><u></u></p>
<p class="MsoNormal"><span style="color:#1f497d">Sincerely,<u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="color:#1f497d">Mark Volz, GISP</span></b><b><span style="font-size:12.0pt;color:#1f497d"><u></u><u></u></span></b></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

</blockquote></div></div><br><br>-- <br>Sent from my iPhone.<br>