From: Miklos S. <mi...@sz...> - 2006-03-14 09:37:05
|
> I'm sure I'm doing something really dumb because this is a simple > problem, yet I cannot find anything on any lists. > > When I try to copy a read only file across a sshfs mount, I get a > permission denied error. This occurs even when using the force > option of cp: > > neptune$ sshfs waytrans@bwrwbrs1: ~/rem/mbooka/ > neptune$ ls -ln rw ro > 8 -r--r--r-- 1 507 413 97 2006-03-14 10:38 ro > 8 -rw-rw-r-- 1 507 413 97 2006-03-14 10:38 rw > neptune$ cp -f rw ro rem/mbooka/accounts/ > cp: cannot create regular file `rem/mbooka/accounts/ro': > Permission denied > neptune$ ls -ln rem/mbooka/accounts/r? > 0 -r--r--r-- 1 504 504 0 2006-03-14 10:46 rem/mbooka/accounts/ro > 8 -rw-rw-r-- 1 504 504 97 2006-03-14 10:46 rem/mbooka/accounts/rw > > Seems cp refuses to overwrite a readonly file? > > Would appreciate any help with this. I'm using sshfs-fuse-1.6 and > fuse-2.5.2, although the kernel part of fuse is whatever comes > standard with linux 2.6.14 / fedora core 4. You need to have at least 2.6.15 for this to work correctly. Miklos |