Harry Putnam writes:
> sub usage{ ## It's been said that a HEREDOC would be better here. Probably
>## true, but just curious why that would be the case
>print "
> Purpose: Find specific msgid's in procmail.log (including gzipped ones),
> return
> The interesting block of
From: Mumia W. [mailto:[EMAIL PROTECTED]
>> Go into sudoers and replace the name of the binary with the name of a
>> script that echoes the real and effective user and group ids.
Thanks Mumia, and thanks to all who responded.
As it turns out, I was able to resolve the problem by replacing
'/bin
On 10/05/2006 07:10 PM, RICHARD FERNANDEZ wrote:
From: Mumia W. [mailto:[EMAIL PROTECTED]
Does the webserver have the proper permissions to invoke that sudo
entry?
AFAIK, yes. I don't think it would be asking for a password if it
couldn't run the binary. It just doesn't seem to be pulling
-Original Message-
From: Igor Sutton [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 05, 2006 8:17 PM
To: RICHARD FERNANDEZ
Cc: Beginners List
Subject: Re: Can't get Sudo.pm to run my command but it works from a
prompt
> Looks like this may not, strictly speaking, be a Perl
Looks like this may not, strictly speaking, be a Perl question any
more,
but can anyone point me in the right direction?
I can definitely run things out of cgi-bin, otherwise I wouldn't have
gotten this far.
Most times, apache uses nobody or www user. Check if the user apache
uses is mention
From: Mumia W. [mailto:[EMAIL PROTECTED]
> Does the webserver have the proper permissions to invoke that sudo
entry?
AFAIK, yes. I don't think it would be asking for a password if it
couldn't run the binary. It just doesn't seem to be pulling the right
entry (webuser) out of the sudoers file,
On 10/05/2006 03:23 PM, RICHARD FERNANDEZ wrote:
if the user has never signed in and the admin never ran
passwd user passwd -f user and then that user never went into
make his/her password permenant then yes it would matter b/c
the passwd is not set.
I've gone in and set a passwd for the u
> if the user has never signed in and the admin never ran
> passwd user passwd -f user and then that user never went into
> make his/her password permenant then yes it would matter b/c
> the passwd is not set.
>
I've gone in and set a passwd for the user. Then I actually logged in as
the user
--- RICHARD FERNANDEZ <[EMAIL PROTECTED]> wrote:
> > Did you edit the sudoers file using visudo -f
> "file"
>
> Yes.
>
> > Show us the sudoers file using cat -etu "file".
>
> # cat -etu /usr/local/etc/sudoers >
> /tmp/sudoers.richf
> # less /tmp/sudoers.richf
> # sudoers file.
> #
> # This file
> Did you edit the sudoers file using visudo -f "file"
Yes.
> Show us the sudoers file using cat -etu "file".
# cat -etu /usr/local/etc/sudoers > /tmp/sudoers.richf
# less /tmp/sudoers.richf
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
# User privilege specif
t; In other words, it seems to be asking for a
> password. However when I run
> this from a regular prompt as the webserver user, it
> works fine.
>
> I have a check for the UID in the script, and it's
> the right one. I also
> have NOPASSWD set in sudoers.
>
> Any help
following in the
error_log:
> output:
> result: 256
STDOUT:
STDERR:
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these two things:
#1) Respect the privacy of others.
#2) Think before you type.
Password:
RC:
In ot
Script2 has just one line
print "hello";
When I execute the script 1, it doesn't execute or find script2.
It works fine, if I give complete path.
Any idea, why its happening so.. ?
any pointers to some documentation, how PERL_ROOT really works is also welcome.
perldoc perl
gt; >
> > 1.c:/script1 has below lines
> > $ENV{PERL_ROOT} ='D:/';
> > open(fh,'perl script2.pl |');
> > $x=;
> > close fh;
> > print $x;
> >
> > 2. Script2 has just one line
> > print "hello";
> >
> &g
Rathna N wrote:
Hi,
Hello,
I've a very basic question for clarification.
1.c:/script1 has below lines
$ENV{PERL_ROOT} ='D:/';
open(fh,'perl script2.pl |');
$x=;
close fh;
print $x;
2. Script2 has just one line
print "hello";
When I execute the script 1, it
Hi,
I've a very basic question for clarification.
1.c:/script1 has below lines
$ENV{PERL_ROOT} ='D:/';
open(fh,'perl script2.pl |');
$x=;
close fh;
print $x;
2. Script2 has just one line
print "hello";
When I execute the script 1, it doesn't execute o
On Fri, 2003-06-06 at 23:44, Michael Tokarev wrote:
> Paul Tremblay wrote:
> > If this mail makes it through, my configuration works!
>
> ...which does not imply your configuration is correct, however... ;)
>
> /mjt
>
>
>
Good point!
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addition
Thank You
Thank You
Thank You
I LOVE THIS MAILING LIST!!!
Ernest P. Tucker II
Network Technician
"The organization that can't communicate can't change, and the corporation
that can't change is dead."
--Nido Qubein
-Original Message-
From: Bob Showalter [mailto:[EMAIL
A Taylor wrote:
> howdy all,
> I was wondering if you could help me, I have a perl script that executes a
> SQL statement:
>
> 'SELECT prop_rank FROM main ORDER BY prop_rank DESC'
>
> This returns many records but all i am interested in is the highest rank
> hence the 'ORDER BY prop_rank DESC'.
thanks everyone - a lot of help and I have learned loads ;-)
>SELECT MAX(prop_rank)...
>"A Taylor" <[EMAIL PROTECTED]> wrote in message
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > howdy all,
> > I was wondering if you could help me, I have a perl script that executes
>a
> > SQL statement:
On Tue, Jun 11, 2002 at 05:49:53PM +, A Taylor wrote:
> 'SELECT prop_rank FROM main ORDER BY prop_rank DESC'
>
> This returns many records but all i am interested in is the highest rank
> hence the 'ORDER BY prop_rank DESC'.
> I then retreive the highest rank like so:
>
> $rank = $sth1->fet
Uh,... no (atleast IMHO)
SELECT MAX(prop_rank)...
would be a more efficient approach
HTH
"A Taylor" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> howdy all,
> I was wondering if you could help me, I have a perl script that executes a
> SQL statement:
>
> 'SELE
On Tue, 11 Jun 2002, A Taylor wrote:
>
> $rank = $sth1->fetchrow_array();
>
> Now, my question is this: is this the right way to retreive just 1 record,
> using fetchrow_array(); ??? or is there a more acceptable way. This does
> work, its just the 'array()' part is making me a little uneasy.
>
howdy all,
I was wondering if you could help me, I have a perl script that executes a
SQL statement:
'SELECT prop_rank FROM main ORDER BY prop_rank DESC'
This returns many records but all i am interested in is the highest rank
hence the 'ORDER BY prop_rank DESC'.
I then retreive the highest ra
Did a little more poking around and then changed the command starting on line
11 to read as follows:
while ($report = <$t>) {
print $report;
}
Now it works, but I am not sure why? What condition is keeping that while
loop going? Is it the fact that the telnet session assigned to $t is
ael Carmody [mailto:[EMAIL PROTECTED]]
Sent: 06 e?iy 2001 a. 20:36
To: [EMAIL PROTECTED]
Subject: It works but I dont get it...
Been working on parsing a data file to create a ldif file for openldap.
Managed to read everything in to an AoA Ok but printing the output ha sbeen
a headache.
Finally j
Been working on parsing a data file to create a ldif file for openldap.
Managed to read everything in to an AoA Ok but printing the output ha sbeen
a headache.
Finally just copy and pasted from manual the print individual entry of AoA
example, and of course it worked. But I don't understand wh
27 matches
Mail list logo