Remove module config for su shell
authorJamie Cameron <jcameron@webmin.com>
Thu, 26 Apr 2007 17:29:52 +0000 (17:29 +0000)
committerJamie Cameron <jcameron@webmin.com>
Thu, 26 Apr 2007 17:29:52 +0000 (17:29 +0000)
13 files changed:
custom/CHANGELOG
custom/config
custom/config-*-linux
custom/config.info
custom/config.info.ca
custom/config.info.de
custom/config.info.es
custom/config.info.fr
custom/config.info.it
custom/config.info.nl
custom/config.info.sk
custom/config.info.tr
custom/custom-lib.pl

index d014535..e7bafe6 100644 (file)
@@ -13,3 +13,5 @@ The output from a command is now shown as it is generated, for commands run loca
 Added a Module Config parameter to change the number of columns used to display command buttons in.
 ---- Changes since 1.270 ----
 The contents of uploaded files are no longer logged.
+---- Changes since 1.340 ----
+Removed the Module Config option to control if a shell is used when executing a command as a user, since we can now work this out automatically.
index b5ee8af..0a6ade1 100644 (file)
@@ -1,3 +1,2 @@
 display_mode=0
-su_shell=0
 columns=2
index bb612c6..0a6ade1 100644 (file)
@@ -1,3 +1,2 @@
 display_mode=0
-su_shell=1
 columns=2
index 173b72c..545c80d 100644 (file)
@@ -5,4 +5,3 @@ height=Height of file editor window,3,Default (20 chars)
 wrap=File editor wrap mode,1,-Default (Soft),hard-Hard,off-Off
 columns=Columns to display commands in,1,2-2,1-1
 line2=System configuration,11
-su_shell=<tt>su</tt> command supports -s shell option?,1,1-Yes,0-No
index ebf7f1e..ed49f12 100644 (file)
@@ -4,6 +4,4 @@ width=Amplada de la finestra de l'editor,3,Defecte (80 car
 height=Alçada de la finestra de l'editor,3,Defecte (20 caràcters)
 wrap=Mode wrap de l'editor,1,-Defecte (Soft),hard-Hard,off-Desactivat
 columns=Columnes per mostrar-hi les ordres,1,2-2,1-1
-line2=Configuració del sistema,11
-su_shell=L'ordre <tt>su</tt> suporta l'opció de shell -s,1,1-Sí,0-No
 
index 021b073..8e68e88 100644 (file)
@@ -1,7 +1,5 @@
+line1=Konfigurierbare Optionen,11
 display_mode=Hauptseite zeigt,1,0-Alle Befehle und Parameter,1-Verkn&#252;pfungen zu Befehlen\r
 height=H&#246;he des Dateieditor-Fensters,3,Standard (20 Zeichen)\r
 width=Breite des Dateieditor-Fensters,3,Standard (80 Zeichen)\r
-wrap=Zeilenumbruch im Dateieditor,1,-Standard (Weich),hard-Hart,off-Ausschalten
-line1=Konfigurierbare Optionen,11
-line2=Systemkonfiguration,11
-su_shell=Das <tt>su</tt>-Kommando unterst&#252;tzt die <tt>-s</tt>-Shelloption?,1,1-Ja,0-Nein
\ No newline at end of file
+wrap=Zeilenumbruch im Dateieditor,1,-Standard (Weich),hard-Hart,off-Ausschalten
\ No newline at end of file
index e05e74e..438bfc5 100644 (file)
@@ -3,5 +3,3 @@ display_mode=La p&#225;gina principal muestra,1,0-Todos los comandos y par&#225;
 width=Anchura de la ventana del editor de archivos,3,Defecto (80 caracteres)
 height=Altura de la ventana del editor de archivos,3,Defecto (20 caracteres)
 wrap=Modo de palabra del editor de archivos,1,-Defecto (Soft),hard-Hard,off-Off
-line2=Configuraci&#243;n de sistema,11
-su_shell=&#191;El comando <tt>su</tt> soporta la opci&#243;n -s shell?,1,1-S&#237;,0-No
index 88a2947..0f7e5d6 100644 (file)
@@ -3,5 +3,3 @@ display_mode=La page principale montre,1,0-Toutes les commandes et parametres,1-
 width=Largeur de la fenetre d'edition du fichier,3,Defaut (80 caracteres)
 height=Hauteur de la fenetre d'edition du fichier,3,Defaut (20 caracteres)
 wrap=wrap mode de l'editeur de fichiers,1,-Defaut (Soft),hard-Hard,off-Off
-line2=Configuration du systeme,11
-su_shell=La commande " <tt>su</tt> " supporte l'otpion " -s " ?,1,1-Oui,0-Non
index 8d69bec..26656cc 100755 (executable)
@@ -3,5 +3,3 @@ display_mode=La pagina principale visualizza,1,0-Tutti i comandi e parametri,1-C
 width=Larghezza della finestra del file editor,3,Predefinita (80 caratteri)
 height=Altezza della finestra del file editor,3,Predefinita (20 caratteri)
 wrap=Modalit&#224; di ritorno a capo del file editor,1,-Predefinita (Soft),hard-Hard,off-Disabilita
-line2=Configurazione di sistema
-su_shell=Il comando <tt>su</tt> supporta l'opzione della shell -s ?,1,1-Si,0-No
index 4e328b2..5c7b7d8 100644 (file)
@@ -3,5 +3,3 @@ display_mode=Hoofdpagina toont,1,0-Alle opdrachten en parameters,1-Links naar op
 width=Breedte van bestands editor venster,3,Standaard (80 chars)
 height=Hoogte van bestands editor venster,3,Standaard (20 karakters)
 wrap=Bestands editor terugloop modus,1,-Standaard (Zacht),hard-Hard,off-Uit
-line2=Systeem configuratie,11
-su_shell=<tt>su</tt> commando ondersteund -s shell optie?,1,1-Ja,0-Nee
index 640a62f..e69de29 100644 (file)
@@ -1 +0,0 @@
-line2=Systémové nastavenie,11
index 5597f23..ed72fab 100644 (file)
@@ -2,5 +2,3 @@ line1=Yap
 display_mode=Ana sayfada neler gösterilsin,1,0-Bütün komutlar ve parametreleri,1-Komutlarýn linkleri
 width=Dosya düzenleyicisi penceresinin geniþliði,3,Öntanýmlý (80 karakter)
 height=Dosya düzenleyicisi penceresinin yüksekliði,3,Öntanýmlý (20 karakter)
-line2=Sistem yapýlandýrmasý,11
-su_shell=<tt>su</tt> komutu -s kabul seçeneðini desteklesin mi?,1,1-Evet,0-Hayýr
index 5199687..b21ef0c 100644 (file)
@@ -467,9 +467,8 @@ if ($cmd->{'su'}) {
        &print_tempfile(TEMP, "$str\n");
        &close_tempfile(TEMP);
        chmod(0755, $temp);
-       local $shell = $config{'su_shell'} ? "-s /bin/sh" : "";
        $got = &foreign_call("proc", "safe_process_exec",
-                            "su - $user $shell -c $temp", 0, 0,
+                            &command_as_user($user, 1, $temp), 0, 0,
                             $fh, undef, !$cmd->{'raw'}, 0,
                             $cmd->{'timeout'});
        unlink($temp);