login
Header Space

 
 

Re: utimes() with vfat is problematic

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jan Engelhardt <jengelh@...>
Cc: <linux-fsdevel@...>, Linux Kernel Mailing List <linux-kernel@...>, <hirofumi@...>
Date: Tuesday, July 10, 2007 - 6:18 am

2007/7/10, Jan Engelhardt <jengelh@computergmbh.de>:

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
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
utimes() with vfat is problematic, Jan Engelhardt, (Tue Jul 10, 5:47 am)
Re: utimes() with vfat is problematic, Pawel Dziepak, (Tue Jul 10, 6:18 am)
Re: utimes() with vfat is problematic, Jan Engelhardt, (Tue Jul 10, 12:38 pm)
Re: utimes() with vfat is problematic, Pawel Dziepak, (Tue Jul 10, 12:54 pm)
speck-geostationary