diff options
author | Dirk von Suchodoletz | 2008-08-09 22:55:09 +0200 |
---|---|---|
committer | Dirk von Suchodoletz | 2008-08-09 22:55:09 +0200 |
commit | a15b0b619669fa45edc62963e861b3c6075d3f74 (patch) | |
tree | 556cca3edba0861ae88f2e489e369ffc17fa2dcd /os-plugins/plugins/desktop/OpenSLX/Distro/Base.pm | |
parent | No need for duplication of script code ... (diff) | |
download | core-a15b0b619669fa45edc62963e861b3c6075d3f74.tar.gz core-a15b0b619669fa45edc62963e861b3c6075d3f74.tar.xz core-a15b0b619669fa45edc62963e861b3c6075d3f74.zip |
Set of fixes to previos checkin.
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2006 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/desktop/OpenSLX/Distro/Base.pm')
-rw-r--r-- | os-plugins/plugins/desktop/OpenSLX/Distro/Base.pm | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/os-plugins/plugins/desktop/OpenSLX/Distro/Base.pm b/os-plugins/plugins/desktop/OpenSLX/Distro/Base.pm index f4c193d0..b178c247 100644 --- a/os-plugins/plugins/desktop/OpenSLX/Distro/Base.pm +++ b/os-plugins/plugins/desktop/OpenSLX/Distro/Base.pm @@ -161,19 +161,21 @@ sub setupGDMScript /mnt$configFile fi fi - case "\${desktop_allowshutdown"} in + case "\${desktop_allowshutdown}" in none) ;; root) - sed "s|AllowShutdown.*|AllowShutdown=true|;\ - s|SecureShutdown.*|SecureShutdown=true" -i /mnt$configFile + sed "s|AllowShutdown.*|AllowShutdown=true|;\\ + s|SecureShutdown.*|SecureShutdown=true" \\ + -i /mnt$configFile ;; users) - sed "s|AllowShutdown.*|AllowShutdown=true|;\ - s|SecureShutdown.*|SecureShutdown=false" -i /mnt$configFile + sed "s|AllowShutdown.*|AllowShutdown=true|;\\ + s|SecureShutdown.*|SecureShutdown=false" \\ + -i /mnt$configFile ;; esac - [ "\${desktop_rootlogin}" -ne 0 ] && \ + [ "\${desktop_rootlogin}" -ne 0 ] && \\ sed "s|AllowRoot.*|AllowRoot=true|" -i /mnt$configFile End-of-Here @@ -205,6 +207,7 @@ sub GDMConfigHashForWorkstation 'gui' => { }, 'security' => { + AllowRoot => 'false', AllowRemoteRoot => 'false', DisallowTCP => 'true', SupportAutomount => 'true', |