#7 cannot copy file, perms weirdness?

open
None
5
2002-08-16
2002-08-15
No

When i initially load this directory, I didn't have
write access to _log.php, I open up the file in vim.
After that, the file was chmodded on the remote end so
I could have read/write access, but now it's not
letting me overwrite the file. I'm using sshfs.

[gid@pimpbot:~/public/home/httpd/html] cp ~/_log.php .
cp: cannot create regular file `./_log.php': Operation
not permitted
[gid@pimpbot:~/public/home/httpd/html]

---

When I do an ls, I can see the new permissions on the
file, but lufs seems dead set on me not being able to
write to the file.

-rw-rw-rw- 1 gid gid 0 Aug 15 15:11
_log.php

after looking at that, it looks like it roasted the
file contents also

----

If this is not enough information to figure out what is
going on, I can try giving you full debug logs of the
problem like before.

My kern.log is showing this:
Aug 15 14:56:36 localhost kernel: (do_execute) -
sock_send failed!
Aug 15 14:56:49 localhost kernel: (do_execute) -
Ayeeee, didn't read a whole header!
Aug 15 14:56:50 localhost kernel: (do_execute) -
Ayeeee, didn't read a whole header!
Aug 15 14:56:50 localhost kernel: (lu_execute) - error
executing command!
Aug 15 14:56:50 localhost kernel: (lu_readdir) - could
not read directory content!
Aug 15 14:56:50 localhost kernel: (do_execute) -
sock_send failed!
Aug 15 15:00:31 localhost kernel: (do_execute) -
Ayeeee, didn't read a whole header!
Aug 15 15:00:32 localhost kernel: (do_execute) -
Ayeeee, didn't read a whole header!
Aug 15 15:00:32 localhost kernel: (lu_execute) - error
executing command!
Aug 15 15:00:32 localhost kernel: (lu_readdir) - could
not read directory content!
Aug 15 15:00:32 localhost kernel: (do_execute) -
sock_send failed!
Aug 15 15:02:27 localhost kernel: (lufs_notify_change)
- setattr failed!
Aug 15 15:02:35 localhost kernel: (lu_do_stat) - stat
failed!
Aug 15 15:02:35 localhost kernel: (lu_do_stat) - stat
failed!
Aug 15 15:02:35 localhost kernel: (lufs_notify_change)
- setattr failed!
Aug 15 15:02:38 localhost last message repeated 2 times
Aug 15 15:02:43 localhost kernel: (lu_do_stat) - stat
failed!
Aug 15 15:02:43 localhost kernel: (lu_do_stat) - stat
failed!
Aug 15 15:02:43 localhost kernel: (lufs_notify_change)
- setattr failed!
Aug 15 15:02:55 localhost kernel: (lu_do_stat) - stat
failed!
Aug 15 15:03:10 localhost kernel: (lu_do_stat) - stat
failed!
Aug 15 15:03:41 localhost kernel: (lufs_notify_change)
- setattr failed!
Aug 15 15:04:27 localhost kernel: (lufs_notify_change)
- setattr failed!
Aug 15 15:10:25 localhost kernel: (lufs_notify_change)
- setattr failed!

Discussion

  • Steve Grecni

    Steve Grecni - 2002-08-15

    Logged In: YES
    user_id=134032

    actually, I tried opening the file with vi on the client
    end, and then saving it out, and everytime I do it gets
    truncated to 0 length

    Yet I can sftp in and upload the file and overwrite it just
    fine.

    Aug 15 15:10:25 localhost kernel: (lufs_notify_change) -
    setattr failed!
    Aug 15 15:11:35 localhost kernel: (lufs_notify_change) -
    setattr failed!
    Aug 15 15:11:40 localhost kernel: (lu_do_stat) - stat failed!
    Aug 15 15:11:43 localhost last message repeated 2 times
    Aug 15 15:11:43 localhost kernel: (lufs_notify_change) -
    setattr failed!
    Aug 15 15:17:05 localhost kernel: (lu_do_stat) - stat failed!
    Aug 15 15:17:08 localhost last message repeated 2 times
    Aug 15 15:17:08 localhost kernel: (lufs_notify_change) -
    setattr failed!
    Aug 15 15:17:15 localhost kernel: (lu_do_stat) - stat failed!

     
  • Florin Malita

    Florin Malita - 2002-08-16
    • assigned_to: nobody --> mali
     
  • Steve Grecni

    Steve Grecni - 2002-10-12

    Logged In: YES
    user_id=134032

    I'm still gettinig this unfortunately in 0.7.0. file was
    truncated to 0 file length, and I can no longer modify the
    file :

    -rw-rw-rw- 1 bin bin 0 Oct 11 20:29 faq.php

    [gid@pimpbot:~/public/steem/cvsdev/poll] touch faq.php
    touch: setting times of `faq.php': Operation not permitted

    here are the file permissions on the remote side:
    -rw-rw-rw- 1 nobody nogroup 0 Oct 11 20:29 faq.php

    I put the file contents back when logged in via ssh on the
    remote server, and I still cannot access the file over sshfs

     
  • Timothee Besset

    Timothee Besset - 2002-11-26

    Logged In: YES
    user_id=2063

    you should use the fmask and dmask options
    and the own_fs option in 0.8.1
    I had similar problems which the recent versions completely
    settled

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks