rsync error…

Johan Penneryd johan.penn at gmail.com
Tue Jan 6 14:39:46 UTC 2009


Johnny Rosenberg skrev:
>
> 2009/1/6 Johnny Rosenberg <gurus.knugum at gmail.com 
> <mailto:gurus.knugum at gmail.com>>
>
>     I've done some more experimenting now and I found the answer to my
>     question. The problem was that Nautilus doesn't tell me the whole
>     truth. Nautilus only show the rights and owners for the
>     destination file!
>
>     When I used the virtual console instead, the information was quite
>     different:
>
>     The original file:
>     -rw-r--r-- 1 guraknugen guraknugen 34k 2008-12-18 19:26
>     Tangentbordslayout Ubuntu 20080217.ods
>
>     The link located in a folder on my USB HDD:
>     lrwxrwxrwx 1 guraknugen guraknugen 101 2008-06-01 00:37
>     Tangentbordslayout Ubuntu 20080217.ods ->
>     /home/guraknugen/Eget/Kontor/Blandat/Tangentbordskonfiguration/Tangentbordslayout
>     Ubuntu 20080217.ods
>
>     The link located in a folder, not the same as the original file,
>     on my internal HDD:
>     lrwxrwxrwx 1 root root 101 2008-06-01 00:37 Tangentbordslayout
>     Ubuntu 20080217.ods ->
>     /home/guraknugen/Eget/Kontor/Blandat/Tangentbordskonfiguration/Tangentbordslayout
>     Ubuntu 20080217.ods
>
>     So you were right, the owner of the link at the destination folder
>     was root, not guraknugen (me), but Nautilus hided that information
>     for me! Maybe there is a setting somewhere in Nautilus that
>     prevents that behaviour.
>
>     Now a follow up question: When using chown (even as root), the
>     owner of the link doesn't change, so it seems like the change is
>     applied to the target file rather than on the link itself. Is
>     there a way to do this or is it better to just remove the link and
>     create a new one? The reason that I would change the current link
>     rather than to create a new one would probably be to learn how to
>     do it.
>
>     I'll taka a closer look at the man pages now. Thanks for your help!
>
>     Johnny Rosenberg
>
>
> It wasn't too hard:
> sudo chown -h guraknugen:guraknugen Tangentbordslayout\ Ubuntu\ 
> 20080217.ods
> Johnny Rosenberg 
Fan den som ger sig!




More information about the ubuntu-users mailing list