[PATCH 1/4] Use explicitly /bin/sh for running of Xwilling script via su.

Matěj Cepl mcepl at redhat.com
Mon Aug 8 12:26:47 PDT 2011


su nobody -c <command> uses a default shell of the user, which in case
of nobody is (at least on Linux distros) /sbin/nologin.

Signed-off-by: Matěj Cepl <mcepl at redhat.com>
---
 config/xdm-config.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/config/xdm-config.cpp b/config/xdm-config.cpp
index 59d548b..a685129 100644
--- a/config/xdm-config.cpp
+++ b/config/xdm-config.cpp
@@ -16,7 +16,7 @@ DisplayManager.keyFile:		XDMCONFIGDIR/xdm-keys
 DisplayManager.servers:		XDMCONFIGDIR/Xservers
 DisplayManager.accessFile:	XDMCONFIGDIR/Xaccess
 DisplayManager*resources:	XDMCONFIGDIR/Xresources
-DisplayManager.willing:		SU nobody -c XDMSCRIPTDIR/Xwilling
+DisplayManager.willing:		SU nobody -s /bin/sh -c XDMSCRIPTDIR/Xwilling
 ! All displays should use authorization, but we cannot be sure
 ! X terminals may not be configured that way, so they will require
 ! individual resource settings.
-- 
1.7.6



More information about the xorg-devel mailing list