LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-14-2013, 09:57 AM   #1
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591

Rep: Reputation: 73
suidperl in slack 14?


Hello!
Going to install openwebmail, and it requires suidperl to work.
search for "suidperl" in slackware64 14.0 system disk gives nothing. search over google for suidperl slackware 14 - the same. what i can do?
 
Old 02-14-2013, 10:41 AM   #2
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

I found this thread that talk about openwebmail and Slackware 9.1. The OP had the same kind of trouble than you, and it seems that you have two options :

1) Rebuild perl with suidperl

However, suidperl is deprecated as explained in perl.SlackBuild :

Quote:
# We no longer include suidperl. To quote the INSTALL file:
#
# Because of the buggy history of suidperl, and the difficulty
# of properly security auditing as large and complex piece of
# software as Perl, we cannot recommend using suidperl and the feature
# should be considered deprecated.
# Instead use for example 'sudo': http://www.courtesan.com/sudo/
2) use misc/tools/suidwrap.pl to generate C wrappers for all suid script as explained into the openwebmail faq :

Quote:

[...]

Q: I got "Internal server error" when running Open WebMail?
I got "can not do setuid" error?
I got "Software error: Can't locate etc/openwebmail.conf in @INC" error?
A: There are many possible answers...

[...]

ps: If you don't want to recompile perl, you choose to may use
misc/tools/suidwrap.pl to generate C wrappers for all suid scripts.

However, this is not recommended at all, as you will not be able
to use SpeedyCGI with the openwebmail system.

Here are the steps:
1. cd cgi-bin/openwebmail
2. perl misc/tool/wrapsuid/wrapsuid.pl /fullpath/cgi-bin/openwebmail
3. change #!/usr/bin/suidperl to the path of your perl

All suid scripts will be renamed to .scriptname.pl and
the C wrapper will be generated and named as script.pl
(thanks to Chris Heegard, heegard.AT.NativeI.com)

The spellcheck may not work on Solaris when using C wrappers.
(thanks to Isam Ishaq, isam.AT.planet.edu)

[...]
Hope this will help you a bit.

Cheers.
--
SeB
 
1 members found this post helpful.
Old 02-15-2013, 03:11 AM   #3
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591

Original Poster
Rep: Reputation: 73
very, very strange. try to do today make a c wrappers.
cd to /war/www/cgi-bin/openwebmail and do
perl misc/tools/wrapsuid/wrapsuid.pl /var/www/cgi-bin/openwebmail

script output to screen some text, i going to look in /var/www/cgi-bin/openwebmail, and see, there is some scripts with leadeing dot, and new ones. try again to open my webmail server via web browser -that again says,
/srv/httpd/cgi-bin/openwebmail/openwebmail.pl must be setuid to root to read the mail spools
i think maybe whatever not going right, try again run
perl misc/tools/wrapsuid/wrapsuid.pl /var/www/cgi-bin/openwebmail
but there is nothing of output, and none changes in
/var/www/cgi-bin/openwebmail
i delete /var/www/cgi-bin/openwebmail folder and also /var/www/openwebail ( data), and copy both new from openwebmail.current.tar.gz ( distribution), restart computer, make configs changes in /var/www/cgi-bin/openwebmail/etc,
make a ./openwebmail-tool.pl --init - all worked, get output.
after that, try do
perl misc/tools/wrapsuid/wrapsuid.pl /var/www/cgi-bin/openwebmail
-and again nothing! not any output of command, and nothing changes in /var/www/cgi-bin/openwebmail

not ideas, why wrapsuid.pl not work again, and what to do with that :-O
 
Old 02-15-2013, 03:58 AM   #4
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

Quote:
Originally Posted by WiseDraco View Post
very, very strange. try to do today make a c wrappers.
cd to /war/www/cgi-bin/openwebmail and do
perl misc/tools/wrapsuid/wrapsuid.pl /var/www/cgi-bin/openwebmail

script output to screen some text, i going to look in /var/www/cgi-bin/openwebmail, and see, there is some scripts with leadeing dot, and new ones. try again to open my webmail server via web browser -that again says,
/srv/httpd/cgi-bin/openwebmail/openwebmail.pl must be setuid to root to read the mail spools
i think maybe whatever not going right, try again run
perl misc/tools/wrapsuid/wrapsuid.pl /var/www/cgi-bin/openwebmail
but there is nothing of output, and none changes in
/var/www/cgi-bin/openwebmail
i delete /var/www/cgi-bin/openwebmail folder and also /var/www/openwebail ( data), and copy both new from openwebmail.current.tar.gz ( distribution), restart computer, make configs changes in /var/www/cgi-bin/openwebmail/etc,
make a ./openwebmail-tool.pl --init - all worked, get output.
after that, try do
perl misc/tools/wrapsuid/wrapsuid.pl /var/www/cgi-bin/openwebmail
-and again nothing! not any output of command, and nothing changes in /var/www/cgi-bin/openwebmail

not ideas, why wrapsuid.pl not work again, and what to do with that :-O
Well, I looked at this and I encountered the same trouble. I checked the perl script (ie misc/tools/wrapsuid/wrapsuid.pl) and found that this have something to do with wrong permissions. Indeed, inside the perl script you will find the code below :

Code:
open(FIND,  "find $fslist $xdev -type f \\( -perm -04000 -o -perm -02000 \\) -print|")
So I checked the faq and found this :

Quote:
Please check if you have installed a complete set of perl 5.005 or above.
and You have uncompressed the openwebmail-1.xx.tar.gz with proper parameter.
It should be "tar -zxvBpf openwebmail-1.xx.tar.gz"
With this, the perl script seems to work :

Quote:
$ cd /tmp
$ mkdir openwebmail
$ cd openwebmail
$ tar -zxvBpf /home/seb/Downloads/openwebmail-current.tar.gz

find . -type f \( -perm -04000 -o -perm -02000 \)
./cgi-bin/openwebmail/openwebmail-folder.pl
./cgi-bin/openwebmail/openwebmail-main.pl
./cgi-bin/openwebmail/openwebmail-read.pl
./cgi-bin/openwebmail/openwebmail-send.pl
./cgi-bin/openwebmail/openwebmail-cal.pl
./cgi-bin/openwebmail/openwebmail-webdisk.pl
./cgi-bin/openwebmail/openwebmail.pl
./cgi-bin/openwebmail/openwebmail-advsearch.pl
./cgi-bin/openwebmail/openwebmail-abook.pl
./cgi-bin/openwebmail/openwebmail-viewatt.pl
./cgi-bin/openwebmail/openwebmail-vdomain.pl
./cgi-bin/openwebmail/openwebmail-saprefs.pl
./cgi-bin/openwebmail/openwebmail-prefs.pl
./cgi-bin/openwebmail/openwebmail-tool.pl
./cgi-bin/openwebmail/openwebmail-spell.pl

$ cd cgi-bin/openwebmail/

$ perl misc/tools/wrapsuid/wrapsuid.pl /tmp/openwebmail/cgi-bin/openwebmail/

Fixing /tmp/openwebmail/cgi-bin/openwebmail/openwebmail-folder.pl
Fixing /tmp/openwebmail/cgi-bin/openwebmail/openwebmail-main.pl
Fixing /tmp/openwebmail/cgi-bin/openwebmail/openwebmail-read.pl
Fixing /tmp/openwebmail/cgi-bin/openwebmail/openwebmail-send.pl
Fixing /tmp/openwebmail/cgi-bin/openwebmail/openwebmail-cal.pl
Fixing /tmp/openwebmail/cgi-bin/openwebmail/openwebmail-webdisk.pl
Fixing /tmp/openwebmail/cgi-bin/openwebmail/openwebmail.pl
Fixing /tmp/openwebmail/cgi-bin/openwebmail/openwebmail-advsearch.pl
Fixing /tmp/openwebmail/cgi-bin/openwebmail/openwebmail-abook.pl
Fixing /tmp/openwebmail/cgi-bin/openwebmail/openwebmail-viewatt.pl
Fixing /tmp/openwebmail/cgi-bin/openwebmail/openwebmail-vdomain.pl
Fixing /tmp/openwebmail/cgi-bin/openwebmail/openwebmail-saprefs.pl
Fixing /tmp/openwebmail/cgi-bin/openwebmail/openwebmail-prefs.pl
Fixing /tmp/openwebmail/cgi-bin/openwebmail/openwebmail-tool.pl
Fixing /tmp/openwebmail/cgi-bin/openwebmail/openwebmail-spell.pl
Hope all will work for you now.

Cheers.

--
SeB
 
1 members found this post helpful.
Old 02-15-2013, 06:17 AM   #5
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591

Original Poster
Rep: Reputation: 73
Thank you for your help!
yes, via that wrapsuid.pl works, "fixing" and i have new sets with .pl files in cgi-bin/openwebmail
configure configfiles, run openwebmail-tool.pl --init - all looks ok.
try to go via webbrowsers to my openwebmail - got again

OpenWebMail ERROR

/srv/www/cgi-bin/openwebmail/.openwebmail.pl must be setuid to root to read the mail spools


OpenWebMail version 2.53 Help?


:-O

PS i do not touch .openwebmail*.pl files - theres already have first lines of #!/usr/bin/perl -T

i think, after wrapsuid there must be all be ok with permissions, and openwebmail runs as root, but looks not to be...
also in faq is be a text about "script.pl":

All suid scripts will be renamed to .scriptname.pl and
the C wrapper will be generated and named as script.pl
(thanks to Chris Heegard, heegard.AT.NativeI.com)

i also do not found script.pl in cgi-bin/openwebmail...
 
Old 02-15-2013, 06:43 AM   #6
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591

Original Poster
Rep: Reputation: 73
Sorry!
looks like must be manually set user ID on execution for openwebmail.pl
i do it, and now openwebmail login looks ok until that. today create a some users and check if log in and so on works...
thank you![COLOR="Silver"]
 
Old 01-02-2015, 12:13 PM   #7
newbie-slack
LQ Newbie
 
Registered: Jan 2015
Posts: 1

Rep: Reputation: Disabled
OpenWebmail installation / omit the defined ?

Hello!
Trying to install openwebmail 2.53 on a slackware32 14, I had follow the faq from the howto slackware ( docs.slackware.com / howtos:network_services:install_openwebmail ) and the faq of openwebmail site ( openwebmail.acatysmoof.com / doc/install/slackware/13.37/HOWTO_Install_OpenWebMail_Slackware_13.37.txt ).

As I didnt find the answer I post this question with the errors messages I get at the following step : "./openwebmail-tool.pl --init"

defined(%hash) is deprecated at /var/www/cgi-bin/openwebmail/shares/ow-shared.pl line 201.
(Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /var/www/cgi-bin/openwebmail/shares/ow-shared.pl line 207.
(Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /var/www/cgi-bin/openwebmail/shares/ow-shared.pl line 208.
(Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /var/www/cgi-bin/openwebmail/shares/ow-shared.pl line 209.
(Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /var/www/cgi-bin/openwebmail/shares/ow-shared.pl line 211.
(Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /var/www/cgi-bin/openwebmail/shares/ow-shared.pl line 224.
(Maybe you should just omit the defined()?)
defined(@array) is deprecated at /var/www/cgi-bin/openwebmail/shares/ow-shared.pl line 1153.
(Maybe you should just omit the defined()?)
defined(@array) is deprecated at /var/www/cgi-bin/openwebmail/shares/ow-shared.pl line 1968.
(Maybe you should just omit the defined()?)
defined(@array) is deprecated at /var/www/cgi-bin/openwebmail/shares/mailfilter.pl line 369.
(Maybe you should just omit the defined()?)
defined(@array) is deprecated at /var/www/cgi-bin/openwebmail/shares/mailfilter.pl line 433.
(Maybe you should just omit the defined()?)
defined(@array) is deprecated at /var/www/cgi-bin/openwebmail/shares/mailfilter.pl line 641.
(Maybe you should just omit the defined()?)

creating db /var/www/cgi-bin/openwebmail/etc/maps/b2g ...done.
creating db /var/www/cgi-bin/openwebmail/etc/maps/g2b ...done.
creating db /var/www/cgi-bin/openwebmail/etc/maps/lunar ...done.

Creating UTF-8 locales...
langconv ar_AE.CP1256 -> ar_AE.UTF-8
srcdir /var/www/data/openwebmail/javascript/htmlarea.openwebmail/popups/ar_AE.CP1256 doesn't exist at /var/www/cgi-bin/openwebmail/.openwebmail-tool.pl line 556.

It should be obvious but I do not find where I may "omit the defined"

I add this questions to this thread which is the subject, as a newcomer I didnt dare to create a new thread.

Any help will be helpfull

A Slackware newbie !
 
  


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
how to install perl with SUIDPERL enabled activeq Linux - Software 1 11-03-2006 03:58 AM
openwebmail can't find suidperl on slack 10.1 pau_kacang Slackware 2 08-15-2005 03:03 AM
suidperl: PL_op_mutex Kabuto Slackware 0 08-19-2004 11:42 AM
Install suidperl?! h8r Linux - Software 1 07-06-2004 04:08 AM
suidperl Kabuto Linux - Software 0 07-06-2004 02:54 AM

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

All times are GMT -5. The time now is 12:35 AM.

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