jail file and directory permissions

David Samms dsamms at nw-ds.com
Mon Apr 12 13:35:09 UTC 2010


On 04/12/10 05:22, Erich Jenkins, Fuujin Group Ltd wrote:
> Kalle Møller wrote:
> <snip>
>> Could you please make a command list on what your doing and with
>> output.. like this ...
>>
>> --
>>
>> Med Venlig Hilsen
>>
>> Kalle R. Møller
> </snip>
>
> 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



More information about the freebsd-jail mailing list