Jabber Server?
Steven Pritchard
steve at silug.org
Mon Mar 7 20:22:20 UTC 2005
On Mon, Mar 07, 2005 at 07:02:50PM +0100, Adrian Reber wrote:
> It is true that I could replace all the perl stuff with sed and will do
> it but how would you circumvent that the password can be seen with ps
> during jabbed installation?
How about this?
export NEWPASS=$( dd if=/dev/urandom bs=20 count=1 2>/dev/null \
| sha1sum | awk '{print $1}' )
cd %{sysconfdir}
sed -i -f- router-users.xml router.xml <<END
s,<secret>secret</secret>,<secret>$NEWPASS</secret>,g
END
sed -i -f- *.xml <<END
s,<pass>secret</pass>,<pass>$NEWPASS</pass>,g
END
Steve
--
Steven Pritchard - K&S Pritchard Enterprises, Inc.
Email: steve at kspei.com http://www.kspei.com/
Phone: (618)398-3000 Mobile: (618)567-7320
More information about the fedora-extras-list
mailing list