Re: Web Hosting - IPs, Quotas and Jails

From: Michael R. Wayne (wayne_at_staff.msen.com)
Date: 10/24/05

  • Next message: Unexpected reply handler: "Re: Mail System (ay.200130761.194470.0@reply.ebay.com)"
    Date: Mon, 24 Oct 2005 12:52:06 -0400
    To: freebsd-isp@freebsd.org
    
    

    On Mon, Oct 24, 2005 at 11:56:22AM -0400, Troy Settle wrote:
    >
    > Anyways, here's where I need some help. I want to create a 3rd jail for
    > Frontpage services. FP doesn't have any built in quota support that
    > I've seen, so I'll need to depend on file system quotas. The problem
    > with this, is that quotas do not seem to work in a jailed environment.
    > Can anyone recommend a solution/workaround to this?

    This can be (mostly) made to work.

    Mount the filesystem on the host machine with quotas enabled,
    pointing to a file reachable by the jail. Example /etc/fstabs:

    /dev/da0s1d /JAIL_NAME/home ufs rw,nosuid,nodev,userquota=/JAIL_NAME/usr/quotas/JAIL_NAME.home 2 2

    In the jail, use

    /dev/da0s1d /home ufs rw,nosuid,nodev,userquota=/usr/quotas/JAIL_NAME.home,noauto 2 2

    Remember that you only have a single namespace (numberspace?) for
    UIDs so do not re-use them in other jails.

    /\/\ \/\/
    _______________________________________________
    freebsd-isp@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"


  • Next message: Unexpected reply handler: "Re: Mail System (ay.200130761.194470.0@reply.ebay.com)"

    Relevant Pages

    • Re: Jail Quotas - quota.user hard link
      ... I have a question about using quotas in a jail with FreeBSD 6.x. ... You can stick an hourly cron script on the base system containing ...
      (freebsd-hackers)
    • Re: Jail Quotas - quota.user hard link
      ... Basic operation can be done by specifying a filename, available in the jail, ... which contains the quotas. ... Even with the quota command setuid root inside the jail, I was getting "permission denied" errors. ... I plan to do most work from the host and only become root in the jail when necessary. ...
      (freebsd-hackers)
    • Re: Stop usage of "who"?
      ... packages and recently built FreeBSD ... > check out and use *jail* instead. ... > Here's some info on quotas if you never seen it yet.. ... Here's what I worry about. ...
      (FreeBSD-Security)
    • Re: Jail and disk space
      ... You can add each user of a jail to a specific jail group and use group ... quotas at the host environment. ... These words as shell commands: ...
      (freebsd-questions)
    • File System Quotas
      ... We want to enforce File System quotas for users. ... as part of our installation procedure, which doesn't have user interaction. ... How can we set quotas using a file for the file system quotas? ...
      (comp.unix.solaris)