SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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)
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
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 :
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
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...
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"]
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.