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: 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 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...l> >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: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...l> > >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: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...l> >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...l> > > >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: 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...l> >>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...l> >> > >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: 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...l> > >>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...l> > >> > >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: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...l> >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...l> > > >>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...l> > > >> > >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: 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...l> >> 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...l> >> > >>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...l> >> > >> > >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: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...l> >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...l> >>>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...l> >>> > >>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...l> >>> > >> > >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 05:07:41
|
Well, I am just jumping in here...I don;t know exactly which systems have SELinux - mine are FCx systems - If you have it, then you will get some output for this command: # cd wherever your script is) #ls -aZ . (not the "." in the last command). Do you get any output? how about for "#ls -Z [path to ]/echo" ? Maybe there is a mismatch there. there also might be a mismatch between the SELinux privileges and some script that webmin runs, or however the shell that webmin spawns is running. Could be a little tricky, but this could be a start to identifying the issue if you have SELinux. It is almost bedtime here so I don't know how much more time I can give you tonight. But if there is a mismatch in privileges, then the fix is gong to involve the "chcon" command, which works similarly to "chmod". Best, Barry Dave . wrote: > > 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...l> >> 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...l> >>>> 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...l> >>>> > >>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...l> >>>> > >> > >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 > > > > > ------------------------------------------------------- > 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 05:15:08
|
Yes, I am running Fedora Core 4 and the command ls -Z /bin/testecho (my script) returned the following: -rwxr-xr-x root root unlabeled /bin/testecho >From: Barry <we...@i1...> >Reply-To: web...@li... >To: web...@li... >Subject: Re: [webmin-l] (no subject) >Date: Wed, 01 Mar 2006 21:07:12 -0800 >MIME-Version: 1.0 >Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by >bay0-mc5-f4.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 1 >Mar 2006 21:10:05 -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 585E888611; Wed, 1 Mar 2006 21:08: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 1FEg2O-0002mh-SLfor web...@li...; Wed, 01 >Mar 2006 21:07:40 -0800 >Received: from mout.perfora.net ([217.160.230.41])by mail.sourceforge.net >with esmtp (Exim 4.44)id 1FEg2L-0002nS-Jdfor >web...@li...; Wed, 01 Mar 2006 21:07:40 -0800 >Received: from [69.236.170.197] (helo=[192.168.3.4])by mrelay.perfora.net >(node=mrelayus1) with ESMTP (Nemesis),id 0MKp2t-1FEg2H39eT-0002Io; Thu, 02 >Mar 2006 00:07:36 -0500 >X-Message-Info: StaYHEBmGBoFMycYIyiVTiOCTeGeZOl08tS8XJ43LPc= >User-Agent: Thunderbird 1.5 (Windows/20051201) >References: <BAY...@ph...l> >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 21:07:12 -0800 >Return-Path: web...@li... >X-OriginalArrivalTime: 02 Mar 2006 05:10:05.0304 (UTC) >FILETIME=[91525780:01C63DB7] > >Well, I am just jumping in here...I don;t know exactly which systems have >SELinux - mine are FCx systems - > >If you have it, then you will get some output for this command: > ># cd wherever your script is) >#ls -aZ . > >(not the "." in the last command). > >Do you get any output? > >how about for "#ls -Z [path to ]/echo" ? > >Maybe there is a mismatch there. there also might be a mismatch between the >SELinux privileges and some script that webmin runs, or however the shell >that webmin spawns is running. Could be a little tricky, but this could be >a start to identifying the issue if you have SELinux. It is almost bedtime >here so I don't know how much more time I can give you tonight. > >But if there is a mismatch in privileges, then the fix is gong to involve >the "chcon" command, which works similarly to "chmod". > >Best, > >Barry >Dave . wrote: >> >>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...l> >>>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...l> >>>>>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...l> >>>>> > >>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...l> >>>>> > >> > >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 >> >> >> >> >>------------------------------------------------------- >>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 05:31:43
|
Guess what - I just tested this on my own system, and a custom command set to use the user's environment didn't work either!! Further investigation revealed that is is a bug in Webmin 1.260. It will be fixed in the next release though. - Jamie On Thu, 2006-03-02 at 16:15, Dave . wrote: > Yes, I am running Fedora Core 4 and the command ls -Z /bin/testecho (my > script) returned the following: > > -rwxr-xr-x root root unlabeled /bin/testecho > > >From: Barry <we...@i1...> > >Reply-To: web...@li... > >To: web...@li... > >Subject: Re: [webmin-l] (no subject) > >Date: Wed, 01 Mar 2006 21:07:12 -0800 > >MIME-Version: 1.0 > >Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by > >bay0-mc5-f4.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 1 > >Mar 2006 21:10:05 -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 585E888611; Wed, 1 Mar 2006 21:08: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 1FEg2O-0002mh-SLfor web...@li...; Wed, 01 > >Mar 2006 21:07:40 -0800 > >Received: from mout.perfora.net ([217.160.230.41])by mail.sourceforge.net > >with esmtp (Exim 4.44)id 1FEg2L-0002nS-Jdfor > >web...@li...; Wed, 01 Mar 2006 21:07:40 -0800 > >Received: from [69.236.170.197] (helo=[192.168.3.4])by mrelay.perfora.net > >(node=mrelayus1) with ESMTP (Nemesis),id 0MKp2t-1FEg2H39eT-0002Io; Thu, 02 > >Mar 2006 00:07:36 -0500 > >X-Message-Info: StaYHEBmGBoFMycYIyiVTiOCTeGeZOl08tS8XJ43LPc= > >User-Agent: Thunderbird 1.5 (Windows/20051201) > >References: <BAY...@ph...l> > >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 21:07:12 -0800 > >Return-Path: web...@li... > >X-OriginalArrivalTime: 02 Mar 2006 05:10:05.0304 (UTC) > >FILETIME=[91525780:01C63DB7] > > > >Well, I am just jumping in here...I don;t know exactly which systems have > >SELinux - mine are FCx systems - > > > >If you have it, then you will get some output for this command: > > > ># cd wherever your script is) > >#ls -aZ . > > > >(not the "." in the last command). > > > >Do you get any output? > > > >how about for "#ls -Z [path to ]/echo" ? > > > >Maybe there is a mismatch there. there also might be a mismatch between the > >SELinux privileges and some script that webmin runs, or however the shell > >that webmin spawns is running. Could be a little tricky, but this could be > >a start to identifying the issue if you have SELinux. It is almost bedtime > >here so I don't know how much more time I can give you tonight. > > > >But if there is a mismatch in privileges, then the fix is gong to involve > >the "chcon" command, which works similarly to "chmod". > > > >Best, > > > >Barry > >Dave . wrote: > >> > >>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...l> > >>>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...l> > >>>>>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...l> > >>>>> > >>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...l> > >>>>> > >> > >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 > >> > >> > >> > >> > >>------------------------------------------------------- > >>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 05:33:33
|
This is great to hear. When do you think that release will be? And is there a place I can donate to the project? >From: Jamie Cameron <jca...@we...> >Reply-To: web...@li... >To: web...@li... >Subject: Re: [webmin-l] (no subject) >Date: 02 Mar 2006 16:31:07 +1100 >MIME-Version: 1.0 >Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by >bay0-mc11-f3.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 1 >Mar 2006 21:32:03 -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 2E2FF1399A; Wed, 1 Mar 2006 21:32: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 1FEgPe-0004wc-SDfor web...@li...; Wed, 01 >Mar 2006 21:31:42 -0800 >Received: from [70.86.4.226] (helo=virtualmin.com)by mail.sourceforge.net >with esmtp (Exim 4.44)id 1FEgPd-0000cH-Kufor >web...@li...; Wed, 01 Mar 2006 21:31:42 -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 C2DFE290D83for ><web...@li...>; Wed, 1 Mar 2006 22:49:03 -0600 >(CST) >X-Message-Info: StaYHEBmGBqLiwkE23uEJguJ+ZLRxwrprm0CNjs31hM= >References: <BAY...@ph...l> >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 16:31:07 +1100 >Return-Path: web...@li... >X-OriginalArrivalTime: 02 Mar 2006 05:32:03.0705 (UTC) >FILETIME=[A3265E90:01C63DBA] > >Guess what - I just tested this on my own system, and a custom command >set to use the user's environment didn't work either!! Further >investigation revealed that is is a bug in Webmin 1.260. It will be >fixed in the next release though. > > - Jamie > >On Thu, 2006-03-02 at 16:15, Dave . wrote: > > Yes, I am running Fedora Core 4 and the command ls -Z /bin/testecho (my > > script) returned the following: > > > > -rwxr-xr-x root root unlabeled >/bin/testecho > > > > >From: Barry <we...@i1...> > > >Reply-To: web...@li... > > >To: web...@li... > > >Subject: Re: [webmin-l] (no subject) > > >Date: Wed, 01 Mar 2006 21:07:12 -0800 > > >MIME-Version: 1.0 > > >Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by > > >bay0-mc5-f4.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Wed, >1 > > >Mar 2006 21:10:05 -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 585E888611; Wed, 1 Mar 2006 21:08: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 1FEg2O-0002mh-SLfor web...@li...; Wed, >01 > > >Mar 2006 21:07:40 -0800 > > >Received: from mout.perfora.net ([217.160.230.41])by >mail.sourceforge.net > > >with esmtp (Exim 4.44)id 1FEg2L-0002nS-Jdfor > > >web...@li...; Wed, 01 Mar 2006 21:07:40 -0800 > > >Received: from [69.236.170.197] (helo=[192.168.3.4])by >mrelay.perfora.net > > >(node=mrelayus1) with ESMTP (Nemesis),id 0MKp2t-1FEg2H39eT-0002Io; Thu, >02 > > >Mar 2006 00:07:36 -0500 > > >X-Message-Info: StaYHEBmGBoFMycYIyiVTiOCTeGeZOl08tS8XJ43LPc= > > >User-Agent: Thunderbird 1.5 (Windows/20051201) > > >References: <BAY...@ph...l> > > >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 21:07:12 -0800 > > >Return-Path: web...@li... > > >X-OriginalArrivalTime: 02 Mar 2006 05:10:05.0304 (UTC) > > >FILETIME=[91525780:01C63DB7] > > > > > >Well, I am just jumping in here...I don;t know exactly which systems >have > > >SELinux - mine are FCx systems - > > > > > >If you have it, then you will get some output for this command: > > > > > ># cd wherever your script is) > > >#ls -aZ . > > > > > >(not the "." in the last command). > > > > > >Do you get any output? > > > > > >how about for "#ls -Z [path to ]/echo" ? > > > > > >Maybe there is a mismatch there. there also might be a mismatch between >the > > >SELinux privileges and some script that webmin runs, or however the >shell > > >that webmin spawns is running. Could be a little tricky, but this could >be > > >a start to identifying the issue if you have SELinux. It is almost >bedtime > > >here so I don't know how much more time I can give you tonight. > > > > > >But if there is a mismatch in privileges, then the fix is gong to >involve > > >the "chcon" command, which works similarly to "chmod". > > > > > >Best, > > > > > >Barry > > >Dave . wrote: > > >> > > >>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...l> > > >>>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...l> > > >>>>>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...l> > > >>>>> > >>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...l> > > >>>>> > >> > >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 > > >> > > >> > > >> > > >> > > >>------------------------------------------------------- > > >>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 10:53:18
|
On Thu, 2006-03-02 at 16:33, Dave . wrote: > This is great to hear. When do you think that release will be? It will be at least a couple of weeks. > And is there > a place I can donate to the project? I always welcome donations via Paypal at jca...@we... :) - Jamie > >From: Jamie Cameron <jca...@we...> > >Reply-To: web...@li... > >To: web...@li... > >Subject: Re: [webmin-l] (no subject) > >Date: 02 Mar 2006 16:31:07 +1100 > >MIME-Version: 1.0 > >Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by > >bay0-mc11-f3.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 1 > >Mar 2006 21:32:03 -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 2E2FF1399A; Wed, 1 Mar 2006 21:32: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 1FEgPe-0004wc-SDfor web...@li...; Wed, 01 > >Mar 2006 21:31:42 -0800 > >Received: from [70.86.4.226] (helo=virtualmin.com)by mail.sourceforge.net > >with esmtp (Exim 4.44)id 1FEgPd-0000cH-Kufor > >web...@li...; Wed, 01 Mar 2006 21:31:42 -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 C2DFE290D83for > ><web...@li...>; Wed, 1 Mar 2006 22:49:03 -0600 > >(CST) > >X-Message-Info: StaYHEBmGBqLiwkE23uEJguJ+ZLRxwrprm0CNjs31hM= > >References: <BAY...@ph...l> > >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 16:31:07 +1100 > >Return-Path: web...@li... > >X-OriginalArrivalTime: 02 Mar 2006 05:32:03.0705 (UTC) > >FILETIME=[A3265E90:01C63DBA] > > > >Guess what - I just tested this on my own system, and a custom command > >set to use the user's environment didn't work either!! Further > >investigation revealed that is is a bug in Webmin 1.260. It will be > >fixed in the next release though. > > > > - Jamie > > > >On Thu, 2006-03-02 at 16:15, Dave . wrote: > > > Yes, I am running Fedora Core 4 and the command ls -Z /bin/testecho (my > > > script) returned the following: > > > > > > -rwxr-xr-x root root unlabeled > >/bin/testecho > > > > > > >From: Barry <we...@i1...> > > > >Reply-To: web...@li... > > > >To: web...@li... > > > >Subject: Re: [webmin-l] (no subject) > > > >Date: Wed, 01 Mar 2006 21:07:12 -0800 > > > >MIME-Version: 1.0 > > > >Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by > > > >bay0-mc5-f4.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Wed, > >1 > > > >Mar 2006 21:10:05 -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 585E888611; Wed, 1 Mar 2006 21:08: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 1FEg2O-0002mh-SLfor web...@li...; Wed, > >01 > > > >Mar 2006 21:07:40 -0800 > > > >Received: from mout.perfora.net ([217.160.230.41])by > >mail.sourceforge.net > > > >with esmtp (Exim 4.44)id 1FEg2L-0002nS-Jdfor > > > >web...@li...; Wed, 01 Mar 2006 21:07:40 -0800 > > > >Received: from [69.236.170.197] (helo=[192.168.3.4])by > >mrelay.perfora.net > > > >(node=mrelayus1) with ESMTP (Nemesis),id 0MKp2t-1FEg2H39eT-0002Io; Thu, > >02 > > > >Mar 2006 00:07:36 -0500 > > > >X-Message-Info: StaYHEBmGBoFMycYIyiVTiOCTeGeZOl08tS8XJ43LPc= > > > >User-Agent: Thunderbird 1.5 (Windows/20051201) > > > >References: <BAY...@ph...l> > > > >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 21:07:12 -0800 > > > >Return-Path: web...@li... > > > >X-OriginalArrivalTime: 02 Mar 2006 05:10:05.0304 (UTC) > > > >FILETIME=[91525780:01C63DB7] > > > > > > > >Well, I am just jumping in here...I don;t know exactly which systems > >have > > > >SELinux - mine are FCx systems - > > > > > > > >If you have it, then you will get some output for this command: > > > > > > > ># cd wherever your script is) > > > >#ls -aZ . > > > > > > > >(not the "." in the last command). > > > > > > > >Do you get any output? > > > > > > > >how about for "#ls -Z [path to ]/echo" ? > > > > > > > >Maybe there is a mismatch there. there also might be a mismatch between > >the > > > >SELinux privileges and some script that webmin runs, or however the > >shell > > > >that webmin spawns is running. Could be a little tricky, but this could > >be > > > >a start to identifying the issue if you have SELinux. It is almost > >bedtime > > > >here so I don't know how much more time I can give you tonight. > > > > > > > >But if there is a mismatch in privileges, then the fix is gong to > >involve > > > >the "chcon" command, which works similarly to "chmod". > > > > > > > >Best, > > > > > > > >Barry > > > >Dave . wrote: > > > >> > > > >>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...l> > > > >>>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...l> > > > >>>>>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...l> > > > >>>>> > >>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...l> > > > >>>>> > >> > >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 > > > >> > > > >> > > > >> > > > >> > > > >>------------------------------------------------------- > > > >>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 C. <bc...@i1...> - 2006-03-02 05:59:52
|
Well, looks like Jamie identified the real bug, but for the record about SE LInux, I think the unlabeled part indicates that SELinux is not running, otherwise you would see a 3 part permission there... Best, Barry Dave . wrote: > > Yes, I am running Fedora Core 4 and the command ls -Z /bin/testecho > (my script) returned the following: > > -rwxr-xr-x root root unlabeled > /bin/testecho > >> From: Barry <we...@i1...> >> Reply-To: web...@li... >> To: web...@li... >> Subject: Re: [webmin-l] (no subject) >> Date: Wed, 01 Mar 2006 21:07:12 -0800 >> MIME-Version: 1.0 >> Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by >> bay0-mc5-f4.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); >> Wed, 1 Mar 2006 21:10:05 -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 585E888611; Wed, >> 1 Mar 2006 21:08: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 1FEg2O-0002mh-SLfor >> web...@li...; Wed, 01 Mar 2006 21:07:40 -0800 >> Received: from mout.perfora.net ([217.160.230.41])by >> mail.sourceforge.net with esmtp (Exim 4.44)id 1FEg2L-0002nS-Jdfor >> web...@li...; Wed, 01 Mar 2006 21:07:40 -0800 >> Received: from [69.236.170.197] (helo=[192.168.3.4])by >> mrelay.perfora.net (node=mrelayus1) with ESMTP (Nemesis),id >> 0MKp2t-1FEg2H39eT-0002Io; Thu, 02 Mar 2006 00:07:36 -0500 >> X-Message-Info: StaYHEBmGBoFMycYIyiVTiOCTeGeZOl08tS8XJ43LPc= >> User-Agent: Thunderbird 1.5 (Windows/20051201) >> References: <BAY...@ph...l> >> 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 21:07:12 -0800 >> Return-Path: web...@li... >> X-OriginalArrivalTime: 02 Mar 2006 05:10:05.0304 (UTC) >> FILETIME=[91525780:01C63DB7] >> >> Well, I am just jumping in here...I don;t know exactly which systems >> have SELinux - mine are FCx systems - >> >> If you have it, then you will get some output for this command: >> >> # cd wherever your script is) >> #ls -aZ . >> >> (not the "." in the last command). >> >> Do you get any output? >> >> how about for "#ls -Z [path to ]/echo" ? >> >> Maybe there is a mismatch there. there also might be a mismatch >> between the SELinux privileges and some script that webmin runs, or >> however the shell that webmin spawns is running. Could be a little >> tricky, but this could be a start to identifying the issue if you >> have SELinux. It is almost bedtime here so I don't know how much more >> time I can give you tonight. >> >> But if there is a mismatch in privileges, then the fix is gong to >> involve the "chcon" command, which works similarly to "chmod". >> >> Best, >> >> Barry >> Dave . wrote: >>> >>> 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...l> >>>> 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...l> >>>>>> 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...l> >>>>>> > >>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...l> >>>>>> > >> > >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 >>> >>> >>> >>> >>> ------------------------------------------------------- >>> 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 16:33:22
|
BTW, now that it is morning I would like to add that SELinux is an important security component, and that anything I said last night, no one should take as authoritative - it was merely speculative, trying to identify the cause of an issue. Please don't trust your security to anything I said in this thread :) Best, Barry Barry Caplan wrote: > Well, looks like Jamie identified the real bug, but for the record > about SE LInux, I think the unlabeled part indicates that SELinux is > not running, otherwise you would see a 3 part permission there... > > Best, > > Barry > > Dave . wrote: >> >> Yes, I am running Fedora Core 4 and the command ls -Z /bin/testecho >> (my script) returned the following: >> >> -rwxr-xr-x root root unlabeled >> /bin/testecho >> >>> From: Barry <we...@i1...> >>> Reply-To: web...@li... >>> To: web...@li... >>> Subject: Re: [webmin-l] (no subject) >>> Date: Wed, 01 Mar 2006 21:07:12 -0800 >>> MIME-Version: 1.0 >>> Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by >>> bay0-mc5-f4.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); >>> Wed, 1 Mar 2006 21:10:05 -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 585E888611; >>> Wed, 1 Mar 2006 21:08: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 1FEg2O-0002mh-SLfor >>> web...@li...; Wed, 01 Mar 2006 21:07:40 -0800 >>> Received: from mout.perfora.net ([217.160.230.41])by >>> mail.sourceforge.net with esmtp (Exim 4.44)id 1FEg2L-0002nS-Jdfor >>> web...@li...; Wed, 01 Mar 2006 21:07:40 -0800 >>> Received: from [69.236.170.197] (helo=[192.168.3.4])by >>> mrelay.perfora.net (node=mrelayus1) with ESMTP (Nemesis),id >>> 0MKp2t-1FEg2H39eT-0002Io; Thu, 02 Mar 2006 00:07:36 -0500 >>> X-Message-Info: StaYHEBmGBoFMycYIyiVTiOCTeGeZOl08tS8XJ43LPc= >>> User-Agent: Thunderbird 1.5 (Windows/20051201) >>> References: <BAY...@ph...l> >>> 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 21:07:12 -0800 >>> Return-Path: web...@li... >>> X-OriginalArrivalTime: 02 Mar 2006 05:10:05.0304 (UTC) >>> FILETIME=[91525780:01C63DB7] >>> >>> Well, I am just jumping in here...I don;t know exactly which systems >>> have SELinux - mine are FCx systems - >>> >>> If you have it, then you will get some output for this command: >>> >>> # cd wherever your script is) >>> #ls -aZ . >>> >>> (not the "." in the last command). >>> >>> Do you get any output? >>> >>> how about for "#ls -Z [path to ]/echo" ? >>> >>> Maybe there is a mismatch there. there also might be a mismatch >>> between the SELinux privileges and some script that webmin runs, or >>> however the shell that webmin spawns is running. Could be a little >>> tricky, but this could be a start to identifying the issue if you >>> have SELinux. It is almost bedtime here so I don't know how much >>> more time I can give you tonight. >>> >>> But if there is a mismatch in privileges, then the fix is gong to >>> involve the "chcon" command, which works similarly to "chmod". >>> >>> Best, >>> >>> Barry >>> Dave . wrote: >>>> >>>> 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...l> >>>>> 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...l> >>>>>>> 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...l> >>>>>>> > >>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...l> >>>>>>> > >> > >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 >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> 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: SignRite <sig...@ho...> - 2006-06-22 11:47:57
|
Hi, When I set up a user in System, Users/Groups then FTP into this account it lets me in fine! but when I click back on CuteFTP it seems to let me go back out of the users folder right into the heart of my linux drive. Is there something Im ment to set to protect a user from leaving there home dir and also,.. what why or how do I make sure a user does not upload a script (perl/php) that lets them browse the contents of the areas that are not ment to be accessed by a hosting user? Jeff, |
From: Michael C. <mi...@po...> - 2008-03-01 07:35:48
|
Hi all , I have lost my webmin user name and password can you please advise on how to change the user name and password. Also is there a module avalable for tinydns ? Michael |
From: Andrew D. <an...@gp...> - 2008-03-01 15:08:22
|
I don't think there is a password reset for webmin!! Andrew Michael Christie wrote: > Hi all , I have lost my webmin user name and password can you please > advise on how to change the user name and password. Also is there a > module avalable for tinydns ? > > > > Michael > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > - > 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...> - 2008-03-01 17:40:15
|
If you can login via SSH or at the console as root, users are listed in the file /etc/webmin/miniserv.users. Once you know your username (usually root or admin), the password can be changed as explained in the 2nd question on http://www.webmin.com/faq.html - Jamie On 01/Mar/2008 07:08 Andrew Doades wrote .. > I don't think there is a password reset for webmin!! > > Andrew > > Michael Christie wrote: > > Hi all , I have lost my webmin user name and password can you please > > advise on how to change the user name and password. Also is there a > > module avalable for tinydns ? |
From: murad m. <mur...@gm...> - 2008-04-23 12:24:40
|
-- Murad F. Makhamreh Security Depository Center 5672788 Ext. 2412 0777848854 |
From: Benedict s. <si...@km...> - 2008-05-04 19:43:40
|
Dear All, I would like to know if webmin can be installed n works OK on Ubuntu 8.04. apprecite your help Thanks and regards simon -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. |
From: Albert C. <al...@al...> - 2008-05-04 20:36:12
Attachments:
smime.p7s
|
Benedict simon wrote: > Dear All, > > I would like to know if webmin can be installed n works OK on Ubuntu 8.04. > > apprecite your help > > Thanks and regards > > simon > I tried it and it seems to works perfectly... 1- Download the .deb from webmin 2- sudo dpkg -i "webmin_package_name.deb" (without the quotes) -> dpkg will complain about missing depedencies and will fail to install (this will be fixed at the next step) 3- sudo apt-get install webmin step 2 will add webmin to the package cache and step 3 will install webmin with the dependencies... -- +--------------------------------------+ Albert Charron +--------------------------------------+ Linux Counter member #157482 Registered computers: 195048, 361906 +--------------------------------------+ |
From: Jamie C. <jca...@we...> - 2008-05-04 20:47:07
|
On 04/May/2008 13:01 Benedict simon wrote .. > Dear All, > > I would like to know if webmin can be installed n works OK on Ubuntu 8.04. > > apprecite your help > > Thanks and regards It will work, but make sure you get the 1.411 development version from http://download.webmin.com/devel/deb/ , as the 1.410 release was done before Ubuntu 8.04 came out, as doesn't quite handle a few of the default configurations properly. - Jamie |