LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 09-11-2004, 01:16 PM   #1
linchat
Member
 
Registered: Aug 2004
Location: USA BABY!
Distribution: SuSe, Fedora
Posts: 61

Rep: Reputation: 15
Perl Setuid


Fedora Core 1

I installed the perl setuid on Fedora Core 1 to be used by qmail-scanner. Whenever I test it, it says it cannot setuid. I have read the faq at qmail scanner and they gave some fixes, none of which worked. Something is said about a wrapper, but I cannot find any info on it.

Is anyone famaliar with setuid and how to get it working.

Thanks
 
Old 09-12-2004, 08:29 PM   #2
jspaar
Member
 
Registered: Feb 2004
Location: California
Posts: 99

Rep: Reputation: 15
Just to be clear, you're certain you have the perl-suidperl package installed?

Code:
$ rpm -q perl-suidperl
If so, create a test script that is suid:
Code:
$ cat > xx
#!/usr/bin/perl
print "testing.\n";
^D                             [ctrl-D to finish the script]

$ chmod a+rx xx                  [Now make the script executable, owned by root, and setuid]
$ sudo chown root xx
$ sudo chmod u+s xx
Test it like this:
Code:
$ ./xx
testing.
$
This works for me (on FC2, but should work fine on FC1). Without the perl-suidperl package installed, running the test script will give the "Can't do setuid" error.

qmail itself I know nothing about. But if the above test doesn't work, then something besides qmail is screwed up.
 
Old 09-12-2004, 09:00 PM   #3
linchat
Member
 
Registered: Aug 2004
Location: USA BABY!
Distribution: SuSe, Fedora
Posts: 61

Original Poster
Rep: Reputation: 15
Installed, Yes

I installed it by RPM. I am going to give your script a try.
 
Old 02-26-2005, 08:19 AM   #4
graystarr
Member
 
Registered: Dec 2001
Location: Layton, Utah
Distribution: Red Hat 8.0 and Mandrake 9.0
Posts: 85

Rep: Reputation: 15
I created your script and tested it and got permission denied. now what?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setuid int0x80 Linux - Security 3 12-02-2005 01:33 PM
Using setuid with apache dale_lix Linux - General 0 02-03-2004 10:38 AM
setuid Help devinWhalen Linux - General 2 12-03-2003 09:57 AM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 08:09 PM
Setuid SirTurbo Linux - General 1 03-26-2003 06:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 05:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration