|
From: <di...@us...> - 2007-05-28 15:40:03
|
Revision: 512
http://safekeep.svn.sourceforge.net/safekeep/?rev=512&view=rev
Author: dimi
Date: 2007-05-28 08:39:57 -0700 (Mon, 28 May 2007)
Log Message:
-----------
Explicitely specify the shell to be used for running
the command, in case the default shell is not usable.
Suggested by Jeff Spaleta in order to avoid having
a valid shell for the safekeep account.
Modified Paths:
--------------
safekeep/trunk/safekeep
Modified: safekeep/trunk/safekeep
===================================================================
--- safekeep/trunk/safekeep 2007-05-27 14:53:12 UTC (rev 511)
+++ safekeep/trunk/safekeep 2007-05-28 15:39:57 UTC (rev 512)
@@ -662,7 +662,7 @@
info('%s: Key do not exist, generating it now: %s' % (id, privatekeyfile))
gencmd = 'ssh-keygen -q -b 1024 -t dsa -N "" -C "SafeKeep auto generated key at %s@%s" -f %s' % (backup_user, os.uname()[1], privatekeyfile)
if backup_user is not work_user:
- gencmd = 'su -c %s - %s' % (commands.mkarg(gencmd), backup_user)
+ gencmd = 'su -s /bin/sh -c %s - %s' % (commands.mkarg(gencmd), backup_user)
debug(gencmd)
if os.system(gencmd):
error('%s: Failed to generate key %s. Skipping client.' % (id, privatekeyfile))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|