summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2004-04-15 23:01:49 +0000
committerJonas Smedegaard <dr@jones.dk>2004-04-15 23:01:49 +0000
commitf60dba9c0bb21a20259955d607f79ad820f73304 (patch)
treeeabf9e6367ea16fcd863ec495afb1c6d842f9068
parent051302f80fea3030552665111926912ffcba65b1 (diff)
Set the password file readable only by self.
-rwxr-xr-xlocaluserconfig3
1 files changed, 2 insertions, 1 deletions
diff --git a/localuserconfig b/localuserconfig
index 8a3b044..18830f1 100755
--- a/localuserconfig
+++ b/localuserconfig
@@ -3,7 +3,7 @@
# /usr/local/bin/localuserconfig
# Copyright 2004 Jonas Smedegaard <dr@jones.dk>
#
-# $Id: localuserconfig,v 1.3 2004-04-15 22:53:20 jonas Exp $
+# $Id: localuserconfig,v 1.4 2004-04-15 23:01:49 jonas Exp $
#
# Set/change local account settings
#
@@ -131,6 +131,7 @@ if [ "$do_server" = "yes" ]; then
if [ -n "$server_username" -a "$server_password" = "$server_password_again" ]; then
echo "username = $server_username" > $HOME/$server_userconf
echo "password = $server_password" >> $HOME/$server_userconf
+ chmod 0600 $HOME/$server_userconf
else
echo "Setting server login info failed: problem getting either username or password"
fi