Create multiple jails by copying

From: Siddhartha Jain (sid_at_netmagicsolutions.com)
Date: 08/14/04

  • Next message: Lowell Gilbert: "Re: /etc/make.conf"
    Date: Sat, 14 Aug 2004 19:47:52 +0530
    To: freebsd-questions@freebsd.org
    
    

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Hi,

    I created one jail in FreeBSD 4.10. Since the compile time for make
    world and make distribution is too high, I copied the contents of jail1
    to jail2 this way:

    jailbsd:/jails/jail1# find . | cpio -pdmv /jails/jail2

    jail1 is functional. Now, when I run:

    # mount -t procfs proc /jails/jail2/proc
    (No complaints/errors)

    #jail /jails/jail2 jail2 10.1.1.173 /bin/sh /etc/rc

    I get an error from sendmail-client, sshd, cron, sendmail cannot
    chdir(/var/spool/clientmqueue/): Permission denied
    Program mode requires special privileges, eg., root or TrustedUser

    But "ps ax" reveals that in the jail:
    syslogd, sshd, cron are running but sshd kicks out the user after
    entering username/password.

    What do I need to modify in jail2 to make it work? I am guessing its
    some file permissions?

    Thanks,

    Siddhartha

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.1 (MingW32)
    Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

    iD8DBQFBHh8QOGaxOP7knVwRAvxjAJ0ZDekNiSIWmD67nD+kGZAZ09Dr9QCeJUyS
    EG9eGAZSmHheXV7qvYHjXXs=
    =ztKJ
    -----END PGP SIGNATURE-----
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Lowell Gilbert: "Re: /etc/make.conf"