mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Remove module config for su shell
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
display_mode=0
|
||||
su_shell=0
|
||||
columns=2
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
display_mode=0
|
||||
su_shell=1
|
||||
columns=2
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
line1=Konfigurierbare Optionen,11
|
||||
display_mode=Hauptseite zeigt,1,0-Alle Befehle und Parameter,1-Verknüpfungen zu Befehlen
|
||||
height=Hö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ützt die <tt>-s</tt>-Shelloption?,1,1-Ja,0-Nein
|
||||
wrap=Zeilenumbruch im Dateieditor,1,-Standard (Weich),hard-Hart,off-Ausschalten
|
||||
@@ -3,5 +3,3 @@ display_mode=La página principal muestra,1,0-Todos los comandos y pará
|
||||
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ón de sistema,11
|
||||
su_shell=¿El comando <tt>su</tt> soporta la opción -s shell?,1,1-Sí,0-No
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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à 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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
line2=Systémové nastavenie,11
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user