You are not logged in.

#1 2005-03-04 05:27:18

schome1
Member
Registered: 2004-02-15
Posts: 61

building perl with suid enabled

I am installing qmail and I want to use the qmail-scanner, but I need perl with suid.  What's the easiest way to do this?  To my knowledge, perl currently doesn't have this enabled in Arch.

Offline

#2 2005-03-04 05:46:19

sudman1
Member
From: Huntingdon, UK
Registered: 2005-02-18
Posts: 143

Re: building perl with suid enabled

If I understand what you're saying, you shouldn't have to repackage PERL, you just need to set the SUID bit on the binary with

chmod 4755 /usr/bin/perl

resulting in a perl binary with the following perms: -rwsr-xr-x
Readable and executable by all as root.


v/r
Suds

Offline

#3 2005-03-04 05:54:56

schome1
Member
Registered: 2004-02-15
Posts: 61

Re: building perl with suid enabled

Here's the writeup from qmailrocks.org regarding perl and setuid...

How you go about configuring and installing qmail-scanner from this point on depends on how you server's installation of Perl is configured. For the purposes of this installation, there are 2 Perl setups.

1. Perl is configured to allow for setuid functions.

2. Perl is not configured for setuid functionality and, in fact, does not permit it.

I've tried both and they both fail, saying that I don't have setuid enabled.

Offline

Board footer

Powered by FluxBB