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

Re: sshfs and sed -i



On Mon, Sep 08, 2008 at 05:27:18PM +0200, Johannes Wiedersich wrote:
> 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!

What does "ls -l testfilec" show you about the permissions and
ownership on the file?

Regards
Johann



-- 
Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch

     "Submit yourselves therefore to God. Resist the devil, 
      and he will flee from you."        James 4:7 


Reply to: