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