delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Date: | Tue, 6 Aug 2002 10:14:39 -0700 (Pacific Daylight Time) |
From: | Michael A Chase <mchase AT ix DOT netcom DOT com> |
Subject: | Re: Trouble running Perl script that require root privilege |
To: | "Humes, David G." <David DOT Humes AT jhuapl DOT edu>, |
"'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com> | |
Message-ID: | <Mahogany-0.64.2-2456-20020806-101439.00@MCHASE-COMPAQ> |
MIME-Version: | 1.0 |
References: | <E37E01957949D611A4C30008C7E691E29C1FBC AT aples3 DOT jhuapl DOT edu> |
In-Reply-To: | <E37E01957949D611A4C30008C7E691E29C1FBC@aples3.jhuapl.edu> |
On Tue, 6 Aug 2002 12:43:13 -0400 "Humes, David G." <David DOT Humes AT jhuapl DOT edu> wrote: > Hello, > > Note: This is NOT a Perl question. Actually it is a Perl module problem. There should be a "and $^O ne 'cygwin'" next to the test for VMS in the croak line. Because Cygwin runs on top of Windows, it isn't identical to UNIX and this is one of the places where you get bit by the difference. > I use Cygwin ocassionally on my WIN2K workstation to develop and run Perl > scripts that I use for network testing. I have one script that uses the > Net::Ping module that I'm having some trouble with because it fails > saying > it requires root privilege as shown below. > > icmp ping requires root privilege at ./sd_ping.pl line 48 > > Examination of the module reveals that all it's looking for is an > effective > UID of 0 (and the OS is not VMS). > > croak("icmp ping requires root privilege") if ($> and $^O ne 'VMS'); > > I can remove this line from the module and then my script works, but I'd > rather not hack the module. It seems like I should be able to establish the > correct EUID by changing the ownership of the script to UID 0 and setting > the setuid bit. But chown doesn't seem to do anything. It doesn't > complain, it just doesn't change the ownership. I am trying to do this > logged into WIN2K with my domain account which is part of the administrators > group. My passwd and group files were created with mkpasswd -l > > /etc/passwd and mkgroup -l > /etc/group. -- Mac :}) ** I normally forward private questions to the appropriate mail list. ** Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html Give a hobbit a fish and he eats fish for a day. Give a hobbit a ring and he eats fish for an age. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |