Skip Navigational Links
LISTSERV email list manager
LISTSERV - COMMUNITY.EMAILOGY.COM
LISTSERV Menu
Log In
Log In
LISTSERV 17.5 Help - LSTSRV-L Archives
LISTSERV Archives
LISTSERV Archives
Search Archives
Search Archives
Register
Register
Log In
Log In

LSTSRV-L Archives

LISTSERV Site Administrators' Forum

LSTSRV-L

Menu
LISTSERV Archives LISTSERV Archives
LSTSRV-L Home LSTSRV-L Home

Log In Log In
Register Register

Subscribe or Unsubscribe Subscribe or Unsubscribe

Search Archives Search Archives
Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
Re: listserv chrooted?
From:
Tam Nguyen <[log in to unmask]>
Reply To:
LISTSERV give-and-take forum <[log in to unmask]>
Date:
Tue, 21 Aug 2001 16:48:04 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (38 lines)
Valdis Kletnieks wrote:
>
> On Fri, 17 Aug 2001 17:58:56 PDT, Tam Nguyen <[log in to unmask]>  said:
> > Can listserv be chrooted?  I need to implement it if possible.  I can't seem to
> > find any information on this topic from this archive.
>
> It should be implementable in theory.  The biggest gotcha will be that
> you need to build lsv_amin with a spool dir of /chroot/home/listserv/spool
> but have lsv run with a spool dir of /home/listserv/spool.  You'll have
> to play similar games with the web interface if you use it.
>
> One big headache will be that you need a /bin/sh in the chroot environment
> to run ~listserv/go.  Also, look carefully at the 'go' script to make
> sure you have all the other binaries it might need.  And don;t forget
> the libc and other shared libs you might need. ;)
>
> Note that I haven't tried it. ;)

Yes, listserv works in chroot environment.  Thanks to Valdis for your
encouraging words "implementable in theory".

The one problem I ran into was when I went into chroot and tried to start
listserv:

host# chroot /chroot-dir /bin/sh
# go

In "go" script, it tried to "su listserv -c ./go" (as I was running as root in
chroot), that's when it failed because it could not su to listserv.  The work
around it is to use "chrootuid":

host# chrootuid /chroot-dir listserv /bin/sh
$ go

And of course, you have to set up your chroot environment correctly.

Tam

ATOM RSS1 RSS2

COMMUNITY.EMAILOGY.COM CataList Email List Search Powered by LISTSERV