From owner-freebsd-jail@FreeBSD.ORG Fri Aug 23 15:35:09 2013 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 286A1E25 for ; Fri, 23 Aug 2013 15:35:09 +0000 (UTC) (envelope-from miguelmclara@gmail.com) Received: from mail-wg0-x232.google.com (mail-wg0-x232.google.com [IPv6:2a00:1450:400c:c00::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B2A9B2F47 for ; Fri, 23 Aug 2013 15:35:08 +0000 (UTC) Received: by mail-wg0-f50.google.com with SMTP id m15so698051wgh.5 for ; Fri, 23 Aug 2013 08:35:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=yd9x1fHNbtfdC5Qmkk6rkTFkBi/FEM859MDAsLV82Zo=; b=OLFme/tq/6tNcuc3xFfXEyaZSh64RCPigZToN6ld4FsKMBXjDvhfDzsrRFJS1StDgF cc2lvDTyd1XRtf321W1k54HPOX0NvNqMZIZHtnMtvKcCDYZwUk8Wdk3ZV/YFMwqBuSGy O89mAh+ynIUWOB4cJhMgN+IidcU49waZjcPYLUn5Ee+Dvp5GgMyRSwU5eGmUwk3iLcfL Q8LY0r8OBrNBquw15M6Uee3fHqLxvq3dl1P/taaPlI+oLZ31uFcybTOHX1QxDSUYFRYL cnH5LjSc1pSJ080KcCCJ8sitWXYLWpYqaDpg8yDmH7GzjHPi6wXAVx2AfPoYwOr/JJG/ edPA== X-Received: by 10.194.122.168 with SMTP id lt8mr148067wjb.76.1377272106998; Fri, 23 Aug 2013 08:35:06 -0700 (PDT) Received: from [10.10.50.70] (84.106.136.95.rev.vodafone.pt. [95.136.106.84]) by mx.google.com with ESMTPSA id iz19sm563173wic.9.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 Aug 2013 08:35:06 -0700 (PDT) Message-ID: <52178F28.9010108@gmail.com> Date: Fri, 23 Aug 2013 16:34:48 +0000 From: "Mike C." User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130813 Thunderbird/17.0.8 MIME-Version: 1.0 To: lambert@lambertfam.org, freebsd-jail@freebsd.org Subject: Re: connect -1 errno 1 Operation not permitted with specific user (nagios) References: <20130823145305.GZ99960@www.jail.lambertfam.org> In-Reply-To: <20130823145305.GZ99960@www.jail.lambertfam.org> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Aug 2013 15:35:09 -0000 Yes I know about > security.jail.allow_raw_sockets=1 Like I said I can do this with "root" just not with the user nagios, I guess If raw_sockets was set to 0 on the host, I would have problems with any user! ---- Putting this in /etc/rc.conf: jail_${JailName}_parameters="allow.raw_sockets=1" does not allow every jail access to raw sockets. There is an example in /etc/defaults/rc.conf. Now this is something I wasn't aware of this one... very nice and thanks for the tip on ez-jails, I'm indeed using ez-jails! Yes there any other setting that would forbid non root users to use raw sockets? Thanks