[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

sshfs and sed -i



On lenny, I have mounted a remote directory via sshfs:
$ sshfs user@remote:/path/to/dir dir

Within dir I can touch, cp, mv or edit files at will (as expected by the
permissions).

$ touch testfile
$ nano testfile
$ mv testfile testfilea
$ cp testfilea testfilec
$ sed s/foo/bar/ testfilec
baz baz bar bar
bar jalsdk asiduf alhfd a

$ sed -i s/foo/bar/ testfilec
sed: cannot rename ./sedz1MMtd: Operation not permitted

However, 'sed -i' leads to above error message. What am I doing wrong here?

The same sed command works fine, if I copy the file to a local directory.

Thanks for any help or pointers!

Johannes

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: