From owner-freebsd-jail@FreeBSD.ORG Mon Apr 12 13:35:09 2010 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 754501065672 for ; Mon, 12 Apr 2010 13:35:09 +0000 (UTC) (envelope-from gofj-freebsd-jail@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id F33FE8FC2A for ; Mon, 12 Apr 2010 13:35:08 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1O1JYZ-0005f5-BE for freebsd-jail@freebsd.org; Mon, 12 Apr 2010 15:20:03 +0200 Received: from cpe-24-210-63-182.columbus.res.rr.com ([24.210.63.182]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Apr 2010 15:20:03 +0200 Received: from dsamms by cpe-24-210-63-182.columbus.res.rr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Apr 2010 15:20:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-jail@freebsd.org From: David Samms Date: Mon, 12 Apr 2010 08:57:58 -0400 Lines: 64 Message-ID: References: <4BC2C578.9080108@fuujingroup.com> <4BC2E662.1050007@fuujingroup.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cpe-24-210-63-182.columbus.res.rr.com User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.9) Gecko/20100331 Thunderbird/3.0.4 In-Reply-To: <4BC2E662.1050007@fuujingroup.com> Cc: freebsd-bugs@freebsd.org Subject: Re: jail file and directory permissions X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2010 13:35:09 -0000 On 04/12/10 05:22, Erich Jenkins, Fuujin Group Ltd wrote: > Kalle Møller wrote: > >> Could you please make a command list on what your doing and with >> output.. like this ... >> >> -- >> >> Med Venlig Hilsen >> >> Kalle R. Møller > > > Here's what I'm seeing: > > jail0495> pwd > /usr/home/testuser > jail0495> ll > -rw------- 1 testuser rmtuser 1957 Apr 12 02:22 .history > drwxr--r-- 2 root wheel 1024 Apr 12 02:22 testdir > jail0495> users > testuser > jail0495> cd testdir > jail0495> ll > -rw-r--r-- 2 root wheel 4096 Apr 12 02:24 textfile.txt > jail0495> rm textfile.txt > override rw-r--r-- root/wheel for textfile.txt ? y > jail0495> ll > total 0 > jail0495> > > As you can see, this is of great concern. > > > Erich M. Jenkins > Fuujin Group Limited > I am running 7.2-RELEASE-p5 amd64 and can not duplicate your problem. Here is what I typed. As root... -------------------------------------------------------- nw-ds# cd ~nw nw-ds# mkdir test nw-ds# touch test/file nw-ds# ll | grep test drwxr-xr-x 2 root nw 512 Apr 12 08:56 test nw-ds# ll test/* -rw-r--r-- 1 root nw 0 Apr 12 08:56 test/file As normal user "nw" -------------------------------------------------------- %cd ~/test %ll total 0 -rw-r--r-- 1 root nw 0 Apr 12 08:56 file %rm file override rw-r--r-- root/nw for file? y rm: file: Permission denied %ll total 0 -rw-r--r-- 1 root nw 0 Apr 12 08:56 file