Remove module config for su shell

This commit is contained in:
Jamie Cameron
2007-04-26 17:29:52 +00:00
parent db20675ec5
commit 7c2f586e6a
13 changed files with 5 additions and 22 deletions

View 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.

View File

@@ -1,3 +1,2 @@
display_mode=0
su_shell=0
columns=2

View File

@@ -1,3 +1,2 @@
display_mode=0
su_shell=1
columns=2

View 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

View 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

View 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
height=H&#246;he des Dateieditor-Fensters,3,Standard (20 Zeichen)
width=Breite des Dateieditor-Fensters,3,Standard (80 Zeichen)
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
wrap=Zeilenumbruch im Dateieditor,1,-Standard (Weich),hard-Hart,off-Ausschalten

View 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

View 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

View File

@@ -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

View 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

View File

@@ -1 +0,0 @@
line2=Systémové nastavenie,11

View 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

View 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);