Can't append to a file using ">>" on the command line

Hi all

New poster here, but experienced linux user.

I’ve enabled ssh, and set up a new user, called “fred” with a private share.

And now I’ve run into this problem.

myownmachine$ ssh fred@bookworld
fred@bookworld's password: 

~ $ pwd
/shares
~ $ cd fred
~/fred $ echo "hello" > temp.tmp
~/fred $ cat temp.tmp
hello
~/fred $ ls -l
-rwxrwxrwx 1 fred jewab 6 Oct 18 19:46 temp.tmp
~/fred $ echo "hello" >> temp.tmp
-sh: cannot create temp.tmp: Permission denied

And that’s just silly.  There’s no reason why that should not work.  If I can create the file (and overwrite it) I should be able to append to it.

I’ve also written a little perl script to do the same - and I get the same problem.

Don’t get the problem as root.

I DO get the problem on the Public drive.

I don’t get it in the /tmp directory.

Can anyone help?  Can someone at least show me that this does work on a “white light” mybook world edition?

Thanks.

Would the fact that the public folder is used byTwonky have anything to do with that?

Fixed !

This is the solution, in case anyone else falls into this trap.

http://mybookworld.wikidot.com/forum/t-275982/can-t-append-to-a-file

1 Like