URN Logo
UNIX Resources » Linux » Linux Forum » Linux Discussions » Page.148 » slackware and openwebmail
announcement The content of this page is collected from Linux Forum, All copyrights and other associated rights are reserved by the original authors of the articles.
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.com
  LinuxForum General Chat
  Linux Advocacy
  LinuxForum Polls
  Introductions
  Linux Kernel Support
  Patch Management
  Development Release
  Linux Programming
  Linux Security
  Linux Software
  Linux Hardware Problems
    Linux Video Problems
    Linux Sound Problems
  Linux Networking Support
  Linux Printing Support
  Linux Human Interface Devices Support
  Linux Data Storage Support
  Linux Applications Support
  Linux Installation Support
  Linux Laptops Support
  Linux Motherboard, Chipsets, CPU, Memory
  Miscellaneous
  Debian Linux Support
  Ubuntu Linux Support
  LiveCD Discussions
  Gentoo Linux Support
  Mandrake Linux Support
  Redhat / Fedora Linux Support
  Slackware Linux Support
  SuSE Linux Support
  CentOS Linux Support
  Linux Web Servers
  Linux DNS Servers
  Linux Database Servers
  Linux Email Servers
  Linux FTP Servers
  Linux Squid Proxy Server
  Linux Samba Help
  Linux cPanel Help
  Linux Ensim Help
  Linux Plesk Help
  Linux Webmin / Usermin Help
  Qmail Toaster Help
  Linux Games
  Windows Game Emulation
  Linux Discussions
  General Linux Discussions
  Red Hat Linux Discussions
  More Red Hat Linux Discussions
  Mandrake Linux Discussions
  Slackware Linux Discussions
  SuSE Linux Discussions
  Debian Discussions
  Samba Help
  Linux Security
  Linux Networking
  Gentoo Help
  Operating System Rant Forum
  Hardware Rants
   
slackware and openwebmail
Subject: slackware and openwebmail
Author: Snakkes    Posted: 2003-10-28 03:53:30    Length: 605 byte(s)
[Original] [Print] [Top]
Hi all. I have installed openwebmail and all(I belive) prerequisites on a
slack 9.1 box. But when i wanna run ./openwebmail-tool.pl --init, i get this
error:


-bash: ./openwebmail-tool.pl: /usr/bin/suidperl: bad interpreter: No such
file or directory

I believe its because suidperl is disabled on slack 9.1 out of the box, but
i have reinstalled perl(documentation says that suidperl is enabled in a
default install of Perl) and the same message apperas:-(

Someone has a pointer for me on this one?


Regards

Mailman
[Original] [Print] [Top]
Subject: slackware and openwebmail
Author: Snakkes    Posted: 2003-10-28 06:31:06    Length: 1,668 byte(s)
[Original] [Print] [Top]
Thx for the fast reply.


Im going to use the specified solution you propose, but i cant get by step
3. Where do i(in what file) change the path of perl?

Regards

Snakez

"Thorsten Winkler" [thorsten.winkler@foni.net] wrote in message
news:3f9e4910$1@olaf.komtel.net...
QUOTE
Snakkes wrote:

Hi!

-bash: ./openwebmail-tool.pl: /usr/bin/suidperl: bad interpreter: No
such
file or directory

suidperl is not installed in an 'out of the box'-slackware installation.

If you compile perl yourself you need, if I remember right, to add some
options to the config.sh.

However, I would advise to not use suidperl. There is a script in
.../cgi-bin/openwebmail/uty/wrapsuid.pl you can use to create wrappers.

Quote from http://openwebmail.org/openwebmail/doc/faq.txt:

"Or use uty/suidwrap.pl to generate C wrappers for all suid scripts.
Here are the steps:
1. cd cgi-bin/openwebmail
2. perl uty/wrapsuid.pl /fullpath/cgi-bin/openwebmail
3. change #!/usr/bin/suidperl to the path of your perl"

This worked perfectly for my slackware.

Ah, and don't forget to adjust the location for 'shadow' in
.../cgi-bin/openwebmail/auth_unix.pl ;-)

Hope that helps,

--
Thorsten Winkler
[Original] [Print] [Top]
Subject: slackware and openwebmail
Author: Thorsten Winkler    Posted: 2003-10-28 06:46:41    Length: 1,470 byte(s)
[Original] [Print] [Top]
Snakkes wrote:

Hi!

QUOTE
-bash: ./openwebmail-tool.pl: /usr/bin/suidperl: bad interpreter: No such
file or directory

suidperl is not installed in an 'out of the box'-slackware installation.

If you compile perl yourself you need, if I remember right, to add some
options to the config.sh.

However, I would advise to not use suidperl. There is a script in
..../cgi-bin/openwebmail/uty/wrapsuid.pl you can use to create wrappers.

Quote from http://openwebmail.org/openwebmail/doc/faq.txt:

"Or use uty/suidwrap.pl to generate C wrappers for all suid scripts.
          Here are the steps:
          1. cd cgi-bin/openwebmail
          2. perl uty/wrapsuid.pl /fullpath/cgi-bin/openwebmail
          3. change #!/usr/bin/suidperl to the path of your perl"

This worked perfectly for my slackware.

Ah, and don't forget to adjust the location for 'shadow' in
..../cgi-bin/openwebmail/auth_unix.pl ;-)

Hope that helps,

--
Thorsten Winkler
[Original] [Print] [Top]
Subject: slackware and openwebmail
Author: Joost Kremers    Posted: 2003-10-28 07:09:36    Length: 871 byte(s)
[Original] [Print] [Top]
["Followup-To(Opvolgend bericht naar):" header ingesteld op alt.os.linux.slackware.]
Snakkes wrote:
QUOTE
-bash: ./openwebmail-tool.pl: /usr/bin/suidperl: bad interpreter: No such
file or directory

have you checked if /usr/bin/suidperl exists?

btw, is there anything a cracker could *not* do with suidperl, once they've
gained access to your machine, even if it's only as a user?

geez. a programming language whose interpreter is suid... you might as well
put your root password on ./)

--
Joost Kremers
since when is vi an editor? a discussion on vi belongs in
comp.tools.unusable or something... ;-)
[Original] [Print] [Top]
Subject: slackware and openwebmail
Author: Snakkes    Posted: 2003-10-28 07:15:19    Length: 1,066 byte(s)
[Original] [Print] [Top]
Excellent.

Thx Thorsten


Regards

Snakkes
"Thorsten Winkler" [thorsten.winkler@foni.net] wrote in message
news:3f9e5d8a$1@olaf.komtel.net...
QUOTE
Snakkes wrote:

Hello!

Thx for the fast reply.

No problem. ;-)

Im going to use the specified solution you propose, but i cant get by
step
3. Where do i(in what file) change the path of perl?

After you ran the script you find a series of .openwebmail*.pl in
.../cgi-bin/openwebmail/ (ls -a). The new files with a dot in the
beginning are the old files, and the files without the leading dot are
the wrappers.


In all of these new files (with the leading dot) you need to change the
first line to:

#!/usr/bin/perl

Cheers.

--
Thorsten Winkler
[Original] [Print] [Top]
Subject: slackware and openwebmail
Author: Thorsten Winkler    Posted: 2003-10-28 08:14:02    Length: 1,054 byte(s)
[Original] [Print] [Top]
Snakkes wrote:

Hello!

QUOTE
Thx for the fast reply.

No problem. ;-)

QUOTE
Im going to use the specified solution you propose, but i cant get by step
3. Where do i(in what file) change the path of perl?

After you ran the script you find a series of .openwebmail*.pl in
..../cgi-bin/openwebmail/ (ls -a). The new files with a dot in the
beginning are the old files, and the files without the leading dot are
the wrappers.


In all of these new files (with the leading dot) you need to change the
first line to:

#!/usr/bin/perl

Cheers.

--
Thorsten Winkler
[Original] [Print] [Top]
« Previous thread
SCSI Strangeness on Redhat and SUSE
Linux Discussions
Page. 148
Next thread »
Correct time at RedHAt
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
Powered by FreeBSD    webmaster: webmaster@unixresources.net
This page created on 2007-08-01 12:14:05, cost 0.027099132537842 ms.