diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-08-08 21:26:47 +0200 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-20 17:35:51 -0700 |
commit | 8016dfd9080393c23d19b1c34e81d1f544655d5a (patch) | |
tree | 751af25d7719576054bbcb41b8ba797785177ed2 /config | |
parent | 0782f1c24c658c06736907dd143f8e67359ac235 (diff) |
Use explicitly /bin/sh for running of Xwilling script via su.
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@redhat.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewd-by: Mark Kettenis <kettenis@openbsd.org>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'config')
-rw-r--r-- | 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. |