Re: [CentOS] Problem running a setuid Perl script on CentOS 4.5

2007-11-16 Thread Brian Mathis
On Nov 16, 2007 11:16 AM, James Olin Oden <[EMAIL PROTECTED]> wrote: > On 11/16/07, Alfred von Campe <[EMAIL PROTECTED]> wrote: > > On Nov 16, 2007, at 9:55, Marc Wiatrowski wrote: > > > > > Being aware of the security implications, do you have > > > perl-suidperl-X.rpm installed? > > > > I meant I

Re: [CentOS] Problem running a setuid Perl script on CentOS 4.5

2007-11-16 Thread Alfred von Campe
On Nov 16, 2007, at 9:55, Marc Wiatrowski wrote: Being aware of the security implications, do you have perl-suidperl-X.rpm installed? I meant I was aware of the implications of running setuid scripts. I was not aware that CentOS' upstream provider had packaged suidperl separately. Instal

Re: [CentOS] Problem running a setuid Perl script on CentOS 4.5

2007-11-16 Thread James Olin Oden
> Good suggestions. Also keep in mind that you don't always suid to > root. You can also suid to another user (which seems to be the case > here). Sure. Just like login does. Actually, want I would really like to see is the ability to mark certain sections of code to be ran as another user, but

Re: [CentOS] Problem running a setuid Perl script on CentOS 4.5

2007-11-16 Thread James Olin Oden
On 11/16/07, Alfred von Campe <[EMAIL PROTECTED]> wrote: > On Nov 16, 2007, at 9:55, Marc Wiatrowski wrote: > > > Being aware of the security implications, do you have > > perl-suidperl-X.rpm installed? > > I meant I was aware of the implications of running setuid scripts. I > was not aware that C

Re: [CentOS] Problem running a setuid Perl script on CentOS 4.5

2007-11-16 Thread James Olin Oden
On 11/16/07, Marc Wiatrowski <[EMAIL PROTECTED]> wrote: > > On Fri, 2007-11-16 at 09:42 -0500, Alfred von Campe wrote: > > I'm trying to create a setuid Perl script (yes, I am aware about the > > security implications), but am getting this error: > > > >% cat testsetuid.pl > >#!/usr/bin/per

Re: [CentOS] Problem running a setuid Perl script on CentOS 4.5

2007-11-16 Thread Marc Wiatrowski
On Fri, 2007-11-16 at 09:42 -0500, Alfred von Campe wrote: > I'm trying to create a setuid Perl script (yes, I am aware about the > security implications), but am getting this error: > >% cat testsetuid.pl >#!/usr/bin/perl -UT >print "My real user id is $< but my effective user id i

[CentOS] Problem running a setuid Perl script on CentOS 4.5

2007-11-16 Thread Alfred von Campe
I'm trying to create a setuid Perl script (yes, I am aware about the security implications), but am getting this error: % cat testsetuid.pl #!/usr/bin/perl -UT print "My real user id is $< but my effective user id is $>\n"; exit(0); % ./testsetuid.pl Can't do setuid (cannot exec spe