From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Pawel Dziepak" Subject: Re: utimes() with vfat is problematic Date: Tue, 10 Jul 2007 12:18:17 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org, "Linux Kernel Mailing List" , hirofumi@mail.parknet.co.jp To: "Jan Engelhardt" Return-path: Received: from ug-out-1314.google.com ([66.249.92.174]:23426 "EHLO ug-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755858AbXGJKSU (ORCPT ); Tue, 10 Jul 2007 06:18:20 -0400 Received: by ug-out-1314.google.com with SMTP id j3so1293330ugf for ; Tue, 10 Jul 2007 03:18:18 -0700 (PDT) In-Reply-To: Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org 2007/7/10, Jan Engelhardt : > I am not sure how this could be dealt with besides passing -o quiet to > mount.vfat. Any ideas? The problem is in the function utimes. I have mounted vfat partition as a root, then changed permissions to 777 for all files. However, I wasn't be able to touch any file (changing date to the past) as a normal user. utimes() should check write permission instead of uid/ I didn't read 'touch' source code and it is probably caused by it's procedures that I was able to change modification date to the current date. Single UNIX Specification says crealy that to do utimes on a file user have to had write permissions or be a file owner. Pawel