You can subscribe to this list here.
| 2001 |
Jan
(39) |
Feb
(258) |
Mar
(396) |
Apr
(439) |
May
(337) |
Jun
(351) |
Jul
(296) |
Aug
(205) |
Sep
(328) |
Oct
(174) |
Nov
(252) |
Dec
(172) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2002 |
Jan
(213) |
Feb
(194) |
Mar
(337) |
Apr
(314) |
May
(373) |
Jun
(522) |
Jul
(417) |
Aug
(471) |
Sep
(486) |
Oct
(422) |
Nov
(274) |
Dec
(299) |
| 2003 |
Jan
(354) |
Feb
(310) |
Mar
(379) |
Apr
(349) |
May
(388) |
Jun
(218) |
Jul
(368) |
Aug
(340) |
Sep
(222) |
Oct
(176) |
Nov
(214) |
Dec
(211) |
| 2004 |
Jan
(221) |
Feb
(187) |
Mar
(190) |
Apr
(211) |
May
(114) |
Jun
(136) |
Jul
(124) |
Aug
(178) |
Sep
(244) |
Oct
(203) |
Nov
(215) |
Dec
(156) |
| 2005 |
Jan
(334) |
Feb
(268) |
Mar
(302) |
Apr
(309) |
May
(192) |
Jun
(288) |
Jul
(273) |
Aug
(215) |
Sep
(318) |
Oct
(347) |
Nov
(226) |
Dec
(265) |
| 2006 |
Jan
(192) |
Feb
(227) |
Mar
(311) |
Apr
(197) |
May
(224) |
Jun
(213) |
Jul
(285) |
Aug
(227) |
Sep
(190) |
Oct
(209) |
Nov
(169) |
Dec
(174) |
| 2007 |
Jan
(149) |
Feb
(112) |
Mar
(144) |
Apr
(204) |
May
(178) |
Jun
(155) |
Jul
(246) |
Aug
(221) |
Sep
(187) |
Oct
(262) |
Nov
(163) |
Dec
(158) |
| 2008 |
Jan
(256) |
Feb
(318) |
Mar
(307) |
Apr
(237) |
May
(202) |
Jun
(105) |
Jul
(131) |
Aug
(107) |
Sep
(153) |
Oct
(165) |
Nov
(159) |
Dec
(189) |
| 2009 |
Jan
(202) |
Feb
(150) |
Mar
(151) |
Apr
(132) |
May
(56) |
Jun
(115) |
Jul
(103) |
Aug
(150) |
Sep
(141) |
Oct
(187) |
Nov
(154) |
Dec
(105) |
| 2010 |
Jan
(128) |
Feb
(83) |
Mar
(64) |
Apr
(37) |
May
(92) |
Jun
(91) |
Jul
(90) |
Aug
(145) |
Sep
(53) |
Oct
(69) |
Nov
(98) |
Dec
(149) |
| 2011 |
Jan
(44) |
Feb
(99) |
Mar
(70) |
Apr
(78) |
May
(138) |
Jun
(132) |
Jul
(151) |
Aug
(146) |
Sep
(107) |
Oct
(168) |
Nov
(88) |
Dec
(94) |
| 2012 |
Jan
(51) |
Feb
(153) |
Mar
(141) |
Apr
(102) |
May
(79) |
Jun
(63) |
Jul
(87) |
Aug
(39) |
Sep
(67) |
Oct
(84) |
Nov
(57) |
Dec
(31) |
| 2013 |
Jan
(55) |
Feb
(96) |
Mar
(79) |
Apr
(33) |
May
(53) |
Jun
(63) |
Jul
(57) |
Aug
(76) |
Sep
(39) |
Oct
(47) |
Nov
(68) |
Dec
(61) |
| 2014 |
Jan
(26) |
Feb
(98) |
Mar
(29) |
Apr
(57) |
May
(58) |
Jun
(51) |
Jul
(34) |
Aug
(26) |
Sep
(69) |
Oct
(81) |
Nov
(52) |
Dec
(48) |
| 2015 |
Jan
(67) |
Feb
(18) |
Mar
(92) |
Apr
(32) |
May
(37) |
Jun
(21) |
Jul
(26) |
Aug
(28) |
Sep
(6) |
Oct
(24) |
Nov
(35) |
Dec
(34) |
| 2016 |
Jan
(16) |
Feb
(24) |
Mar
(49) |
Apr
(11) |
May
(37) |
Jun
(68) |
Jul
(35) |
Aug
(24) |
Sep
(35) |
Oct
(63) |
Nov
(20) |
Dec
(26) |
| 2017 |
Jan
(98) |
Feb
(82) |
Mar
(42) |
Apr
(62) |
May
(55) |
Jun
(28) |
Jul
(17) |
Aug
(13) |
Sep
(4) |
Oct
(11) |
Nov
(6) |
Dec
(17) |
| 2018 |
Jan
(22) |
Feb
(6) |
Mar
(16) |
Apr
(9) |
May
(20) |
Jun
(25) |
Jul
(15) |
Aug
(10) |
Sep
(6) |
Oct
(2) |
Nov
(14) |
Dec
(25) |
| 2019 |
Jan
(8) |
Feb
(6) |
Mar
(6) |
Apr
(4) |
May
(13) |
Jun
(8) |
Jul
(14) |
Aug
(36) |
Sep
(10) |
Oct
(27) |
Nov
(5) |
Dec
|
| 2020 |
Jan
(10) |
Feb
(4) |
Mar
|
Apr
(1) |
May
(2) |
Jun
(3) |
Jul
(4) |
Aug
(11) |
Sep
(1) |
Oct
(1) |
Nov
(5) |
Dec
(12) |
| 2021 |
Jan
(2) |
Feb
|
Mar
(4) |
Apr
(6) |
May
(8) |
Jun
(2) |
Jul
(1) |
Aug
(7) |
Sep
(3) |
Oct
(23) |
Nov
(10) |
Dec
(17) |
| 2022 |
Jan
(1) |
Feb
|
Mar
(1) |
Apr
(2) |
May
(6) |
Jun
(5) |
Jul
(27) |
Aug
(5) |
Sep
(3) |
Oct
(9) |
Nov
(3) |
Dec
(11) |
| 2023 |
Jan
(13) |
Feb
(7) |
Mar
(3) |
Apr
|
May
(4) |
Jun
(9) |
Jul
|
Aug
(17) |
Sep
|
Oct
|
Nov
(1) |
Dec
(1) |
| 2025 |
Jan
(2) |
Feb
(6) |
Mar
(4) |
Apr
(10) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
(2) |
| 2026 |
Jan
|
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Dave . <dav...@ho...> - 2006-03-02 04:58:29
|
If it is then I am clueless on how to fix it. Any help appreciated. I am thankful for all the help you have already offered and your fast answers. >From: Barry <we...@i1...> >Reply-To: web...@li... >To: web...@li... >Subject: Re: [webmin-l] (no subject) >Date: Wed, 01 Mar 2006 20:55:47 -0800 >MIME-Version: 1.0 >Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by >bay0-mc6-f14.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 1 >Mar 2006 20:57:13 -0800 >Received: from sc8-sf-list1-b.sourceforge.net >(sc8-sf-list1-b.sourceforge.net [10.3.1.7])by sc8-sf-spam2.sourceforge.net >(Postfix) with ESMTPid 4481F12E01; Wed, 1 Mar 2006 20:57:03 -0800 (PST) >Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] >helo=mail.sourceforge.net)by sc8-sf-list1.sourceforge.net with esmtp (Exim >4.30)id 1FEfrL-0001gF-Tffor web...@li...; Wed, 01 >Mar 2006 20:56:15 -0800 >Received: from mout.perfora.net ([217.160.230.40])by mail.sourceforge.net >with esmtp (Exim 4.44)id 1FEfrL-0007KR-1Efor >web...@li...; Wed, 01 Mar 2006 20:56:16 -0800 >Received: from [69.236.170.197] (helo=[192.168.3.4])by mrelay.perfora.net >(node=mrelayus0) with ESMTP (Nemesis),id 0MKoyl-1FEfrF0Akh-000252; Wed, 01 >Mar 2006 23:56:12 -0500 >X-Message-Info: StaYHEBmGBqIeTdR3ZwPSoiP496B0OA+jjusevgR0xs= >User-Agent: Thunderbird 1.5 (Windows/20051201) >References: <BAY...@ph...> >X-Provags-ID: perfora.net ab...@pe... >login:4234134f39d118fe174047b338b8501d >X-Spam-Score: 0.0 (/) >X-Spam-Report: Spam Filtering performed by sourceforge.net.See >http://spamassassin.org/tag/ for more details.Report problems to >http://sf.net/tracker/?func=add&group_id=1&atid=200001 >Errors-To: web...@li... >X-BeenThere: web...@li... >X-Mailman-Version: 2.0.9-sf.net >Precedence: bulk >X-Reply-To: we...@i1... >List-Unsubscribe: ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=unsubscribe> >List-Id: Webmin users list <webadmin-list.lists.sourceforge.net> >List-Post: <mailto:web...@li...> >List-Help: ><mailto:web...@li...?subject=help> >List-Subscribe: ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=subscribe> >List-Archive: ><http://sourceforge.net/mailarchive/forum.php?forum=webadmin-list> >X-Original-Date: Wed, 01 Mar 2006 20:55:47 -0800 >Return-Path: web...@li... >X-OriginalArrivalTime: 02 Mar 2006 04:57:13.0697 (UTC) >FILETIME=[C5687510:01C63DB5] > >Dave - > >This sounds vaguely familiar to me...I think I saw something similar once. >Is it possible it is an SELinux issue? > >Best, > >Barry > > >Dave . wrote: >> >>The script works, everything except for the echo command, I have also >>tried chmodding the script to 777 and giving the full path to the script. >>None worked. I think the problem is in the output, made by the echos >>getting displayed by the command ouput into webmin. >> >>>From: Jamie Cameron <jca...@we...> >>>Reply-To: web...@li... >>>To: web...@li... >>>Subject: Re: [webmin-l] (no subject) >>>Date: 02 Mar 2006 15:42:08 +1100 >>>MIME-Version: 1.0 >>>Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by >>>bay0-mc7-f1.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 1 >>>Mar 2006 20:43:04 -0800 >>>Received: from sc8-sf-list1-b.sourceforge.net >>>(sc8-sf-list1-b.sourceforge.net [10.3.1.7])by >>>sc8-sf-spam1.sourceforge.net (Postfix) with ESMTPid 1DAA988238; Wed, 1 >>>Mar 2006 20:43:02 -0800 (PST) >>>Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] >>>helo=mail.sourceforge.net)by sc8-sf-list1.sourceforge.net with esmtp >>>(Exim 4.30)id 1FEfeD-0000Ew-4gfor web...@li...; >>>Wed, 01 Mar 2006 20:42:41 -0800 >>>Received: from [70.86.4.226] (helo=virtualmin.com)by mail.sourceforge.net >>>with esmtp (Exim 4.44)id 1FEfeB-0003aw-FYfor >>>web...@li...; Wed, 01 Mar 2006 20:42:41 -0800 >>>Received: from [193.9.101.138] (CPE-60-230-176-210.vic.bigpond.net.au >>>[60.230.176.210])by virtualmin.com (Postfix) with ESMTP id C5401290B2Afor >>><web...@li...>; Wed, 1 Mar 2006 22:00:04 -0600 >>>(CST) >>>X-Message-Info: StaYHEBmGBoCvpuFmTzcC8ri388uRzYOEtU/eIvXRcw= >>>References: <BAY...@ph...> >>>Organization: X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) X-Spam-Score: >>>1.0 (+) >>>X-Spam-Report: Spam Filtering performed by sourceforge.net.See >>>http://spamassassin.org/tag/ for more details.Report problems to >>>http://sf.net/tracker/?func=add&group_id=1&atid=2000011.0 >>>FORGED_RCVD_HELO Received: contains a forged HELO >>>Errors-To: web...@li... >>>X-BeenThere: web...@li... >>>X-Mailman-Version: 2.0.9-sf.net >>>Precedence: bulk >>>List-Unsubscribe: >>><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=unsubscribe> >>> >>>List-Id: Webmin users list <webadmin-list.lists.sourceforge.net> >>>List-Post: <mailto:web...@li...> >>>List-Help: >>><mailto:web...@li...?subject=help> >>>List-Subscribe: >>><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=subscribe> >>> >>>List-Archive: >>><http://sourceforge.net/mailarchive/forum.php?forum=webadmin-list> >>>X-Original-Date: 02 Mar 2006 15:42:08 +1100 >>>Return-Path: web...@li... >>>X-OriginalArrivalTime: 02 Mar 2006 04:43:04.0140 (UTC) >>>FILETIME=[CB0858C0:01C63DB3] >>> >>>Ok .. I have a couple of suggestions : >>> >>>1) Try using the full path to the testecho command , like /bin/testecho >>>2) Have the script perform some other action (like create a file in >>>/tmp) to see if it is being run at all. Perhaps it is executing, but the >>>output is not being displayed. >>> >>> - Jamie >>> >>>On Thu, 2006-03-02 at 15:37, Dave . wrote: >>> > Sorry, here is an updated version, it calls the shell script in the >>>/bin >>> > directory owned by root. I get this when su - user in ssh and running >>>the >>> > script. >>> > >>> > [root@localhost ~]# su - kimball -s /bin/bash -c testecho >>> > asdf123 >>> > tester for me >>> > >>> > The shell script in /bin is named testecho and contains: >>> > >>> > #!/bin/bash >>> > echo "asdf123" >>> > echo "tester for me" >>> > >>> > >>> > >From: "Dave ." <dav...@ho...> >>> > >Reply-To: web...@li... >>> > >To: web...@li... >>> > >Subject: Re: [webmin-l] (no subject) >>> > >Date: Thu, 02 Mar 2006 04:25:41 +0000 >>> > >MIME-Version: 1.0 >>> > >X-Originating-IP: [69.120.56.144] >>> > >X-Originating-Email: [dav...@ho...] >>> > >X-Sender: dav...@ho... >>> > >Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by >>> > >bay0-mc6-f2.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); >>>Wed, 1 >>> > >Mar 2006 20:26:02 -0800 >>> > >Received: from sc8-sf-list1-b.sourceforge.net >>> > >(sc8-sf-list1-b.sourceforge.net [10.3.1.7])by >>>sc8-sf-spam2.sourceforge.net >>> > >(Postfix) with ESMTPid 5D66012580; Wed, 1 Mar 2006 20:26:01 -0800 >>>(PST) >>> > >Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] >>> > >helo=mail.sourceforge.net)by sc8-sf-list1.sourceforge.net with esmtp >>>(Exim >>> > >4.30)id 1FEfNo-0006ul-Hxfor web...@li...; Wed, >>>01 >>> > >Mar 2006 20:25:44 -0800 >>> > >Received: from bay112-f13.bay112.hotmail.com ([64.4.26.23] >>> > >helo=hotmail.com)by mail.sourceforge.net with esmtp (Exim 4.44)id >>> > >1FEfNn-0007cQ-Vnfor web...@li...; Wed, 01 Mar >>>2006 >>> > >20:25:44 -0800 >>> > >Received: from mail pickup service by hotmail.com with Microsoft >>>SMTPSVC; >>> > >Wed, 1 Mar 2006 20:25:43 -0800 >>> > >Received: from 64.4.26.200 by by112fd.bay112.hotmail.msn.com with >>>HTTP;Thu, >>> > >02 Mar 2006 04:25:41 GMT >>> > >X-Message-Info: StaYHEBmGBr9e1mDLkyZnxEz+Fa7zR2z6s6tUnotml0= >>> > >X-OriginalArrivalTime: 02 Mar 2006 04:25:43.0446 (UTC) >>> > >FILETIME=[5EBB0B60:01C63DB1] >>> > >X-Spam-Score: 0.5 (/) >>> > >X-Spam-Report: Spam Filtering performed by sourceforge.net.See >>> > >http://spamassassin.org/tag/ for more details.Report problems to >>> > >http://sf.net/tracker/?func=add&group_id=1&atid=2000010.5 >>>FROM_ENDS_IN_NUMS >>> > > From: ends in numbers0.0 MSGID_FROM_MTA_HEADER Message-Id was >>>added >>> > >by a relay >>> > >Errors-To: web...@li... >>> > >X-BeenThere: web...@li... >>> > >X-Mailman-Version: 2.0.9-sf.net >>> > >Precedence: bulk >>> > >List-Unsubscribe: >>> > >>> ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=unsubscribe> >>> >>> > >List-Id: Webmin users list <webadmin-list.lists.sourceforge.net> >>> > >List-Post: <mailto:web...@li...> >>> > >List-Help: >>> > ><mailto:web...@li...?subject=help> >>> > >List-Subscribe: >>> > >>> ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=subscribe> >>> >>> > >List-Archive: >>> > ><http://sourceforge.net/mailarchive/forum.php?forum=webadmin-list> >>> > >X-Original-Date: Thu, 02 Mar 2006 04:25:41 +0000 >>> > >Return-Path: web...@li... >>> > > >>> > > >>> > >The shell script works except for the echo command. When the command >>>is run >>> > >from custom commands module, it just says command >>> > >ouput from....comandhere >>> > >---then nothing. even though In my expierence the echo commands are >>> > >displayed. >>> > > >>> > > >>> > >>From: Jamie Cameron <jca...@we...> >>> > >>Reply-To: web...@li... >>> > >>To: web...@li... >>> > >>Subject: Re: [webmin-l] (no subject) >>> > >>Date: 02 Mar 2006 15:22:31 +1100 >>> > >>MIME-Version: 1.0 >>> > >>Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by >>> > >>bay0-mc5-f17.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); >>>Wed, 1 >>> > >>Mar 2006 20:24:06 -0800 >>> > >>Received: from sc8-sf-list1-b.sourceforge.net >>> > >>(sc8-sf-list1-b.sourceforge.net [10.3.1.7])by >>>sc8-sf-spam2.sourceforge.net >>> > >>(Postfix) with ESMTPid 0B36712F8D; Wed, 1 Mar 2006 20:24:06 -0800 >>>(PST) >>> > >>Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] >>> > >>helo=mail.sourceforge.net)by sc8-sf-list1.sourceforge.net with esmtp >>>(Exim >>> > >>4.30)id 1FEfLC-0006f6-1hfor web...@li...; >>>Wed, 01 >>> > >>Mar 2006 20:23:02 -0800 >>> > >>Received: from [70.86.4.226] (helo=virtualmin.com)by >>>mail.sourceforge.net >>> > >>with esmtp (Exim 4.44)id 1FEfLB-0006j4-Axfor >>> > >>web...@li...; Wed, 01 Mar 2006 20:23:01 -0800 >>> > >>Received: from [193.9.101.138] >>>(CPE-60-230-176-210.vic.bigpond.net.au >>> > >>[60.230.176.210])by virtualmin.com (Postfix) with ESMTP id >>>35B91290D86for >>> > >><web...@li...>; Wed, 1 Mar 2006 21:40:27 >>>-0600 >>> > >>(CST) >>> > >>X-Message-Info: StaYHEBmGBoZSf8qHByhBqPPULjjyGY8XWrcM9Nv8uM= >>> > >>References: <BAY...@ph...> >>> > >>Organization: X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) >>>X-Spam-Score: 1.0 >>> > >>(+) >>> > >>X-Spam-Report: Spam Filtering performed by sourceforge.net.See >>> > >>http://spamassassin.org/tag/ for more details.Report problems to >>> > >>http://sf.net/tracker/?func=add&group_id=1&atid=2000011.0 >>>FORGED_RCVD_HELO >>> > >> Received: contains a forged HELO >>> > >>Errors-To: web...@li... >>> > >>X-BeenThere: web...@li... >>> > >>X-Mailman-Version: 2.0.9-sf.net >>> > >>Precedence: bulk >>> > >>List-Unsubscribe: >>> > >>> >><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=unsubscribe> >>> >>> > >>List-Id: Webmin users list <webadmin-list.lists.sourceforge.net> >>> > >>List-Post: <mailto:web...@li...> >>> > >>List-Help: >>> > >><mailto:web...@li...?subject=help> >>> > >>List-Subscribe: >>> > >>> >><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=subscribe> >>> >>> > >>List-Archive: >>> > >><http://sourceforge.net/mailarchive/forum.php?forum=webadmin-list> >>> > >>X-Original-Date: 02 Mar 2006 15:22:31 +1100 >>> > >>Return-Path: web...@li... >>> > >>X-OriginalArrivalTime: 02 Mar 2006 04:24:06.0730 (UTC) >>> > >>FILETIME=[25155AA0:01C63DB1] >>> > >> >>> > >>Ok .. how about if you try it with the actual command you were >>>trying to >>> > >>run from Webmin (assuming that this wasn't just an echo command too) >>>? >>> > >> >>> > >> - Jamie >>> > >> >>> > >>On Thu, 2006-03-02 at 15:16, Dave . wrote: >>> > >> > output from the su and echo command is: >>> > >> > >>> > >> > [root@localhost ~]# su - kimball -s /bin/sh -c "echo foo" >>> > >> > foo >>> > >> > >>> > >> > >>> > >> > >From: Jamie Cameron <jca...@we...> >>> > >> > >Reply-To: web...@li... >>> > >> > >To: web...@li... >>> > >> > >Subject: Re: [webmin-l] (no subject) >>> > >> > >Date: 02 Mar 2006 15:13:41 +1100 >>> > >> > >MIME-Version: 1.0 >>> > >> > >Received: from lists-outbound.sourceforge.net ([66.35.250.225]) >>>by >>> > >> > >bay0-mc10-f11.bay0.hotmail.com with Microsoft >>>SMTPSVC(6.0.3790.211); >>> > >>Wed, 1 >>> > >> > >Mar 2006 20:15:02 -0800 >>> > >> > >Received: from sc8-sf-list1-b.sourceforge.net >>> > >> > >(sc8-sf-list1-b.sourceforge.net [10.3.1.7])by >>> > >>sc8-sf-spam2.sourceforge.net >>> > >> > >(Postfix) with ESMTPid 0A9B712142; Wed, 1 Mar 2006 20:15:01 >>>-0800 >>> > >>(PST) >>> > >> > >Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] >>> > >> > >helo=mail.sourceforge.net)by sc8-sf-list1.sourceforge.net with >>>esmtp >>> > >>(Exim >>> > >> > >4.30)id 1FEfCg-0005r2-EPfor web...@li...; >>>Wed, >>> > >>01 >>> > >> > >Mar 2006 20:14:14 -0800 >>> > >> > >Received: from [70.86.4.226] (helo=virtualmin.com)by >>> > >>mail.sourceforge.net >>> > >> > >with esmtp (Exim 4.44)id 1FEfCf-0003ac-20for >>> > >> > >web...@li...; Wed, 01 Mar 2006 20:14:14 >>>-0800 >>> > >> > >Received: from [193.9.101.138] >>>(CPE-60-230-176-210.vic.bigpond.net.au >>> > >> > >[60.230.176.210])by virtualmin.com (Postfix) with ESMTP id >>> > >>B776B290D86for >>> > >> > ><web...@li...>; Wed, 1 Mar 2006 21:31:37 >>>-0600 >>> > >> > >(CST) >>> > >> > >X-Message-Info: StaYHEBmGBqKz67fr+0tKypfpTIF8uL5vJMZk0dw5F8= >>> > >> > >References: <BAY...@ph...> >>> > >> > >Organization: X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) >>>X-Spam-Score: >>> > >>1.0 >>> > >> > >(+) >>> > >> > >X-Spam-Report: Spam Filtering performed by sourceforge.net.See >>> > >> > >http://spamassassin.org/tag/ for more details.Report problems to >>> > >> > >http://sf.net/tracker/?func=add&group_id=1&atid=2000011.0 >>> > >>FORGED_RCVD_HELO >>> > >> > > Received: contains a forged HELO >>> > >> > >Errors-To: web...@li... >>> > >> > >X-BeenThere: web...@li... >>> > >> > >X-Mailman-Version: 2.0.9-sf.net >>> > >> > >Precedence: bulk >>> > >> > >List-Unsubscribe: >>> > >> > >>> > >> >>> ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=unsubscribe> >>> >>> > >> > >List-Id: Webmin users list <webadmin-list.lists.sourceforge.net> >>> > >> > >List-Post: <mailto:web...@li...> >>> > >> > >List-Help: >>> > >> > >>> ><mailto:web...@li...?subject=help> >>> > >> > >List-Subscribe: >>> > >> > >>> > >> >>> ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=subscribe> >>> >>> > >> > >List-Archive: >>> > >> > >>> ><http://sourceforge.net/mailarchive/forum.php?forum=webadmin-list> >>> > >> > >X-Original-Date: 02 Mar 2006 15:13:41 +1100 >>> > >> > >Return-Path: web...@li... >>> > >> > >X-OriginalArrivalTime: 02 Mar 2006 04:15:02.0260 (UTC) >>> > >> > >FILETIME=[E08DD340:01C63DAF] >>> > >> > > >>> > >> > >On Thu, 2006-03-02 at 14:13, Dave . wrote: >>> > >> > > > I have a shell script run from the custom commands module. It >>>runs >>> > >> > > > successfully in a shell as well as in the custom commands >>>module >>> > >>when >>> > >> > >the >>> > >> > > > "Use User's Environment is UNCHECKED. However, when I check >>>the >>> > >>"Use >>> > >> > >User's >>> > >> > > > Environment" no echo commands are displayed in the ouput for >>>the >>> > >> > >command. >>> > >> > > > The user is using a valid shell located at /bin/bash defined >>>by the >>> > >> > >shell >>> > >> > > > script. >>> > >> > > > Any Help appreciated. >>> > >> > > >>> > >> > >What happens if you login via SSH as root, and run a command >>>like? : >>> > >> > > >>> > >> > >su - USERNAME -s /bin/sh -c "echo foo" >>> > >> > > >>> > >> > >That is the command Webmin uses when the 'Use user's >>>environment' >>> > >>option >>> > >> > >is selected. >>> > >> > > >>> > >> > > - Jamie >>> > >> > > >>> > >> > > >>> > >> > > >>> > >> > >------------------------------------------------------- >>> > >> > >This SF.Net email is sponsored by xPML, a groundbreaking >>>scripting >>> > >>language >>> > >> > >that extends applications into web and mobile media. Attend the >>>live >>> > >> > >webcast >>> > >> > >and join the prime developer group breaking into this new coding >>> > >>territory! >>> > >> > >>> > >> >>> >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >>> >>> > >> > >- >>> > >> > >Forwarded by the Webmin mailing list at >>> > >>web...@li... >>> > >> > >To remove yourself from this list, go to >>> > >> > >http://lists.sourceforge.net/lists/listinfo/webadmin-list >>> > >> > >>> > >> > >>> > >> > >>> > >> > >>> > >> > ------------------------------------------------------- >>> > >> > This SF.Net email is sponsored by xPML, a groundbreaking >>>scripting >>> > >>language >>> > >> > that extends applications into web and mobile media. Attend the >>>live >>> > >>webcast >>> > >> > and join the prime developer group breaking into this new coding >>> > >>territory! >>> > >> > >>> > >>> >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >>> >>> > >> > - >>> > >> > Forwarded by the Webmin mailing list at >>> > >>web...@li... >>> > >> > To remove yourself from this list, go to >>> > >> > http://lists.sourceforge.net/lists/listinfo/webadmin-list >>> > >> > >>> > >> >>> > >> >>> > >> >>> > >>------------------------------------------------------- >>> > >>This SF.Net email is sponsored by xPML, a groundbreaking scripting >>> > >>language >>> > >>that extends applications into web and mobile media. Attend the live >>> > >>webcast >>> > >>and join the prime developer group breaking into this new coding >>> > >>territory! >>> > >>> >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >>> >>> > >>- >>> > >>Forwarded by the Webmin mailing list at >>> > >>web...@li... >>> > >>To remove yourself from this list, go to >>> > >>http://lists.sourceforge.net/lists/listinfo/webadmin-list >>> > > >>> > > >>> > > >>> > > >>> > >------------------------------------------------------- >>> > >This SF.Net email is sponsored by xPML, a groundbreaking scripting >>>language >>> > >that extends applications into web and mobile media. Attend the live >>> > >webcast >>> > >and join the prime developer group breaking into this new coding >>>territory! >>> > >>> >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >>> >>> > >- >>> > >Forwarded by the Webmin mailing list at >>>web...@li... >>> > >To remove yourself from this list, go to >>> > >http://lists.sourceforge.net/lists/listinfo/webadmin-list >>> > >>> > >>> > >>> > >>> > ------------------------------------------------------- >>> > This SF.Net email is sponsored by xPML, a groundbreaking scripting >>>language >>> > that extends applications into web and mobile media. Attend the live >>>webcast >>> > and join the prime developer group breaking into this new coding >>>territory! >>> > >>>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >>> > - >>> > Forwarded by the Webmin mailing list at >>>web...@li... >>> > To remove yourself from this list, go to >>> > http://lists.sourceforge.net/lists/listinfo/webadmin-list >>> > >>> >>> >>> >>>------------------------------------------------------- >>>This SF.Net email is sponsored by xPML, a groundbreaking scripting >>>language >>>that extends applications into web and mobile media. Attend the live >>>webcast >>>and join the prime developer group breaking into this new coding >>>territory! >>>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >>>- >>>Forwarded by the Webmin mailing list at >>>web...@li... >>>To remove yourself from this list, go to >>>http://lists.sourceforge.net/lists/listinfo/webadmin-list >> >> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by xPML, a groundbreaking scripting >>language >>that extends applications into web and mobile media. Attend the live >>webcast >>and join the prime developer group breaking into this new coding >>territory! >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >>- >>Forwarded by the Webmin mailing list at >>web...@li... >>To remove yourself from this list, go to >>http://lists.sourceforge.net/lists/listinfo/webadmin-list >> >> > > > >------------------------------------------------------- >This SF.Net email is sponsored by xPML, a groundbreaking scripting language >that extends applications into web and mobile media. Attend the live >webcast >and join the prime developer group breaking into this new coding territory! >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >- >Forwarded by the Webmin mailing list at web...@li... >To remove yourself from this list, go to >http://lists.sourceforge.net/lists/listinfo/webadmin-list |
|
From: Barry <we...@i1...> - 2006-03-02 04:56:16
|
Dave - This sounds vaguely familiar to me...I think I saw something similar once. Is it possible it is an SELinux issue? Best, Barry Dave . wrote: > > The script works, everything except for the echo command, I have also > tried chmodding the script to 777 and giving the full path to the > script. None worked. I think the problem is in the output, made by the > echos getting displayed by the command ouput into webmin. > >> From: Jamie Cameron <jca...@we...> >> Reply-To: web...@li... >> To: web...@li... >> Subject: Re: [webmin-l] (no subject) >> Date: 02 Mar 2006 15:42:08 +1100 >> MIME-Version: 1.0 >> Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by >> bay0-mc7-f1.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); >> Wed, 1 Mar 2006 20:43:04 -0800 >> Received: from sc8-sf-list1-b.sourceforge.net >> (sc8-sf-list1-b.sourceforge.net [10.3.1.7])by >> sc8-sf-spam1.sourceforge.net (Postfix) with ESMTPid 1DAA988238; Wed, >> 1 Mar 2006 20:43:02 -0800 (PST) >> Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] >> helo=mail.sourceforge.net)by sc8-sf-list1.sourceforge.net with esmtp >> (Exim 4.30)id 1FEfeD-0000Ew-4gfor >> web...@li...; Wed, 01 Mar 2006 20:42:41 -0800 >> Received: from [70.86.4.226] (helo=virtualmin.com)by >> mail.sourceforge.net with esmtp (Exim 4.44)id 1FEfeB-0003aw-FYfor >> web...@li...; Wed, 01 Mar 2006 20:42:41 -0800 >> Received: from [193.9.101.138] (CPE-60-230-176-210.vic.bigpond.net.au >> [60.230.176.210])by virtualmin.com (Postfix) with ESMTP id >> C5401290B2Afor <web...@li...>; Wed, 1 Mar >> 2006 22:00:04 -0600 (CST) >> X-Message-Info: StaYHEBmGBoCvpuFmTzcC8ri388uRzYOEtU/eIvXRcw= >> References: <BAY...@ph...> >> Organization: X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) >> X-Spam-Score: 1.0 (+) >> X-Spam-Report: Spam Filtering performed by sourceforge.net.See >> http://spamassassin.org/tag/ for more details.Report problems to >> http://sf.net/tracker/?func=add&group_id=1&atid=2000011.0 >> FORGED_RCVD_HELO Received: contains a forged HELO >> Errors-To: web...@li... >> X-BeenThere: web...@li... >> X-Mailman-Version: 2.0.9-sf.net >> Precedence: bulk >> List-Unsubscribe: >> <https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=unsubscribe> >> >> List-Id: Webmin users list <webadmin-list.lists.sourceforge.net> >> List-Post: <mailto:web...@li...> >> List-Help: >> <mailto:web...@li...?subject=help> >> List-Subscribe: >> <https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=subscribe> >> >> List-Archive: >> <http://sourceforge.net/mailarchive/forum.php?forum=webadmin-list> >> X-Original-Date: 02 Mar 2006 15:42:08 +1100 >> Return-Path: web...@li... >> X-OriginalArrivalTime: 02 Mar 2006 04:43:04.0140 (UTC) >> FILETIME=[CB0858C0:01C63DB3] >> >> Ok .. I have a couple of suggestions : >> >> 1) Try using the full path to the testecho command , like /bin/testecho >> 2) Have the script perform some other action (like create a file in >> /tmp) to see if it is being run at all. Perhaps it is executing, but the >> output is not being displayed. >> >> - Jamie >> >> On Thu, 2006-03-02 at 15:37, Dave . wrote: >> > Sorry, here is an updated version, it calls the shell script in the >> /bin >> > directory owned by root. I get this when su - user in ssh and >> running the >> > script. >> > >> > [root@localhost ~]# su - kimball -s /bin/bash -c testecho >> > asdf123 >> > tester for me >> > >> > The shell script in /bin is named testecho and contains: >> > >> > #!/bin/bash >> > echo "asdf123" >> > echo "tester for me" >> > >> > >> > >From: "Dave ." <dav...@ho...> >> > >Reply-To: web...@li... >> > >To: web...@li... >> > >Subject: Re: [webmin-l] (no subject) >> > >Date: Thu, 02 Mar 2006 04:25:41 +0000 >> > >MIME-Version: 1.0 >> > >X-Originating-IP: [69.120.56.144] >> > >X-Originating-Email: [dav...@ho...] >> > >X-Sender: dav...@ho... >> > >Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by >> > >bay0-mc6-f2.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); >> Wed, 1 >> > >Mar 2006 20:26:02 -0800 >> > >Received: from sc8-sf-list1-b.sourceforge.net >> > >(sc8-sf-list1-b.sourceforge.net [10.3.1.7])by >> sc8-sf-spam2.sourceforge.net >> > >(Postfix) with ESMTPid 5D66012580; Wed, 1 Mar 2006 20:26:01 -0800 >> (PST) >> > >Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] >> > >helo=mail.sourceforge.net)by sc8-sf-list1.sourceforge.net with >> esmtp (Exim >> > >4.30)id 1FEfNo-0006ul-Hxfor web...@li...; >> Wed, 01 >> > >Mar 2006 20:25:44 -0800 >> > >Received: from bay112-f13.bay112.hotmail.com ([64.4.26.23] >> > >helo=hotmail.com)by mail.sourceforge.net with esmtp (Exim 4.44)id >> > >1FEfNn-0007cQ-Vnfor web...@li...; Wed, 01 >> Mar 2006 >> > >20:25:44 -0800 >> > >Received: from mail pickup service by hotmail.com with Microsoft >> SMTPSVC; >> > >Wed, 1 Mar 2006 20:25:43 -0800 >> > >Received: from 64.4.26.200 by by112fd.bay112.hotmail.msn.com with >> HTTP;Thu, >> > >02 Mar 2006 04:25:41 GMT >> > >X-Message-Info: StaYHEBmGBr9e1mDLkyZnxEz+Fa7zR2z6s6tUnotml0= >> > >X-OriginalArrivalTime: 02 Mar 2006 04:25:43.0446 (UTC) >> > >FILETIME=[5EBB0B60:01C63DB1] >> > >X-Spam-Score: 0.5 (/) >> > >X-Spam-Report: Spam Filtering performed by sourceforge.net.See >> > >http://spamassassin.org/tag/ for more details.Report problems to >> > >http://sf.net/tracker/?func=add&group_id=1&atid=2000010.5 >> FROM_ENDS_IN_NUMS >> > > From: ends in numbers0.0 MSGID_FROM_MTA_HEADER Message-Id >> was added >> > >by a relay >> > >Errors-To: web...@li... >> > >X-BeenThere: web...@li... >> > >X-Mailman-Version: 2.0.9-sf.net >> > >Precedence: bulk >> > >List-Unsubscribe: >> > >> ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=unsubscribe> >> >> > >List-Id: Webmin users list <webadmin-list.lists.sourceforge.net> >> > >List-Post: <mailto:web...@li...> >> > >List-Help: >> > ><mailto:web...@li...?subject=help> >> > >List-Subscribe: >> > >> ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=subscribe> >> >> > >List-Archive: >> > ><http://sourceforge.net/mailarchive/forum.php?forum=webadmin-list> >> > >X-Original-Date: Thu, 02 Mar 2006 04:25:41 +0000 >> > >Return-Path: web...@li... >> > > >> > > >> > >The shell script works except for the echo command. When the >> command is run >> > >from custom commands module, it just says command >> > >ouput from....comandhere >> > >---then nothing. even though In my expierence the echo commands are >> > >displayed. >> > > >> > > >> > >>From: Jamie Cameron <jca...@we...> >> > >>Reply-To: web...@li... >> > >>To: web...@li... >> > >>Subject: Re: [webmin-l] (no subject) >> > >>Date: 02 Mar 2006 15:22:31 +1100 >> > >>MIME-Version: 1.0 >> > >>Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by >> > >>bay0-mc5-f17.bay0.hotmail.com with Microsoft >> SMTPSVC(6.0.3790.211); Wed, 1 >> > >>Mar 2006 20:24:06 -0800 >> > >>Received: from sc8-sf-list1-b.sourceforge.net >> > >>(sc8-sf-list1-b.sourceforge.net [10.3.1.7])by >> sc8-sf-spam2.sourceforge.net >> > >>(Postfix) with ESMTPid 0B36712F8D; Wed, 1 Mar 2006 20:24:06 >> -0800 (PST) >> > >>Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] >> > >>helo=mail.sourceforge.net)by sc8-sf-list1.sourceforge.net with >> esmtp (Exim >> > >>4.30)id 1FEfLC-0006f6-1hfor web...@li...; >> Wed, 01 >> > >>Mar 2006 20:23:02 -0800 >> > >>Received: from [70.86.4.226] (helo=virtualmin.com)by >> mail.sourceforge.net >> > >>with esmtp (Exim 4.44)id 1FEfLB-0006j4-Axfor >> > >>web...@li...; Wed, 01 Mar 2006 20:23:01 -0800 >> > >>Received: from [193.9.101.138] >> (CPE-60-230-176-210.vic.bigpond.net.au >> > >>[60.230.176.210])by virtualmin.com (Postfix) with ESMTP id >> 35B91290D86for >> > >><web...@li...>; Wed, 1 Mar 2006 21:40:27 >> -0600 >> > >>(CST) >> > >>X-Message-Info: StaYHEBmGBoZSf8qHByhBqPPULjjyGY8XWrcM9Nv8uM= >> > >>References: <BAY...@ph...> >> > >>Organization: X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) >> X-Spam-Score: 1.0 >> > >>(+) >> > >>X-Spam-Report: Spam Filtering performed by sourceforge.net.See >> > >>http://spamassassin.org/tag/ for more details.Report problems to >> > >>http://sf.net/tracker/?func=add&group_id=1&atid=2000011.0 >> FORGED_RCVD_HELO >> > >> Received: contains a forged HELO >> > >>Errors-To: web...@li... >> > >>X-BeenThere: web...@li... >> > >>X-Mailman-Version: 2.0.9-sf.net >> > >>Precedence: bulk >> > >>List-Unsubscribe: >> > >> >><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=unsubscribe> >> >> > >>List-Id: Webmin users list <webadmin-list.lists.sourceforge.net> >> > >>List-Post: <mailto:web...@li...> >> > >>List-Help: >> > >><mailto:web...@li...?subject=help> >> > >>List-Subscribe: >> > >> >><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=subscribe> >> >> > >>List-Archive: >> > >><http://sourceforge.net/mailarchive/forum.php?forum=webadmin-list> >> > >>X-Original-Date: 02 Mar 2006 15:22:31 +1100 >> > >>Return-Path: web...@li... >> > >>X-OriginalArrivalTime: 02 Mar 2006 04:24:06.0730 (UTC) >> > >>FILETIME=[25155AA0:01C63DB1] >> > >> >> > >>Ok .. how about if you try it with the actual command you were >> trying to >> > >>run from Webmin (assuming that this wasn't just an echo command >> too) ? >> > >> >> > >> - Jamie >> > >> >> > >>On Thu, 2006-03-02 at 15:16, Dave . wrote: >> > >> > output from the su and echo command is: >> > >> > >> > >> > [root@localhost ~]# su - kimball -s /bin/sh -c "echo foo" >> > >> > foo >> > >> > >> > >> > >> > >> > >From: Jamie Cameron <jca...@we...> >> > >> > >Reply-To: web...@li... >> > >> > >To: web...@li... >> > >> > >Subject: Re: [webmin-l] (no subject) >> > >> > >Date: 02 Mar 2006 15:13:41 +1100 >> > >> > >MIME-Version: 1.0 >> > >> > >Received: from lists-outbound.sourceforge.net >> ([66.35.250.225]) by >> > >> > >bay0-mc10-f11.bay0.hotmail.com with Microsoft >> SMTPSVC(6.0.3790.211); >> > >>Wed, 1 >> > >> > >Mar 2006 20:15:02 -0800 >> > >> > >Received: from sc8-sf-list1-b.sourceforge.net >> > >> > >(sc8-sf-list1-b.sourceforge.net [10.3.1.7])by >> > >>sc8-sf-spam2.sourceforge.net >> > >> > >(Postfix) with ESMTPid 0A9B712142; Wed, 1 Mar 2006 20:15:01 >> -0800 >> > >>(PST) >> > >> > >Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] >> > >> > >helo=mail.sourceforge.net)by sc8-sf-list1.sourceforge.net >> with esmtp >> > >>(Exim >> > >> > >4.30)id 1FEfCg-0005r2-EPfor >> web...@li...; Wed, >> > >>01 >> > >> > >Mar 2006 20:14:14 -0800 >> > >> > >Received: from [70.86.4.226] (helo=virtualmin.com)by >> > >>mail.sourceforge.net >> > >> > >with esmtp (Exim 4.44)id 1FEfCf-0003ac-20for >> > >> > >web...@li...; Wed, 01 Mar 2006 >> 20:14:14 -0800 >> > >> > >Received: from [193.9.101.138] >> (CPE-60-230-176-210.vic.bigpond.net.au >> > >> > >[60.230.176.210])by virtualmin.com (Postfix) with ESMTP id >> > >>B776B290D86for >> > >> > ><web...@li...>; Wed, 1 Mar 2006 >> 21:31:37 -0600 >> > >> > >(CST) >> > >> > >X-Message-Info: StaYHEBmGBqKz67fr+0tKypfpTIF8uL5vJMZk0dw5F8= >> > >> > >References: <BAY...@ph...> >> > >> > >Organization: X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) >> X-Spam-Score: >> > >>1.0 >> > >> > >(+) >> > >> > >X-Spam-Report: Spam Filtering performed by sourceforge.net.See >> > >> > >http://spamassassin.org/tag/ for more details.Report problems to >> > >> > >http://sf.net/tracker/?func=add&group_id=1&atid=2000011.0 >> > >>FORGED_RCVD_HELO >> > >> > > Received: contains a forged HELO >> > >> > >Errors-To: web...@li... >> > >> > >X-BeenThere: web...@li... >> > >> > >X-Mailman-Version: 2.0.9-sf.net >> > >> > >Precedence: bulk >> > >> > >List-Unsubscribe: >> > >> > >> > >> >> ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=unsubscribe> >> >> > >> > >List-Id: Webmin users list <webadmin-list.lists.sourceforge.net> >> > >> > >List-Post: <mailto:web...@li...> >> > >> > >List-Help: >> > >> > >> ><mailto:web...@li...?subject=help> >> > >> > >List-Subscribe: >> > >> > >> > >> >> ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=subscribe> >> >> > >> > >List-Archive: >> > >> > >> ><http://sourceforge.net/mailarchive/forum.php?forum=webadmin-list> >> > >> > >X-Original-Date: 02 Mar 2006 15:13:41 +1100 >> > >> > >Return-Path: web...@li... >> > >> > >X-OriginalArrivalTime: 02 Mar 2006 04:15:02.0260 (UTC) >> > >> > >FILETIME=[E08DD340:01C63DAF] >> > >> > > >> > >> > >On Thu, 2006-03-02 at 14:13, Dave . wrote: >> > >> > > > I have a shell script run from the custom commands module. >> It runs >> > >> > > > successfully in a shell as well as in the custom commands >> module >> > >>when >> > >> > >the >> > >> > > > "Use User's Environment is UNCHECKED. However, when I >> check the >> > >>"Use >> > >> > >User's >> > >> > > > Environment" no echo commands are displayed in the ouput >> for the >> > >> > >command. >> > >> > > > The user is using a valid shell located at /bin/bash >> defined by the >> > >> > >shell >> > >> > > > script. >> > >> > > > Any Help appreciated. >> > >> > > >> > >> > >What happens if you login via SSH as root, and run a command >> like? : >> > >> > > >> > >> > >su - USERNAME -s /bin/sh -c "echo foo" >> > >> > > >> > >> > >That is the command Webmin uses when the 'Use user's >> environment' >> > >>option >> > >> > >is selected. >> > >> > > >> > >> > > - Jamie >> > >> > > >> > >> > > >> > >> > > >> > >> > >------------------------------------------------------- >> > >> > >This SF.Net email is sponsored by xPML, a groundbreaking >> scripting >> > >>language >> > >> > >that extends applications into web and mobile media. Attend >> the live >> > >> > >webcast >> > >> > >and join the prime developer group breaking into this new coding >> > >>territory! >> > >> > >> > >> >> >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >> >> > >> > >- >> > >> > >Forwarded by the Webmin mailing list at >> > >>web...@li... >> > >> > >To remove yourself from this list, go to >> > >> > >http://lists.sourceforge.net/lists/listinfo/webadmin-list >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------- >> > >> > This SF.Net email is sponsored by xPML, a groundbreaking >> scripting >> > >>language >> > >> > that extends applications into web and mobile media. Attend >> the live >> > >>webcast >> > >> > and join the prime developer group breaking into this new coding >> > >>territory! >> > >> > >> > >> >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >> >> > >> > - >> > >> > Forwarded by the Webmin mailing list at >> > >>web...@li... >> > >> > To remove yourself from this list, go to >> > >> > http://lists.sourceforge.net/lists/listinfo/webadmin-list >> > >> > >> > >> >> > >> >> > >> >> > >>------------------------------------------------------- >> > >>This SF.Net email is sponsored by xPML, a groundbreaking scripting >> > >>language >> > >>that extends applications into web and mobile media. Attend the live >> > >>webcast >> > >>and join the prime developer group breaking into this new coding >> > >>territory! >> > >> >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >> >> > >>- >> > >>Forwarded by the Webmin mailing list at >> > >>web...@li... >> > >>To remove yourself from this list, go to >> > >>http://lists.sourceforge.net/lists/listinfo/webadmin-list >> > > >> > > >> > > >> > > >> > >------------------------------------------------------- >> > >This SF.Net email is sponsored by xPML, a groundbreaking scripting >> language >> > >that extends applications into web and mobile media. Attend the live >> > >webcast >> > >and join the prime developer group breaking into this new coding >> territory! >> > >> >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >> >> > >- >> > >Forwarded by the Webmin mailing list at >> web...@li... >> > >To remove yourself from this list, go to >> > >http://lists.sourceforge.net/lists/listinfo/webadmin-list >> > >> > >> > >> > >> > ------------------------------------------------------- >> > This SF.Net email is sponsored by xPML, a groundbreaking scripting >> language >> > that extends applications into web and mobile media. Attend the >> live webcast >> > and join the prime developer group breaking into this new coding >> territory! >> > >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >> > - >> > Forwarded by the Webmin mailing list at >> web...@li... >> > To remove yourself from this list, go to >> > http://lists.sourceforge.net/lists/listinfo/webadmin-list >> > >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by xPML, a groundbreaking scripting >> language >> that extends applications into web and mobile media. Attend the live >> webcast >> and join the prime developer group breaking into this new coding >> territory! >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >> - >> Forwarded by the Webmin mailing list at >> web...@li... >> To remove yourself from this list, go to >> http://lists.sourceforge.net/lists/listinfo/webadmin-list > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > - > Forwarded by the Webmin mailing list at > web...@li... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list > > |
|
From: Dave . <dav...@ho...> - 2006-03-02 04:48:33
|
The script works, everything except for the echo command, I have also tried chmodding the script to 777 and giving the full path to the script. None worked. I think the problem is in the output, made by the echos getting displayed by the command ouput into webmin. >From: Jamie Cameron <jca...@we...> >Reply-To: web...@li... >To: web...@li... >Subject: Re: [webmin-l] (no subject) >Date: 02 Mar 2006 15:42:08 +1100 >MIME-Version: 1.0 >Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by >bay0-mc7-f1.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 1 >Mar 2006 20:43:04 -0800 >Received: from sc8-sf-list1-b.sourceforge.net >(sc8-sf-list1-b.sourceforge.net [10.3.1.7])by sc8-sf-spam1.sourceforge.net >(Postfix) with ESMTPid 1DAA988238; Wed, 1 Mar 2006 20:43:02 -0800 (PST) >Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] >helo=mail.sourceforge.net)by sc8-sf-list1.sourceforge.net with esmtp (Exim >4.30)id 1FEfeD-0000Ew-4gfor web...@li...; Wed, 01 >Mar 2006 20:42:41 -0800 >Received: from [70.86.4.226] (helo=virtualmin.com)by mail.sourceforge.net >with esmtp (Exim 4.44)id 1FEfeB-0003aw-FYfor >web...@li...; Wed, 01 Mar 2006 20:42:41 -0800 >Received: from [193.9.101.138] (CPE-60-230-176-210.vic.bigpond.net.au >[60.230.176.210])by virtualmin.com (Postfix) with ESMTP id C5401290B2Afor ><web...@li...>; Wed, 1 Mar 2006 22:00:04 -0600 >(CST) >X-Message-Info: StaYHEBmGBoCvpuFmTzcC8ri388uRzYOEtU/eIvXRcw= >References: <BAY...@ph...> >Organization: X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) X-Spam-Score: 1.0 >(+) >X-Spam-Report: Spam Filtering performed by sourceforge.net.See >http://spamassassin.org/tag/ for more details.Report problems to >http://sf.net/tracker/?func=add&group_id=1&atid=2000011.0 FORGED_RCVD_HELO > Received: contains a forged HELO >Errors-To: web...@li... >X-BeenThere: web...@li... >X-Mailman-Version: 2.0.9-sf.net >Precedence: bulk >List-Unsubscribe: ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=unsubscribe> >List-Id: Webmin users list <webadmin-list.lists.sourceforge.net> >List-Post: <mailto:web...@li...> >List-Help: ><mailto:web...@li...?subject=help> >List-Subscribe: ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=subscribe> >List-Archive: ><http://sourceforge.net/mailarchive/forum.php?forum=webadmin-list> >X-Original-Date: 02 Mar 2006 15:42:08 +1100 >Return-Path: web...@li... >X-OriginalArrivalTime: 02 Mar 2006 04:43:04.0140 (UTC) >FILETIME=[CB0858C0:01C63DB3] > >Ok .. I have a couple of suggestions : > >1) Try using the full path to the testecho command , like /bin/testecho >2) Have the script perform some other action (like create a file in >/tmp) to see if it is being run at all. Perhaps it is executing, but the >output is not being displayed. > > - Jamie > >On Thu, 2006-03-02 at 15:37, Dave . wrote: > > Sorry, here is an updated version, it calls the shell script in the /bin > > directory owned by root. I get this when su - user in ssh and running >the > > script. > > > > [root@localhost ~]# su - kimball -s /bin/bash -c testecho > > asdf123 > > tester for me > > > > The shell script in /bin is named testecho and contains: > > > > #!/bin/bash > > echo "asdf123" > > echo "tester for me" > > > > > > >From: "Dave ." <dav...@ho...> > > >Reply-To: web...@li... > > >To: web...@li... > > >Subject: Re: [webmin-l] (no subject) > > >Date: Thu, 02 Mar 2006 04:25:41 +0000 > > >MIME-Version: 1.0 > > >X-Originating-IP: [69.120.56.144] > > >X-Originating-Email: [dav...@ho...] > > >X-Sender: dav...@ho... > > >Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by > > >bay0-mc6-f2.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Wed, >1 > > >Mar 2006 20:26:02 -0800 > > >Received: from sc8-sf-list1-b.sourceforge.net > > >(sc8-sf-list1-b.sourceforge.net [10.3.1.7])by >sc8-sf-spam2.sourceforge.net > > >(Postfix) with ESMTPid 5D66012580; Wed, 1 Mar 2006 20:26:01 -0800 >(PST) > > >Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] > > >helo=mail.sourceforge.net)by sc8-sf-list1.sourceforge.net with esmtp >(Exim > > >4.30)id 1FEfNo-0006ul-Hxfor web...@li...; Wed, >01 > > >Mar 2006 20:25:44 -0800 > > >Received: from bay112-f13.bay112.hotmail.com ([64.4.26.23] > > >helo=hotmail.com)by mail.sourceforge.net with esmtp (Exim 4.44)id > > >1FEfNn-0007cQ-Vnfor web...@li...; Wed, 01 Mar >2006 > > >20:25:44 -0800 > > >Received: from mail pickup service by hotmail.com with Microsoft >SMTPSVC; > > >Wed, 1 Mar 2006 20:25:43 -0800 > > >Received: from 64.4.26.200 by by112fd.bay112.hotmail.msn.com with >HTTP;Thu, > > >02 Mar 2006 04:25:41 GMT > > >X-Message-Info: StaYHEBmGBr9e1mDLkyZnxEz+Fa7zR2z6s6tUnotml0= > > >X-OriginalArrivalTime: 02 Mar 2006 04:25:43.0446 (UTC) > > >FILETIME=[5EBB0B60:01C63DB1] > > >X-Spam-Score: 0.5 (/) > > >X-Spam-Report: Spam Filtering performed by sourceforge.net.See > > >http://spamassassin.org/tag/ for more details.Report problems to > > >http://sf.net/tracker/?func=add&group_id=1&atid=2000010.5 >FROM_ENDS_IN_NUMS > > > From: ends in numbers0.0 MSGID_FROM_MTA_HEADER Message-Id was >added > > >by a relay > > >Errors-To: web...@li... > > >X-BeenThere: web...@li... > > >X-Mailman-Version: 2.0.9-sf.net > > >Precedence: bulk > > >List-Unsubscribe: > > > ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=unsubscribe> > > >List-Id: Webmin users list <webadmin-list.lists.sourceforge.net> > > >List-Post: <mailto:web...@li...> > > >List-Help: > > ><mailto:web...@li...?subject=help> > > >List-Subscribe: > > > ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=subscribe> > > >List-Archive: > > ><http://sourceforge.net/mailarchive/forum.php?forum=webadmin-list> > > >X-Original-Date: Thu, 02 Mar 2006 04:25:41 +0000 > > >Return-Path: web...@li... > > > > > > > > >The shell script works except for the echo command. When the command is >run > > >from custom commands module, it just says command > > >ouput from....comandhere > > >---then nothing. even though In my expierence the echo commands are > > >displayed. > > > > > > > > >>From: Jamie Cameron <jca...@we...> > > >>Reply-To: web...@li... > > >>To: web...@li... > > >>Subject: Re: [webmin-l] (no subject) > > >>Date: 02 Mar 2006 15:22:31 +1100 > > >>MIME-Version: 1.0 > > >>Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by > > >>bay0-mc5-f17.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); >Wed, 1 > > >>Mar 2006 20:24:06 -0800 > > >>Received: from sc8-sf-list1-b.sourceforge.net > > >>(sc8-sf-list1-b.sourceforge.net [10.3.1.7])by >sc8-sf-spam2.sourceforge.net > > >>(Postfix) with ESMTPid 0B36712F8D; Wed, 1 Mar 2006 20:24:06 -0800 >(PST) > > >>Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] > > >>helo=mail.sourceforge.net)by sc8-sf-list1.sourceforge.net with esmtp >(Exim > > >>4.30)id 1FEfLC-0006f6-1hfor web...@li...; Wed, >01 > > >>Mar 2006 20:23:02 -0800 > > >>Received: from [70.86.4.226] (helo=virtualmin.com)by >mail.sourceforge.net > > >>with esmtp (Exim 4.44)id 1FEfLB-0006j4-Axfor > > >>web...@li...; Wed, 01 Mar 2006 20:23:01 -0800 > > >>Received: from [193.9.101.138] (CPE-60-230-176-210.vic.bigpond.net.au > > >>[60.230.176.210])by virtualmin.com (Postfix) with ESMTP id >35B91290D86for > > >><web...@li...>; Wed, 1 Mar 2006 21:40:27 -0600 > > >>(CST) > > >>X-Message-Info: StaYHEBmGBoZSf8qHByhBqPPULjjyGY8XWrcM9Nv8uM= > > >>References: <BAY...@ph...> > > >>Organization: X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) X-Spam-Score: >1.0 > > >>(+) > > >>X-Spam-Report: Spam Filtering performed by sourceforge.net.See > > >>http://spamassassin.org/tag/ for more details.Report problems to > > >>http://sf.net/tracker/?func=add&group_id=1&atid=2000011.0 >FORGED_RCVD_HELO > > >> Received: contains a forged HELO > > >>Errors-To: web...@li... > > >>X-BeenThere: web...@li... > > >>X-Mailman-Version: 2.0.9-sf.net > > >>Precedence: bulk > > >>List-Unsubscribe: > > > >><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=unsubscribe> > > >>List-Id: Webmin users list <webadmin-list.lists.sourceforge.net> > > >>List-Post: <mailto:web...@li...> > > >>List-Help: > > >><mailto:web...@li...?subject=help> > > >>List-Subscribe: > > > >><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=subscribe> > > >>List-Archive: > > >><http://sourceforge.net/mailarchive/forum.php?forum=webadmin-list> > > >>X-Original-Date: 02 Mar 2006 15:22:31 +1100 > > >>Return-Path: web...@li... > > >>X-OriginalArrivalTime: 02 Mar 2006 04:24:06.0730 (UTC) > > >>FILETIME=[25155AA0:01C63DB1] > > >> > > >>Ok .. how about if you try it with the actual command you were trying >to > > >>run from Webmin (assuming that this wasn't just an echo command too) ? > > >> > > >> - Jamie > > >> > > >>On Thu, 2006-03-02 at 15:16, Dave . wrote: > > >> > output from the su and echo command is: > > >> > > > >> > [root@localhost ~]# su - kimball -s /bin/sh -c "echo foo" > > >> > foo > > >> > > > >> > > > >> > >From: Jamie Cameron <jca...@we...> > > >> > >Reply-To: web...@li... > > >> > >To: web...@li... > > >> > >Subject: Re: [webmin-l] (no subject) > > >> > >Date: 02 Mar 2006 15:13:41 +1100 > > >> > >MIME-Version: 1.0 > > >> > >Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by > > >> > >bay0-mc10-f11.bay0.hotmail.com with Microsoft >SMTPSVC(6.0.3790.211); > > >>Wed, 1 > > >> > >Mar 2006 20:15:02 -0800 > > >> > >Received: from sc8-sf-list1-b.sourceforge.net > > >> > >(sc8-sf-list1-b.sourceforge.net [10.3.1.7])by > > >>sc8-sf-spam2.sourceforge.net > > >> > >(Postfix) with ESMTPid 0A9B712142; Wed, 1 Mar 2006 20:15:01 -0800 > > >>(PST) > > >> > >Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] > > >> > >helo=mail.sourceforge.net)by sc8-sf-list1.sourceforge.net with >esmtp > > >>(Exim > > >> > >4.30)id 1FEfCg-0005r2-EPfor web...@li...; >Wed, > > >>01 > > >> > >Mar 2006 20:14:14 -0800 > > >> > >Received: from [70.86.4.226] (helo=virtualmin.com)by > > >>mail.sourceforge.net > > >> > >with esmtp (Exim 4.44)id 1FEfCf-0003ac-20for > > >> > >web...@li...; Wed, 01 Mar 2006 20:14:14 >-0800 > > >> > >Received: from [193.9.101.138] >(CPE-60-230-176-210.vic.bigpond.net.au > > >> > >[60.230.176.210])by virtualmin.com (Postfix) with ESMTP id > > >>B776B290D86for > > >> > ><web...@li...>; Wed, 1 Mar 2006 21:31:37 >-0600 > > >> > >(CST) > > >> > >X-Message-Info: StaYHEBmGBqKz67fr+0tKypfpTIF8uL5vJMZk0dw5F8= > > >> > >References: <BAY...@ph...> > > >> > >Organization: X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) >X-Spam-Score: > > >>1.0 > > >> > >(+) > > >> > >X-Spam-Report: Spam Filtering performed by sourceforge.net.See > > >> > >http://spamassassin.org/tag/ for more details.Report problems to > > >> > >http://sf.net/tracker/?func=add&group_id=1&atid=2000011.0 > > >>FORGED_RCVD_HELO > > >> > > Received: contains a forged HELO > > >> > >Errors-To: web...@li... > > >> > >X-BeenThere: web...@li... > > >> > >X-Mailman-Version: 2.0.9-sf.net > > >> > >Precedence: bulk > > >> > >List-Unsubscribe: > > >> > > > >> > ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=unsubscribe> > > >> > >List-Id: Webmin users list <webadmin-list.lists.sourceforge.net> > > >> > >List-Post: <mailto:web...@li...> > > >> > >List-Help: > > >> > ><mailto:web...@li...?subject=help> > > >> > >List-Subscribe: > > >> > > > >> > ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=subscribe> > > >> > >List-Archive: > > >> > ><http://sourceforge.net/mailarchive/forum.php?forum=webadmin-list> > > >> > >X-Original-Date: 02 Mar 2006 15:13:41 +1100 > > >> > >Return-Path: web...@li... > > >> > >X-OriginalArrivalTime: 02 Mar 2006 04:15:02.0260 (UTC) > > >> > >FILETIME=[E08DD340:01C63DAF] > > >> > > > > >> > >On Thu, 2006-03-02 at 14:13, Dave . wrote: > > >> > > > I have a shell script run from the custom commands module. It >runs > > >> > > > successfully in a shell as well as in the custom commands >module > > >>when > > >> > >the > > >> > > > "Use User's Environment is UNCHECKED. However, when I check the > > >>"Use > > >> > >User's > > >> > > > Environment" no echo commands are displayed in the ouput for >the > > >> > >command. > > >> > > > The user is using a valid shell located at /bin/bash defined by >the > > >> > >shell > > >> > > > script. > > >> > > > Any Help appreciated. > > >> > > > > >> > >What happens if you login via SSH as root, and run a command like? >: > > >> > > > > >> > >su - USERNAME -s /bin/sh -c "echo foo" > > >> > > > > >> > >That is the command Webmin uses when the 'Use user's environment' > > >>option > > >> > >is selected. > > >> > > > > >> > > - Jamie > > >> > > > > >> > > > > >> > > > > >> > >------------------------------------------------------- > > >> > >This SF.Net email is sponsored by xPML, a groundbreaking scripting > > >>language > > >> > >that extends applications into web and mobile media. Attend the >live > > >> > >webcast > > >> > >and join the prime developer group breaking into this new coding > > >>territory! > > >> > > > >> > >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > >> > >- > > >> > >Forwarded by the Webmin mailing list at > > >>web...@li... > > >> > >To remove yourself from this list, go to > > >> > >http://lists.sourceforge.net/lists/listinfo/webadmin-list > > >> > > > >> > > > >> > > > >> > > > >> > ------------------------------------------------------- > > >> > This SF.Net email is sponsored by xPML, a groundbreaking scripting > > >>language > > >> > that extends applications into web and mobile media. Attend the >live > > >>webcast > > >> > and join the prime developer group breaking into this new coding > > >>territory! > > >> > > > > >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > >> > - > > >> > Forwarded by the Webmin mailing list at > > >>web...@li... > > >> > To remove yourself from this list, go to > > >> > http://lists.sourceforge.net/lists/listinfo/webadmin-list > > >> > > > >> > > >> > > >> > > >>------------------------------------------------------- > > >>This SF.Net email is sponsored by xPML, a groundbreaking scripting > > >>language > > >>that extends applications into web and mobile media. Attend the live > > >>webcast > > >>and join the prime developer group breaking into this new coding > > >>territory! > > > >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > >>- > > >>Forwarded by the Webmin mailing list at > > >>web...@li... > > >>To remove yourself from this list, go to > > >>http://lists.sourceforge.net/lists/listinfo/webadmin-list > > > > > > > > > > > > > > >------------------------------------------------------- > > >This SF.Net email is sponsored by xPML, a groundbreaking scripting >language > > >that extends applications into web and mobile media. Attend the live > > >webcast > > >and join the prime developer group breaking into this new coding >territory! > > > >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > >- > > >Forwarded by the Webmin mailing list at >web...@li... > > >To remove yourself from this list, go to > > >http://lists.sourceforge.net/lists/listinfo/webadmin-list > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by xPML, a groundbreaking scripting >language > > that extends applications into web and mobile media. Attend the live >webcast > > and join the prime developer group breaking into this new coding >territory! > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > - > > Forwarded by the Webmin mailing list at >web...@li... > > To remove yourself from this list, go to > > http://lists.sourceforge.net/lists/listinfo/webadmin-list > > > > > >------------------------------------------------------- >This SF.Net email is sponsored by xPML, a groundbreaking scripting language >that extends applications into web and mobile media. Attend the live >webcast >and join the prime developer group breaking into this new coding territory! >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >- >Forwarded by the Webmin mailing list at web...@li... >To remove yourself from this list, go to >http://lists.sourceforge.net/lists/listinfo/webadmin-list |
|
From: Jamie C. <jca...@we...> - 2006-03-02 04:42:41
|
Ok .. I have a couple of suggestions : 1) Try using the full path to the testecho command , like /bin/testecho 2) Have the script perform some other action (like create a file in /tmp) to see if it is being run at all. Perhaps it is executing, but the output is not being displayed. - Jamie On Thu, 2006-03-02 at 15:37, Dave . wrote: > Sorry, here is an updated version, it calls the shell script in the /bin > directory owned by root. I get this when su - user in ssh and running the > script. > > [root@localhost ~]# su - kimball -s /bin/bash -c testecho > asdf123 > tester for me > > The shell script in /bin is named testecho and contains: > > #!/bin/bash > echo "asdf123" > echo "tester for me" > > > >From: "Dave ." <dav...@ho...> > >Reply-To: web...@li... > >To: web...@li... > >Subject: Re: [webmin-l] (no subject) > >Date: Thu, 02 Mar 2006 04:25:41 +0000 > >MIME-Version: 1.0 > >X-Originating-IP: [69.120.56.144] > >X-Originating-Email: [dav...@ho...] > >X-Sender: dav...@ho... > >Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by > >bay0-mc6-f2.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 1 > >Mar 2006 20:26:02 -0800 > >Received: from sc8-sf-list1-b.sourceforge.net > >(sc8-sf-list1-b.sourceforge.net [10.3.1.7])by sc8-sf-spam2.sourceforge.net > >(Postfix) with ESMTPid 5D66012580; Wed, 1 Mar 2006 20:26:01 -0800 (PST) > >Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] > >helo=mail.sourceforge.net)by sc8-sf-list1.sourceforge.net with esmtp (Exim > >4.30)id 1FEfNo-0006ul-Hxfor web...@li...; Wed, 01 > >Mar 2006 20:25:44 -0800 > >Received: from bay112-f13.bay112.hotmail.com ([64.4.26.23] > >helo=hotmail.com)by mail.sourceforge.net with esmtp (Exim 4.44)id > >1FEfNn-0007cQ-Vnfor web...@li...; Wed, 01 Mar 2006 > >20:25:44 -0800 > >Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; > >Wed, 1 Mar 2006 20:25:43 -0800 > >Received: from 64.4.26.200 by by112fd.bay112.hotmail.msn.com with HTTP;Thu, > >02 Mar 2006 04:25:41 GMT > >X-Message-Info: StaYHEBmGBr9e1mDLkyZnxEz+Fa7zR2z6s6tUnotml0= > >X-OriginalArrivalTime: 02 Mar 2006 04:25:43.0446 (UTC) > >FILETIME=[5EBB0B60:01C63DB1] > >X-Spam-Score: 0.5 (/) > >X-Spam-Report: Spam Filtering performed by sourceforge.net.See > >http://spamassassin.org/tag/ for more details.Report problems to > >http://sf.net/tracker/?func=add&group_id=1&atid=2000010.5 FROM_ENDS_IN_NUMS > > From: ends in numbers0.0 MSGID_FROM_MTA_HEADER Message-Id was added > >by a relay > >Errors-To: web...@li... > >X-BeenThere: web...@li... > >X-Mailman-Version: 2.0.9-sf.net > >Precedence: bulk > >List-Unsubscribe: > ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=unsubscribe> > >List-Id: Webmin users list <webadmin-list.lists.sourceforge.net> > >List-Post: <mailto:web...@li...> > >List-Help: > ><mailto:web...@li...?subject=help> > >List-Subscribe: > ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=subscribe> > >List-Archive: > ><http://sourceforge.net/mailarchive/forum.php?forum=webadmin-list> > >X-Original-Date: Thu, 02 Mar 2006 04:25:41 +0000 > >Return-Path: web...@li... > > > > > >The shell script works except for the echo command. When the command is run > >from custom commands module, it just says command > >ouput from....comandhere > >---then nothing. even though In my expierence the echo commands are > >displayed. > > > > > >>From: Jamie Cameron <jca...@we...> > >>Reply-To: web...@li... > >>To: web...@li... > >>Subject: Re: [webmin-l] (no subject) > >>Date: 02 Mar 2006 15:22:31 +1100 > >>MIME-Version: 1.0 > >>Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by > >>bay0-mc5-f17.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 1 > >>Mar 2006 20:24:06 -0800 > >>Received: from sc8-sf-list1-b.sourceforge.net > >>(sc8-sf-list1-b.sourceforge.net [10.3.1.7])by sc8-sf-spam2.sourceforge.net > >>(Postfix) with ESMTPid 0B36712F8D; Wed, 1 Mar 2006 20:24:06 -0800 (PST) > >>Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] > >>helo=mail.sourceforge.net)by sc8-sf-list1.sourceforge.net with esmtp (Exim > >>4.30)id 1FEfLC-0006f6-1hfor web...@li...; Wed, 01 > >>Mar 2006 20:23:02 -0800 > >>Received: from [70.86.4.226] (helo=virtualmin.com)by mail.sourceforge.net > >>with esmtp (Exim 4.44)id 1FEfLB-0006j4-Axfor > >>web...@li...; Wed, 01 Mar 2006 20:23:01 -0800 > >>Received: from [193.9.101.138] (CPE-60-230-176-210.vic.bigpond.net.au > >>[60.230.176.210])by virtualmin.com (Postfix) with ESMTP id 35B91290D86for > >><web...@li...>; Wed, 1 Mar 2006 21:40:27 -0600 > >>(CST) > >>X-Message-Info: StaYHEBmGBoZSf8qHByhBqPPULjjyGY8XWrcM9Nv8uM= > >>References: <BAY...@ph...> > >>Organization: X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) X-Spam-Score: 1.0 > >>(+) > >>X-Spam-Report: Spam Filtering performed by sourceforge.net.See > >>http://spamassassin.org/tag/ for more details.Report problems to > >>http://sf.net/tracker/?func=add&group_id=1&atid=2000011.0 FORGED_RCVD_HELO > >> Received: contains a forged HELO > >>Errors-To: web...@li... > >>X-BeenThere: web...@li... > >>X-Mailman-Version: 2.0.9-sf.net > >>Precedence: bulk > >>List-Unsubscribe: > >><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=unsubscribe> > >>List-Id: Webmin users list <webadmin-list.lists.sourceforge.net> > >>List-Post: <mailto:web...@li...> > >>List-Help: > >><mailto:web...@li...?subject=help> > >>List-Subscribe: > >><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=subscribe> > >>List-Archive: > >><http://sourceforge.net/mailarchive/forum.php?forum=webadmin-list> > >>X-Original-Date: 02 Mar 2006 15:22:31 +1100 > >>Return-Path: web...@li... > >>X-OriginalArrivalTime: 02 Mar 2006 04:24:06.0730 (UTC) > >>FILETIME=[25155AA0:01C63DB1] > >> > >>Ok .. how about if you try it with the actual command you were trying to > >>run from Webmin (assuming that this wasn't just an echo command too) ? > >> > >> - Jamie > >> > >>On Thu, 2006-03-02 at 15:16, Dave . wrote: > >> > output from the su and echo command is: > >> > > >> > [root@localhost ~]# su - kimball -s /bin/sh -c "echo foo" > >> > foo > >> > > >> > > >> > >From: Jamie Cameron <jca...@we...> > >> > >Reply-To: web...@li... > >> > >To: web...@li... > >> > >Subject: Re: [webmin-l] (no subject) > >> > >Date: 02 Mar 2006 15:13:41 +1100 > >> > >MIME-Version: 1.0 > >> > >Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by > >> > >bay0-mc10-f11.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); > >>Wed, 1 > >> > >Mar 2006 20:15:02 -0800 > >> > >Received: from sc8-sf-list1-b.sourceforge.net > >> > >(sc8-sf-list1-b.sourceforge.net [10.3.1.7])by > >>sc8-sf-spam2.sourceforge.net > >> > >(Postfix) with ESMTPid 0A9B712142; Wed, 1 Mar 2006 20:15:01 -0800 > >>(PST) > >> > >Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] > >> > >helo=mail.sourceforge.net)by sc8-sf-list1.sourceforge.net with esmtp > >>(Exim > >> > >4.30)id 1FEfCg-0005r2-EPfor web...@li...; Wed, > >>01 > >> > >Mar 2006 20:14:14 -0800 > >> > >Received: from [70.86.4.226] (helo=virtualmin.com)by > >>mail.sourceforge.net > >> > >with esmtp (Exim 4.44)id 1FEfCf-0003ac-20for > >> > >web...@li...; Wed, 01 Mar 2006 20:14:14 -0800 > >> > >Received: from [193.9.101.138] (CPE-60-230-176-210.vic.bigpond.net.au > >> > >[60.230.176.210])by virtualmin.com (Postfix) with ESMTP id > >>B776B290D86for > >> > ><web...@li...>; Wed, 1 Mar 2006 21:31:37 -0600 > >> > >(CST) > >> > >X-Message-Info: StaYHEBmGBqKz67fr+0tKypfpTIF8uL5vJMZk0dw5F8= > >> > >References: <BAY...@ph...> > >> > >Organization: X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) X-Spam-Score: > >>1.0 > >> > >(+) > >> > >X-Spam-Report: Spam Filtering performed by sourceforge.net.See > >> > >http://spamassassin.org/tag/ for more details.Report problems to > >> > >http://sf.net/tracker/?func=add&group_id=1&atid=2000011.0 > >>FORGED_RCVD_HELO > >> > > Received: contains a forged HELO > >> > >Errors-To: web...@li... > >> > >X-BeenThere: web...@li... > >> > >X-Mailman-Version: 2.0.9-sf.net > >> > >Precedence: bulk > >> > >List-Unsubscribe: > >> > > >> ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=unsubscribe> > >> > >List-Id: Webmin users list <webadmin-list.lists.sourceforge.net> > >> > >List-Post: <mailto:web...@li...> > >> > >List-Help: > >> > ><mailto:web...@li...?subject=help> > >> > >List-Subscribe: > >> > > >> ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=subscribe> > >> > >List-Archive: > >> > ><http://sourceforge.net/mailarchive/forum.php?forum=webadmin-list> > >> > >X-Original-Date: 02 Mar 2006 15:13:41 +1100 > >> > >Return-Path: web...@li... > >> > >X-OriginalArrivalTime: 02 Mar 2006 04:15:02.0260 (UTC) > >> > >FILETIME=[E08DD340:01C63DAF] > >> > > > >> > >On Thu, 2006-03-02 at 14:13, Dave . wrote: > >> > > > I have a shell script run from the custom commands module. It runs > >> > > > successfully in a shell as well as in the custom commands module > >>when > >> > >the > >> > > > "Use User's Environment is UNCHECKED. However, when I check the > >>"Use > >> > >User's > >> > > > Environment" no echo commands are displayed in the ouput for the > >> > >command. > >> > > > The user is using a valid shell located at /bin/bash defined by the > >> > >shell > >> > > > script. > >> > > > Any Help appreciated. > >> > > > >> > >What happens if you login via SSH as root, and run a command like? : > >> > > > >> > >su - USERNAME -s /bin/sh -c "echo foo" > >> > > > >> > >That is the command Webmin uses when the 'Use user's environment' > >>option > >> > >is selected. > >> > > > >> > > - Jamie > >> > > > >> > > > >> > > > >> > >------------------------------------------------------- > >> > >This SF.Net email is sponsored by xPML, a groundbreaking scripting > >>language > >> > >that extends applications into web and mobile media. Attend the live > >> > >webcast > >> > >and join the prime developer group breaking into this new coding > >>territory! > >> > > >> >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > >> > >- > >> > >Forwarded by the Webmin mailing list at > >>web...@li... > >> > >To remove yourself from this list, go to > >> > >http://lists.sourceforge.net/lists/listinfo/webadmin-list > >> > > >> > > >> > > >> > > >> > ------------------------------------------------------- > >> > This SF.Net email is sponsored by xPML, a groundbreaking scripting > >>language > >> > that extends applications into web and mobile media. Attend the live > >>webcast > >> > and join the prime developer group breaking into this new coding > >>territory! > >> > > >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > >> > - > >> > Forwarded by the Webmin mailing list at > >>web...@li... > >> > To remove yourself from this list, go to > >> > http://lists.sourceforge.net/lists/listinfo/webadmin-list > >> > > >> > >> > >> > >>------------------------------------------------------- > >>This SF.Net email is sponsored by xPML, a groundbreaking scripting > >>language > >>that extends applications into web and mobile media. Attend the live > >>webcast > >>and join the prime developer group breaking into this new coding > >>territory! > >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > >>- > >>Forwarded by the Webmin mailing list at > >>web...@li... > >>To remove yourself from this list, go to > >>http://lists.sourceforge.net/lists/listinfo/webadmin-list > > > > > > > > > >------------------------------------------------------- > >This SF.Net email is sponsored by xPML, a groundbreaking scripting language > >that extends applications into web and mobile media. Attend the live > >webcast > >and join the prime developer group breaking into this new coding territory! > >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > >- > >Forwarded by the Webmin mailing list at web...@li... > >To remove yourself from this list, go to > >http://lists.sourceforge.net/lists/listinfo/webadmin-list > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > - > Forwarded by the Webmin mailing list at web...@li... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list > |
|
From: Dave . <dav...@ho...> - 2006-03-02 04:37:40
|
Sorry, here is an updated version, it calls the shell script in the /bin directory owned by root. I get this when su - user in ssh and running the script. [root@localhost ~]# su - kimball -s /bin/bash -c testecho asdf123 tester for me The shell script in /bin is named testecho and contains: #!/bin/bash echo "asdf123" echo "tester for me" >From: "Dave ." <dav...@ho...> >Reply-To: web...@li... >To: web...@li... >Subject: Re: [webmin-l] (no subject) >Date: Thu, 02 Mar 2006 04:25:41 +0000 >MIME-Version: 1.0 >X-Originating-IP: [69.120.56.144] >X-Originating-Email: [dav...@ho...] >X-Sender: dav...@ho... >Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by >bay0-mc6-f2.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 1 >Mar 2006 20:26:02 -0800 >Received: from sc8-sf-list1-b.sourceforge.net >(sc8-sf-list1-b.sourceforge.net [10.3.1.7])by sc8-sf-spam2.sourceforge.net >(Postfix) with ESMTPid 5D66012580; Wed, 1 Mar 2006 20:26:01 -0800 (PST) >Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] >helo=mail.sourceforge.net)by sc8-sf-list1.sourceforge.net with esmtp (Exim >4.30)id 1FEfNo-0006ul-Hxfor web...@li...; Wed, 01 >Mar 2006 20:25:44 -0800 >Received: from bay112-f13.bay112.hotmail.com ([64.4.26.23] >helo=hotmail.com)by mail.sourceforge.net with esmtp (Exim 4.44)id >1FEfNn-0007cQ-Vnfor web...@li...; Wed, 01 Mar 2006 >20:25:44 -0800 >Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; >Wed, 1 Mar 2006 20:25:43 -0800 >Received: from 64.4.26.200 by by112fd.bay112.hotmail.msn.com with HTTP;Thu, >02 Mar 2006 04:25:41 GMT >X-Message-Info: StaYHEBmGBr9e1mDLkyZnxEz+Fa7zR2z6s6tUnotml0= >X-OriginalArrivalTime: 02 Mar 2006 04:25:43.0446 (UTC) >FILETIME=[5EBB0B60:01C63DB1] >X-Spam-Score: 0.5 (/) >X-Spam-Report: Spam Filtering performed by sourceforge.net.See >http://spamassassin.org/tag/ for more details.Report problems to >http://sf.net/tracker/?func=add&group_id=1&atid=2000010.5 FROM_ENDS_IN_NUMS > From: ends in numbers0.0 MSGID_FROM_MTA_HEADER Message-Id was added >by a relay >Errors-To: web...@li... >X-BeenThere: web...@li... >X-Mailman-Version: 2.0.9-sf.net >Precedence: bulk >List-Unsubscribe: ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=unsubscribe> >List-Id: Webmin users list <webadmin-list.lists.sourceforge.net> >List-Post: <mailto:web...@li...> >List-Help: ><mailto:web...@li...?subject=help> >List-Subscribe: ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=subscribe> >List-Archive: ><http://sourceforge.net/mailarchive/forum.php?forum=webadmin-list> >X-Original-Date: Thu, 02 Mar 2006 04:25:41 +0000 >Return-Path: web...@li... > > >The shell script works except for the echo command. When the command is run >from custom commands module, it just says command >ouput from....comandhere >---then nothing. even though In my expierence the echo commands are >displayed. > > >>From: Jamie Cameron <jca...@we...> >>Reply-To: web...@li... >>To: web...@li... >>Subject: Re: [webmin-l] (no subject) >>Date: 02 Mar 2006 15:22:31 +1100 >>MIME-Version: 1.0 >>Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by >>bay0-mc5-f17.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 1 >>Mar 2006 20:24:06 -0800 >>Received: from sc8-sf-list1-b.sourceforge.net >>(sc8-sf-list1-b.sourceforge.net [10.3.1.7])by sc8-sf-spam2.sourceforge.net >>(Postfix) with ESMTPid 0B36712F8D; Wed, 1 Mar 2006 20:24:06 -0800 (PST) >>Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] >>helo=mail.sourceforge.net)by sc8-sf-list1.sourceforge.net with esmtp (Exim >>4.30)id 1FEfLC-0006f6-1hfor web...@li...; Wed, 01 >>Mar 2006 20:23:02 -0800 >>Received: from [70.86.4.226] (helo=virtualmin.com)by mail.sourceforge.net >>with esmtp (Exim 4.44)id 1FEfLB-0006j4-Axfor >>web...@li...; Wed, 01 Mar 2006 20:23:01 -0800 >>Received: from [193.9.101.138] (CPE-60-230-176-210.vic.bigpond.net.au >>[60.230.176.210])by virtualmin.com (Postfix) with ESMTP id 35B91290D86for >><web...@li...>; Wed, 1 Mar 2006 21:40:27 -0600 >>(CST) >>X-Message-Info: StaYHEBmGBoZSf8qHByhBqPPULjjyGY8XWrcM9Nv8uM= >>References: <BAY...@ph...> >>Organization: X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) X-Spam-Score: 1.0 >>(+) >>X-Spam-Report: Spam Filtering performed by sourceforge.net.See >>http://spamassassin.org/tag/ for more details.Report problems to >>http://sf.net/tracker/?func=add&group_id=1&atid=2000011.0 FORGED_RCVD_HELO >> Received: contains a forged HELO >>Errors-To: web...@li... >>X-BeenThere: web...@li... >>X-Mailman-Version: 2.0.9-sf.net >>Precedence: bulk >>List-Unsubscribe: >><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=unsubscribe> >>List-Id: Webmin users list <webadmin-list.lists.sourceforge.net> >>List-Post: <mailto:web...@li...> >>List-Help: >><mailto:web...@li...?subject=help> >>List-Subscribe: >><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=subscribe> >>List-Archive: >><http://sourceforge.net/mailarchive/forum.php?forum=webadmin-list> >>X-Original-Date: 02 Mar 2006 15:22:31 +1100 >>Return-Path: web...@li... >>X-OriginalArrivalTime: 02 Mar 2006 04:24:06.0730 (UTC) >>FILETIME=[25155AA0:01C63DB1] >> >>Ok .. how about if you try it with the actual command you were trying to >>run from Webmin (assuming that this wasn't just an echo command too) ? >> >> - Jamie >> >>On Thu, 2006-03-02 at 15:16, Dave . wrote: >> > output from the su and echo command is: >> > >> > [root@localhost ~]# su - kimball -s /bin/sh -c "echo foo" >> > foo >> > >> > >> > >From: Jamie Cameron <jca...@we...> >> > >Reply-To: web...@li... >> > >To: web...@li... >> > >Subject: Re: [webmin-l] (no subject) >> > >Date: 02 Mar 2006 15:13:41 +1100 >> > >MIME-Version: 1.0 >> > >Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by >> > >bay0-mc10-f11.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); >>Wed, 1 >> > >Mar 2006 20:15:02 -0800 >> > >Received: from sc8-sf-list1-b.sourceforge.net >> > >(sc8-sf-list1-b.sourceforge.net [10.3.1.7])by >>sc8-sf-spam2.sourceforge.net >> > >(Postfix) with ESMTPid 0A9B712142; Wed, 1 Mar 2006 20:15:01 -0800 >>(PST) >> > >Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] >> > >helo=mail.sourceforge.net)by sc8-sf-list1.sourceforge.net with esmtp >>(Exim >> > >4.30)id 1FEfCg-0005r2-EPfor web...@li...; Wed, >>01 >> > >Mar 2006 20:14:14 -0800 >> > >Received: from [70.86.4.226] (helo=virtualmin.com)by >>mail.sourceforge.net >> > >with esmtp (Exim 4.44)id 1FEfCf-0003ac-20for >> > >web...@li...; Wed, 01 Mar 2006 20:14:14 -0800 >> > >Received: from [193.9.101.138] (CPE-60-230-176-210.vic.bigpond.net.au >> > >[60.230.176.210])by virtualmin.com (Postfix) with ESMTP id >>B776B290D86for >> > ><web...@li...>; Wed, 1 Mar 2006 21:31:37 -0600 >> > >(CST) >> > >X-Message-Info: StaYHEBmGBqKz67fr+0tKypfpTIF8uL5vJMZk0dw5F8= >> > >References: <BAY...@ph...> >> > >Organization: X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) X-Spam-Score: >>1.0 >> > >(+) >> > >X-Spam-Report: Spam Filtering performed by sourceforge.net.See >> > >http://spamassassin.org/tag/ for more details.Report problems to >> > >http://sf.net/tracker/?func=add&group_id=1&atid=2000011.0 >>FORGED_RCVD_HELO >> > > Received: contains a forged HELO >> > >Errors-To: web...@li... >> > >X-BeenThere: web...@li... >> > >X-Mailman-Version: 2.0.9-sf.net >> > >Precedence: bulk >> > >List-Unsubscribe: >> > >> ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=unsubscribe> >> > >List-Id: Webmin users list <webadmin-list.lists.sourceforge.net> >> > >List-Post: <mailto:web...@li...> >> > >List-Help: >> > ><mailto:web...@li...?subject=help> >> > >List-Subscribe: >> > >> ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=subscribe> >> > >List-Archive: >> > ><http://sourceforge.net/mailarchive/forum.php?forum=webadmin-list> >> > >X-Original-Date: 02 Mar 2006 15:13:41 +1100 >> > >Return-Path: web...@li... >> > >X-OriginalArrivalTime: 02 Mar 2006 04:15:02.0260 (UTC) >> > >FILETIME=[E08DD340:01C63DAF] >> > > >> > >On Thu, 2006-03-02 at 14:13, Dave . wrote: >> > > > I have a shell script run from the custom commands module. It runs >> > > > successfully in a shell as well as in the custom commands module >>when >> > >the >> > > > "Use User's Environment is UNCHECKED. However, when I check the >>"Use >> > >User's >> > > > Environment" no echo commands are displayed in the ouput for the >> > >command. >> > > > The user is using a valid shell located at /bin/bash defined by the >> > >shell >> > > > script. >> > > > Any Help appreciated. >> > > >> > >What happens if you login via SSH as root, and run a command like? : >> > > >> > >su - USERNAME -s /bin/sh -c "echo foo" >> > > >> > >That is the command Webmin uses when the 'Use user's environment' >>option >> > >is selected. >> > > >> > > - Jamie >> > > >> > > >> > > >> > >------------------------------------------------------- >> > >This SF.Net email is sponsored by xPML, a groundbreaking scripting >>language >> > >that extends applications into web and mobile media. Attend the live >> > >webcast >> > >and join the prime developer group breaking into this new coding >>territory! >> > >> >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >> > >- >> > >Forwarded by the Webmin mailing list at >>web...@li... >> > >To remove yourself from this list, go to >> > >http://lists.sourceforge.net/lists/listinfo/webadmin-list >> > >> > >> > >> > >> > ------------------------------------------------------- >> > This SF.Net email is sponsored by xPML, a groundbreaking scripting >>language >> > that extends applications into web and mobile media. Attend the live >>webcast >> > and join the prime developer group breaking into this new coding >>territory! >> > >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >> > - >> > Forwarded by the Webmin mailing list at >>web...@li... >> > To remove yourself from this list, go to >> > http://lists.sourceforge.net/lists/listinfo/webadmin-list >> > >> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by xPML, a groundbreaking scripting >>language >>that extends applications into web and mobile media. Attend the live >>webcast >>and join the prime developer group breaking into this new coding >>territory! >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >>- >>Forwarded by the Webmin mailing list at >>web...@li... >>To remove yourself from this list, go to >>http://lists.sourceforge.net/lists/listinfo/webadmin-list > > > > >------------------------------------------------------- >This SF.Net email is sponsored by xPML, a groundbreaking scripting language >that extends applications into web and mobile media. Attend the live >webcast >and join the prime developer group breaking into this new coding territory! >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >- >Forwarded by the Webmin mailing list at web...@li... >To remove yourself from this list, go to >http://lists.sourceforge.net/lists/listinfo/webadmin-list |
|
From: Dave . <dav...@ho...> - 2006-03-02 04:25:44
|
The shell script works except for the echo command. When the command is run from custom commands module, it just says command ouput from....comandhere ---then nothing. even though In my expierence the echo commands are displayed. >From: Jamie Cameron <jca...@we...> >Reply-To: web...@li... >To: web...@li... >Subject: Re: [webmin-l] (no subject) >Date: 02 Mar 2006 15:22:31 +1100 >MIME-Version: 1.0 >Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by >bay0-mc5-f17.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 1 >Mar 2006 20:24:06 -0800 >Received: from sc8-sf-list1-b.sourceforge.net >(sc8-sf-list1-b.sourceforge.net [10.3.1.7])by sc8-sf-spam2.sourceforge.net >(Postfix) with ESMTPid 0B36712F8D; Wed, 1 Mar 2006 20:24:06 -0800 (PST) >Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] >helo=mail.sourceforge.net)by sc8-sf-list1.sourceforge.net with esmtp (Exim >4.30)id 1FEfLC-0006f6-1hfor web...@li...; Wed, 01 >Mar 2006 20:23:02 -0800 >Received: from [70.86.4.226] (helo=virtualmin.com)by mail.sourceforge.net >with esmtp (Exim 4.44)id 1FEfLB-0006j4-Axfor >web...@li...; Wed, 01 Mar 2006 20:23:01 -0800 >Received: from [193.9.101.138] (CPE-60-230-176-210.vic.bigpond.net.au >[60.230.176.210])by virtualmin.com (Postfix) with ESMTP id 35B91290D86for ><web...@li...>; Wed, 1 Mar 2006 21:40:27 -0600 >(CST) >X-Message-Info: StaYHEBmGBoZSf8qHByhBqPPULjjyGY8XWrcM9Nv8uM= >References: <BAY...@ph...> >Organization: X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) X-Spam-Score: 1.0 >(+) >X-Spam-Report: Spam Filtering performed by sourceforge.net.See >http://spamassassin.org/tag/ for more details.Report problems to >http://sf.net/tracker/?func=add&group_id=1&atid=2000011.0 FORGED_RCVD_HELO > Received: contains a forged HELO >Errors-To: web...@li... >X-BeenThere: web...@li... >X-Mailman-Version: 2.0.9-sf.net >Precedence: bulk >List-Unsubscribe: ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=unsubscribe> >List-Id: Webmin users list <webadmin-list.lists.sourceforge.net> >List-Post: <mailto:web...@li...> >List-Help: ><mailto:web...@li...?subject=help> >List-Subscribe: ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=subscribe> >List-Archive: ><http://sourceforge.net/mailarchive/forum.php?forum=webadmin-list> >X-Original-Date: 02 Mar 2006 15:22:31 +1100 >Return-Path: web...@li... >X-OriginalArrivalTime: 02 Mar 2006 04:24:06.0730 (UTC) >FILETIME=[25155AA0:01C63DB1] > >Ok .. how about if you try it with the actual command you were trying to >run from Webmin (assuming that this wasn't just an echo command too) ? > > - Jamie > >On Thu, 2006-03-02 at 15:16, Dave . wrote: > > output from the su and echo command is: > > > > [root@localhost ~]# su - kimball -s /bin/sh -c "echo foo" > > foo > > > > > > >From: Jamie Cameron <jca...@we...> > > >Reply-To: web...@li... > > >To: web...@li... > > >Subject: Re: [webmin-l] (no subject) > > >Date: 02 Mar 2006 15:13:41 +1100 > > >MIME-Version: 1.0 > > >Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by > > >bay0-mc10-f11.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); >Wed, 1 > > >Mar 2006 20:15:02 -0800 > > >Received: from sc8-sf-list1-b.sourceforge.net > > >(sc8-sf-list1-b.sourceforge.net [10.3.1.7])by >sc8-sf-spam2.sourceforge.net > > >(Postfix) with ESMTPid 0A9B712142; Wed, 1 Mar 2006 20:15:01 -0800 >(PST) > > >Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] > > >helo=mail.sourceforge.net)by sc8-sf-list1.sourceforge.net with esmtp >(Exim > > >4.30)id 1FEfCg-0005r2-EPfor web...@li...; Wed, >01 > > >Mar 2006 20:14:14 -0800 > > >Received: from [70.86.4.226] (helo=virtualmin.com)by >mail.sourceforge.net > > >with esmtp (Exim 4.44)id 1FEfCf-0003ac-20for > > >web...@li...; Wed, 01 Mar 2006 20:14:14 -0800 > > >Received: from [193.9.101.138] (CPE-60-230-176-210.vic.bigpond.net.au > > >[60.230.176.210])by virtualmin.com (Postfix) with ESMTP id >B776B290D86for > > ><web...@li...>; Wed, 1 Mar 2006 21:31:37 -0600 > > >(CST) > > >X-Message-Info: StaYHEBmGBqKz67fr+0tKypfpTIF8uL5vJMZk0dw5F8= > > >References: <BAY...@ph...> > > >Organization: X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) X-Spam-Score: >1.0 > > >(+) > > >X-Spam-Report: Spam Filtering performed by sourceforge.net.See > > >http://spamassassin.org/tag/ for more details.Report problems to > > >http://sf.net/tracker/?func=add&group_id=1&atid=2000011.0 >FORGED_RCVD_HELO > > > Received: contains a forged HELO > > >Errors-To: web...@li... > > >X-BeenThere: web...@li... > > >X-Mailman-Version: 2.0.9-sf.net > > >Precedence: bulk > > >List-Unsubscribe: > > > ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=unsubscribe> > > >List-Id: Webmin users list <webadmin-list.lists.sourceforge.net> > > >List-Post: <mailto:web...@li...> > > >List-Help: > > ><mailto:web...@li...?subject=help> > > >List-Subscribe: > > > ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=subscribe> > > >List-Archive: > > ><http://sourceforge.net/mailarchive/forum.php?forum=webadmin-list> > > >X-Original-Date: 02 Mar 2006 15:13:41 +1100 > > >Return-Path: web...@li... > > >X-OriginalArrivalTime: 02 Mar 2006 04:15:02.0260 (UTC) > > >FILETIME=[E08DD340:01C63DAF] > > > > > >On Thu, 2006-03-02 at 14:13, Dave . wrote: > > > > I have a shell script run from the custom commands module. It runs > > > > successfully in a shell as well as in the custom commands module >when > > >the > > > > "Use User's Environment is UNCHECKED. However, when I check the "Use > > >User's > > > > Environment" no echo commands are displayed in the ouput for the > > >command. > > > > The user is using a valid shell located at /bin/bash defined by the > > >shell > > > > script. > > > > Any Help appreciated. > > > > > >What happens if you login via SSH as root, and run a command like? : > > > > > >su - USERNAME -s /bin/sh -c "echo foo" > > > > > >That is the command Webmin uses when the 'Use user's environment' >option > > >is selected. > > > > > > - Jamie > > > > > > > > > > > >------------------------------------------------------- > > >This SF.Net email is sponsored by xPML, a groundbreaking scripting >language > > >that extends applications into web and mobile media. Attend the live > > >webcast > > >and join the prime developer group breaking into this new coding >territory! > > > >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > >- > > >Forwarded by the Webmin mailing list at >web...@li... > > >To remove yourself from this list, go to > > >http://lists.sourceforge.net/lists/listinfo/webadmin-list > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by xPML, a groundbreaking scripting >language > > that extends applications into web and mobile media. Attend the live >webcast > > and join the prime developer group breaking into this new coding >territory! > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > - > > Forwarded by the Webmin mailing list at >web...@li... > > To remove yourself from this list, go to > > http://lists.sourceforge.net/lists/listinfo/webadmin-list > > > > > >------------------------------------------------------- >This SF.Net email is sponsored by xPML, a groundbreaking scripting language >that extends applications into web and mobile media. Attend the live >webcast >and join the prime developer group breaking into this new coding territory! >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >- >Forwarded by the Webmin mailing list at web...@li... >To remove yourself from this list, go to >http://lists.sourceforge.net/lists/listinfo/webadmin-list |
|
From: Jamie C. <jca...@we...> - 2006-03-02 04:23:02
|
Ok .. how about if you try it with the actual command you were trying to run from Webmin (assuming that this wasn't just an echo command too) ? - Jamie On Thu, 2006-03-02 at 15:16, Dave . wrote: > output from the su and echo command is: > > [root@localhost ~]# su - kimball -s /bin/sh -c "echo foo" > foo > > > >From: Jamie Cameron <jca...@we...> > >Reply-To: web...@li... > >To: web...@li... > >Subject: Re: [webmin-l] (no subject) > >Date: 02 Mar 2006 15:13:41 +1100 > >MIME-Version: 1.0 > >Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by > >bay0-mc10-f11.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 1 > >Mar 2006 20:15:02 -0800 > >Received: from sc8-sf-list1-b.sourceforge.net > >(sc8-sf-list1-b.sourceforge.net [10.3.1.7])by sc8-sf-spam2.sourceforge.net > >(Postfix) with ESMTPid 0A9B712142; Wed, 1 Mar 2006 20:15:01 -0800 (PST) > >Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] > >helo=mail.sourceforge.net)by sc8-sf-list1.sourceforge.net with esmtp (Exim > >4.30)id 1FEfCg-0005r2-EPfor web...@li...; Wed, 01 > >Mar 2006 20:14:14 -0800 > >Received: from [70.86.4.226] (helo=virtualmin.com)by mail.sourceforge.net > >with esmtp (Exim 4.44)id 1FEfCf-0003ac-20for > >web...@li...; Wed, 01 Mar 2006 20:14:14 -0800 > >Received: from [193.9.101.138] (CPE-60-230-176-210.vic.bigpond.net.au > >[60.230.176.210])by virtualmin.com (Postfix) with ESMTP id B776B290D86for > ><web...@li...>; Wed, 1 Mar 2006 21:31:37 -0600 > >(CST) > >X-Message-Info: StaYHEBmGBqKz67fr+0tKypfpTIF8uL5vJMZk0dw5F8= > >References: <BAY...@ph...> > >Organization: X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) X-Spam-Score: 1.0 > >(+) > >X-Spam-Report: Spam Filtering performed by sourceforge.net.See > >http://spamassassin.org/tag/ for more details.Report problems to > >http://sf.net/tracker/?func=add&group_id=1&atid=2000011.0 FORGED_RCVD_HELO > > Received: contains a forged HELO > >Errors-To: web...@li... > >X-BeenThere: web...@li... > >X-Mailman-Version: 2.0.9-sf.net > >Precedence: bulk > >List-Unsubscribe: > ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=unsubscribe> > >List-Id: Webmin users list <webadmin-list.lists.sourceforge.net> > >List-Post: <mailto:web...@li...> > >List-Help: > ><mailto:web...@li...?subject=help> > >List-Subscribe: > ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=subscribe> > >List-Archive: > ><http://sourceforge.net/mailarchive/forum.php?forum=webadmin-list> > >X-Original-Date: 02 Mar 2006 15:13:41 +1100 > >Return-Path: web...@li... > >X-OriginalArrivalTime: 02 Mar 2006 04:15:02.0260 (UTC) > >FILETIME=[E08DD340:01C63DAF] > > > >On Thu, 2006-03-02 at 14:13, Dave . wrote: > > > I have a shell script run from the custom commands module. It runs > > > successfully in a shell as well as in the custom commands module when > >the > > > "Use User's Environment is UNCHECKED. However, when I check the "Use > >User's > > > Environment" no echo commands are displayed in the ouput for the > >command. > > > The user is using a valid shell located at /bin/bash defined by the > >shell > > > script. > > > Any Help appreciated. > > > >What happens if you login via SSH as root, and run a command like? : > > > >su - USERNAME -s /bin/sh -c "echo foo" > > > >That is the command Webmin uses when the 'Use user's environment' option > >is selected. > > > > - Jamie > > > > > > > >------------------------------------------------------- > >This SF.Net email is sponsored by xPML, a groundbreaking scripting language > >that extends applications into web and mobile media. Attend the live > >webcast > >and join the prime developer group breaking into this new coding territory! > >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > >- > >Forwarded by the Webmin mailing list at web...@li... > >To remove yourself from this list, go to > >http://lists.sourceforge.net/lists/listinfo/webadmin-list > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > - > Forwarded by the Webmin mailing list at web...@li... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list > |
|
From: Dave . <dav...@ho...> - 2006-03-02 04:16:41
|
output from the su and echo command is: [root@localhost ~]# su - kimball -s /bin/sh -c "echo foo" foo >From: Jamie Cameron <jca...@we...> >Reply-To: web...@li... >To: web...@li... >Subject: Re: [webmin-l] (no subject) >Date: 02 Mar 2006 15:13:41 +1100 >MIME-Version: 1.0 >Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by >bay0-mc10-f11.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 1 >Mar 2006 20:15:02 -0800 >Received: from sc8-sf-list1-b.sourceforge.net >(sc8-sf-list1-b.sourceforge.net [10.3.1.7])by sc8-sf-spam2.sourceforge.net >(Postfix) with ESMTPid 0A9B712142; Wed, 1 Mar 2006 20:15:01 -0800 (PST) >Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] >helo=mail.sourceforge.net)by sc8-sf-list1.sourceforge.net with esmtp (Exim >4.30)id 1FEfCg-0005r2-EPfor web...@li...; Wed, 01 >Mar 2006 20:14:14 -0800 >Received: from [70.86.4.226] (helo=virtualmin.com)by mail.sourceforge.net >with esmtp (Exim 4.44)id 1FEfCf-0003ac-20for >web...@li...; Wed, 01 Mar 2006 20:14:14 -0800 >Received: from [193.9.101.138] (CPE-60-230-176-210.vic.bigpond.net.au >[60.230.176.210])by virtualmin.com (Postfix) with ESMTP id B776B290D86for ><web...@li...>; Wed, 1 Mar 2006 21:31:37 -0600 >(CST) >X-Message-Info: StaYHEBmGBqKz67fr+0tKypfpTIF8uL5vJMZk0dw5F8= >References: <BAY...@ph...> >Organization: X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) X-Spam-Score: 1.0 >(+) >X-Spam-Report: Spam Filtering performed by sourceforge.net.See >http://spamassassin.org/tag/ for more details.Report problems to >http://sf.net/tracker/?func=add&group_id=1&atid=2000011.0 FORGED_RCVD_HELO > Received: contains a forged HELO >Errors-To: web...@li... >X-BeenThere: web...@li... >X-Mailman-Version: 2.0.9-sf.net >Precedence: bulk >List-Unsubscribe: ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=unsubscribe> >List-Id: Webmin users list <webadmin-list.lists.sourceforge.net> >List-Post: <mailto:web...@li...> >List-Help: ><mailto:web...@li...?subject=help> >List-Subscribe: ><https://lists.sourceforge.net/lists/listinfo/webadmin-list>,<mailto:web...@li...?subject=subscribe> >List-Archive: ><http://sourceforge.net/mailarchive/forum.php?forum=webadmin-list> >X-Original-Date: 02 Mar 2006 15:13:41 +1100 >Return-Path: web...@li... >X-OriginalArrivalTime: 02 Mar 2006 04:15:02.0260 (UTC) >FILETIME=[E08DD340:01C63DAF] > >On Thu, 2006-03-02 at 14:13, Dave . wrote: > > I have a shell script run from the custom commands module. It runs > > successfully in a shell as well as in the custom commands module when >the > > "Use User's Environment is UNCHECKED. However, when I check the "Use >User's > > Environment" no echo commands are displayed in the ouput for the >command. > > The user is using a valid shell located at /bin/bash defined by the >shell > > script. > > Any Help appreciated. > >What happens if you login via SSH as root, and run a command like? : > >su - USERNAME -s /bin/sh -c "echo foo" > >That is the command Webmin uses when the 'Use user's environment' option >is selected. > > - Jamie > > > >------------------------------------------------------- >This SF.Net email is sponsored by xPML, a groundbreaking scripting language >that extends applications into web and mobile media. Attend the live >webcast >and join the prime developer group breaking into this new coding territory! >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >- >Forwarded by the Webmin mailing list at web...@li... >To remove yourself from this list, go to >http://lists.sourceforge.net/lists/listinfo/webadmin-list |
|
From: Jamie C. <jca...@we...> - 2006-03-02 04:14:15
|
On Thu, 2006-03-02 at 14:13, Dave . wrote: > I have a shell script run from the custom commands module. It runs > successfully in a shell as well as in the custom commands module when the > "Use User's Environment is UNCHECKED. However, when I check the "Use User's > Environment" no echo commands are displayed in the ouput for the command. > The user is using a valid shell located at /bin/bash defined by the shell > script. > Any Help appreciated. What happens if you login via SSH as root, and run a command like? : su - USERNAME -s /bin/sh -c "echo foo" That is the command Webmin uses when the 'Use user's environment' option is selected. - Jamie |
|
From: Dave . <dav...@ho...> - 2006-03-02 03:14:23
|
I have a shell script run from the custom commands module. It runs successfully in a shell as well as in the custom commands module when the "Use User's Environment is UNCHECKED. However, when I check the "Use User's Environment" no echo commands are displayed in the ouput for the command. The user is using a valid shell located at /bin/bash defined by the shell script. Any Help appreciated. |
|
From: <jca...@we...> - 2006-03-02 00:47:44
|
Yes, they are all in Perl - except for the Java file manager module apple= t. - Jamie -----Original Message----- From: "MWS" <we...@ro...> Subj: [webmin-l] Perl & Mins Date: Thu 2 Mar 2006 9:13 am Size: 630 bytes To: web...@li... Are all of the scripts for usermin and webmin written in perl pretty much= ? Thanks, -Mike ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting langua= ge that extends applications into web and mobile media. Attend the live webc= ast and join the prime developer group breaking into this new coding territor= y! http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=3D= 121642 - Forwarded by the Webmin mailing list at web...@li....n= et To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-list |
|
From: <jca...@we...> - 2006-03-01 23:18:39
|
Hi Galen, This is actually a bug in Webmin - it doesn't apply the secondary group p= ermissions. However, it will be fixed in the next release.. - Jamie -----Original Message----- From: Galen Johnson <gjo...@tr...> Subj: Re: [webmin-l] cron module Date: Thu 2 Mar 2006 7:33 am Size: 1K To: web...@li... Galen Johnson wrote: > Hello, > > I have a question regarding the cron module's run now option. When=20 > you select run now, what exactly does it do? Does it spawn the job as=20 > the user selected with only their primary group? I only ask because=20 > we have a job set up that writes a file to a directory that has group=20 > write privs for the users...however, this group is set up as one of=20 > the user's secondary groups. When you attempt to run the job via=20 > webmin's run now button, it fails to write the file (yet it works just=20 > fine from cron) giving a permission denied error. Now, if I change=20 > the directory's group to the user's primary group it works as=20 > expected. Am I missing a conguration option somewhere? Can the "Run=20 > Now" button be tweaked in some fashion to accommodate this if it's not=20 > currently possible? I had assumed that when webmin ran a job as=20 > another user it did the equivalent of 'su'. Is this not the case? > > Any insight would be appreciated. > > =3DG=3D > Anyone have any ideas on this one? I've noticed that some of the other=20 modules key on Primary group only and it would be helpful if webmin=20 could parse secondaries as well (I'm pretty sure there are some modules=20 that do). ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting langua= ge that extends applications into web and mobile media. Attend the live webc= ast and join the prime developer group breaking into this new coding territor= y! http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=3D= 121642 - Forwarded by the Webmin mailing list at web...@li....n= et To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-list |
|
From: <jca...@we...> - 2006-03-01 23:18:17
|
Hi Mark, The only solution is to select a different username prefix on the domain = creation form. If you choose something only a few characters long, you wo= n't run into this problem when creating mailboxes. Or you could switch to Linux, which has a much longer maximum username le= ngth :-) - Jamie -----Original Message----- From: Mark Adams <ma...@ac...> Subj: [webmin-l] Creating Mailboxes Date: Thu 2 Mar 2006 7:55 am Size: 1K To: web...@li... Hi, I'm using Webmin 1.180 on FreeBSD 5.3 I've just added a new virtual .org domain where the domain name is 13 characters long. When I try to add a user to this domain if get the following error :- Failed to save mailbox : The username yyyyy-xxxxxxxxxxxxx is longer that the maximum allowed on this system (16 characters) yyyyy being the username and xxxxxxxxxxxxx being the domain. Is there anyway around this issue? --=20 Mark Adams | Computer Systems =20 Acemake Computers | Network Support "Taming Technology" | Bespoke Programming ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting langua= ge that extends applications into web and mobile media. Attend the live webc= ast and join the prime developer group breaking into this new coding territor= y! http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=3D= 121642 - Forwarded by the Webmin mailing list at web...@li....n= et To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-list |
|
From: <jca...@we...> - 2006-03-01 23:17:51
|
Hi Mark, There is no built-in editor for the /etc/shells file, but it is just a te= xt file you can edit manually using the File Manager module. Just add a s= ingle line containing /bin/false. - Jamie -----Original Message----- From: Mark Adams <ma...@ac...> Subj: [webmin-l] FTP problems Date: Thu 2 Mar 2006 8:26 am Size: 1K To: web...@li... I have a problem with ftp, trying up upload web pages to public_html for my virtual domains. When I log in as the virtual domain owner - I seem unable to list directory contents and can never upload files. It's like I don't have the correct permissions for the directories, but it would appear I do. The only way I have been able to upload files is via the java file manager. Tonight I did a configuration check and noticed the following message Shell /bin/false for FTP users is not included in /etc/shells, which may = prevent FTP access. This looks like it might indicate a cause of the problem. How do I correct this from inside of Webmin. --=20 Mark Adams | Computer Systems =20 Acemake Computers | Network Support "Taming Technology" | Bespoke Programming ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting langua= ge that extends applications into web and mobile media. Attend the live webc= ast and join the prime developer group breaking into this new coding territor= y! http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=3D= 121642 - Forwarded by the Webmin mailing list at web...@li....n= et To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-list |
|
From: <da...@so...> - 2006-03-01 23:05:10
|
just edit the /etc/shells file in the file viewer and add the line /bin/false From: Mark Adams <ma...@ac...> Organization: Acemake Ltd To: web...@li... Subject: [webmin-l] FTP problems Send reply to: web...@li... Date sent: Wed, 1 Mar 2006 22:08:50 +0000 [ Double-click this line for list subscription options ] I have a problem with ftp, trying up upload web pages to public_html for my virtual domains. When I log in as the virtual domain owner - I seem unable to list directory contents and can never upload files. It's like I don't have the correct permissions for the directories, but it would appear I do. The only way I have been able to upload files is via the java file manager. Tonight I did a configuration check and noticed the following message Shell /bin/false for FTP users is not included in /etc/shells, which may prevent FTP access. This looks like it might indicate a cause of the problem. How do I correct this from inside of Webmin. -- Mark Adams | Computer Systems Acemake Computers | Network Support "Taming Technology" | Bespoke Programming ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as- us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 - Forwarded by the Webmin mailing list at webadmin- li...@li... To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-list |
|
From: MWS <we...@ro...> - 2006-03-01 22:55:18
|
Are all of the scripts for usermin and webmin written in perl pretty much? Thanks, -Mike |
|
From: <jca...@we...> - 2006-03-01 22:15:06
|
Unfortunately, no. Webmin passwords are stored in /etc/webmin/miniserv.us= ers in a one-way encrypted format that can be checked but not decrypted. - Jamie -----Original Message----- From: "MWS" <we...@ro...> Subj: [webmin-l] Passwords Date: Thu 2 Mar 2006 6:55 am Size: 671 bytes To: web...@li... Is there any way to retrieve a password from webmin or usermin? Like ext= racting them from where they are stored or something? -MR ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting langua= ge that extends applications into web and mobile media. Attend the live webc= ast and join the prime developer group breaking into this new coding territor= y! http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=3D= 121642 - Forwarded by the Webmin mailing list at web...@li....n= et To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-list |
|
From: Mark A. <ma...@ac...> - 2006-03-01 22:08:59
|
I have a problem with ftp, trying up upload web pages to public_html for my virtual domains. When I log in as the virtual domain owner - I seem unable to list directory contents and can never upload files. It's like I don't have the correct permissions for the directories, but it would appear I do. The only way I have been able to upload files is via the java file manager. Tonight I did a configuration check and noticed the following message Shell /bin/false for FTP users is not included in /etc/shells, which may prevent FTP access. This looks like it might indicate a cause of the problem. How do I correct this from inside of Webmin. -- Mark Adams | Computer Systems Acemake Computers | Network Support "Taming Technology" | Bespoke Programming |
|
From: RYAN M. v. G. <lu...@co...> - 2006-03-01 21:41:25
|
Hello i have recently installed webmin/virtual min on my Freebsd 4.11 system and it seems to have broken apache2. However apache has been running so well for so long i have not had to look at it so this could be unrelated to the forementioned webmin install. This is my problem i get the error below however as u can see i have both of the files that apache cannot find. I am very confused and need some guidance please help. tokyo.computerking.ca > /usr/local/etc/apache2 #apachectl stop /usr/libexec/ld-elf.so.1: Shared object "libexpat.so.5" not found, required by "httpd" [Wed Mar 01] 01:19 PM [0] tokyo.computerking.ca > /usr/local/etc/apache2 #locate ld-elf.so.1 /usr/libexec/ld-elf.so.1 /usr/libexec/ld-elf.so.1.old /usr/local/share/mindi/rootfs/usr/libexec/ld-elf.so.1 /usr/obj/usr/src/libexec/rtld-elf/ld-elf.so.1 /usr/share/man/man1/ld-elf.so.1.1.gz [Wed Mar 01] 01:20 PM [0] tokyo.computerking.ca > /usr/local/etc/apache2 #locate libexpat.so.5 /usr/local/lib/libexpat.so.5 -- Computer King/CaNMail http://www.computerking.ca http://www.canmail.org Sales, Service, and Hosting Email, Data, and Web Packages Ask about web design specials Affiliates http://www.computerking.ca/pages/links/affiliates/affiliates.htm Maybe Computer Science should be in the College of Theology. -- R. S. Barton |
|
From: RYAN M. v. G. <lu...@co...> - 2006-03-01 21:38:29
|
----- Original Message ----- From: Jamie Cameron <jca...@we...> To: web...@li... Sent: Wednesday, March 1, 2006 3:50:06 AM GMT-0700 Subject: Re: [webmin-l] proftp error Which version of Virtualmin are you using there? Virtualmin-2.610 I am surprised to see this unless the proftpd configuration is Virtualmin was changed.. I think it was i messed with virtualmin setting quite abit think i broke somethings please refer to my next post. By the way, that feature is NOT needed if you just want to allow domain owners to login via FTP. It is only for setting up virtual anonymous FTP servers, which are rarely used.. Ok i will not worry to much about it - Jamie On Wed, 2006-03-01 at 11:27, RYAN M. vAN GINNEKEN wrote: > I get the error below when i try to activate the proftpd option for new virtual admin users. Looked around everywhere and could not find anything about a User for proftp. > > an error was found in the ProFTPd configuration template : Missing User directive > > .. your system is not ready for use by Virtualmin. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 - Forwarded by the Webmin mailing list at web...@li... To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-list -- Computer King/CaNMail http://www.computerking.ca http://www.canmail.org Sales, Service, and Hosting Email, Data, and Web Packages Ask about web design specials Affiliates http://www.computerking.ca/pages/links/affiliates/affiliates.htm Maybe Computer Science should be in the College of Theology. -- R. S. Barton |
|
From: Mark A. <ma...@ac...> - 2006-03-01 21:37:38
|
Hi, I'm using Webmin 1.180 on FreeBSD 5.3 I've just added a new virtual .org domain where the domain name is 13 characters long. When I try to add a user to this domain if get the following error :- Failed to save mailbox : The username yyyyy-xxxxxxxxxxxxx is longer that the maximum allowed on this system (16 characters) yyyyy being the username and xxxxxxxxxxxxx being the domain. Is there anyway around this issue? -- Mark Adams | Computer Systems Acemake Computers | Network Support "Taming Technology" | Bespoke Programming |
|
From: Galen J. <gjo...@tr...> - 2006-03-01 21:06:38
|
Galen Johnson wrote: > Hello, > > I have a question regarding the cron module's run now option. When > you select run now, what exactly does it do? Does it spawn the job as > the user selected with only their primary group? I only ask because > we have a job set up that writes a file to a directory that has group > write privs for the users...however, this group is set up as one of > the user's secondary groups. When you attempt to run the job via > webmin's run now button, it fails to write the file (yet it works just > fine from cron) giving a permission denied error. Now, if I change > the directory's group to the user's primary group it works as > expected. Am I missing a conguration option somewhere? Can the "Run > Now" button be tweaked in some fashion to accommodate this if it's not > currently possible? I had assumed that when webmin ran a job as > another user it did the equivalent of 'su'. Is this not the case? > > Any insight would be appreciated. > > =G= > Anyone have any ideas on this one? I've noticed that some of the other modules key on Primary group only and it would be helpful if webmin could parse secondaries as well (I'm pretty sure there are some modules that do). |
|
From: MWS <we...@ro...> - 2006-03-01 20:14:04
|
Is there any way to retrieve a password from webmin or usermin? Like extracting them from where they are stored or something? -MR |
|
From: Jamie C. <jca...@we...> - 2006-03-01 10:51:06
|
Which version of Virtualmin are you using there? I am surprised to see this unless the proftpd configuration is Virtualmin was changed.. By the way, that feature is NOT needed if you just want to allow domain owners to login via FTP. It is only for setting up virtual anonymous FTP servers, which are rarely used.. - Jamie On Wed, 2006-03-01 at 11:27, RYAN M. vAN GINNEKEN wrote: > I get the error below when i try to activate the proftpd option for new virtual admin users. Looked around everywhere and could not find anything about a User for proftp. > > an error was found in the ProFTPd configuration template : Missing User directive > > .. your system is not ready for use by Virtualmin. |
|
From: <jca...@we...> - 2006-03-01 10:49:05
|
Hi, Unfortunately it isn't possible to do that yet ... but that is a good ide= a for a future release, as the information is available to Virtualmin. - Jamie -----Original Message----- From: "Unknown Questions" <web...@un...> Subj: [webmin-l] Last month's bandwith Date: Wed 1 Mar 2006 8:20 pm Size: 852 bytes To: <web...@li...> Hi can you please tell me if it's possible to run https://IPnumber:10000/virtual-server/bwgraph.cgi? for previous months nobody told me that Feb 29th was cancelled so i didn't grab the data=20 yesterday :-) how can i set-up a cron job to do a bandwidth report on the last day of=20 every month Regards Martyn=20 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting langua= ge that extends applications into web and mobile media. Attend the live webc= ast and join the prime developer group breaking into this new coding territor= y! http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=3D= 121642 - Forwarded by the Webmin mailing list at web...@li....n= et To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-list |