summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2016-03-02 19:42:42 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2016-03-02 19:42:54 +0100
commitcd7f861d356b1606670a467d19dbcbb695571068 (patch)
treeb94da3c3a136ac5cfc755e1ee7c1932f0937ab1b
parentf0f387708fb34359039fe36ed1b61f14eab6a263 (diff)
downloadspline-startup-cd7f861d356b1606670a467d19dbcbb695571068.tar.gz
spline-startup-cd7f861d356b1606670a467d19dbcbb695571068.tar.bz2
spline-startup-cd7f861d356b1606670a467d19dbcbb695571068.zip
Work for users with restricted shell, too
-rwxr-xr-xspline-startup1
1 files changed, 1 insertions, 0 deletions
diff --git a/spline-startup b/spline-startup
index 72c306e..4881f61 100755
--- a/spline-startup
+++ b/spline-startup
@@ -123,6 +123,7 @@ class SplineStartup(object):
if use_su:
returnvalue = self._call(['su', '-', user.pw_name,
+ '-s', '/bin/sh',
'-c', 'run-parts %s -- %s' %
(' '.join(args),
quote(directory))])