Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 May 2000 16:00:40 -0400
From:      Randall Hopper <aa8vb@nc.rr.com>
To:        stable@freebsd.org
Subject:   cp fails to do utimes() (??)
Message-ID:  <20000531160040.A1299@nc.rr.com>

next in thread | raw e-mail | index | archive | help
Why does cp fail to do utimes on a FAT partition when I'm a normal user
but it succeeds when I'm root?

I can write the file as either user, but in the non-root case the resulting
file modification time is wrong.


   > cp -p ~/xcpy2253.zip .
   cp: utimes: ./xcpy2253.zip: Operation not permitted
   cp: chown: ./xcpy2253.zip: Operation not permitted

   > su
   Password:
   # cp -p ~/xcpy2253.zip .
   cp: chown: ./xcpy2253.zip: Invalid argument


Is there a way I can get it to succeed with utimes when cp is running as a
normal user?

Thanks,

Randall

-- 
Randall Hopper
aa8vb@nc.rr.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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