Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Oct 2010 23:27:45 -0400
From:      jhell <jhell@DataIX.net>
To:        Chuck Swiger <cswiger@mac.com>
Cc:        Harald Schmalzbauer <h.schmalzbauer@OmniLAN.de>, freebsd-stable@freebsd.org
Subject:   Re: POSIX file permission (understanding) problem?
Message-ID:  <4CCB90B1.90008@DataIX.net>
In-Reply-To: <88CBD70C-DA5A-4B3A-A703-7C0D6B189697@mac.com>
References:  <4CC5F489.50403@omnilan.de> <88CBD70C-DA5A-4B3A-A703-7C0D6B189697@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10/25/2010 18:28, Chuck Swiger wrote:
> chmod g+w testdir/ (as superuser, exit again)
>> 
> 
> ls -ld testdir
>> 
> 
> drwxrwx--x  2 nobody  intern  512 25 Okt 23:03 testdir
>> ls -l testdir
>> total 0
>> -rw-r-----  1 nobody  intern  0 25 Okt 23:03 testfile
> 
>> 	-> Now editing with vi (as user harry) changes the ownership of the
>> file and writing is successfull:
>> ls -l testdir/
>> total 2
>> -rw-r-----  1 harry  intern  5 25 Okt 23:10 testfile
> 
>   A file in a sticky directory may only be removed or renamed
>      by a user if the user has write permission for the directory and the user
>      is the owner of the file, the owner of the directory, or the super-user.


Obviously he is not the owner of the file, directory, nor the superuser
in this case so if I am missing something here please forgive me but I
still see a big problem with this....

-- 

 jhell,v



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CCB90B1.90008>