On 05/03/13 11:57, Chris Green wrote:
On Tue, Mar 05, 2013 at 10:37:54AM +0000, Chris Walker wrote: [snip]
Ok. So if I then list, for example, the directory shown below on the Seagate drive, it gives me this (just a couple of files shown) :-
ls -l /media/Seagate\ Backup\ Plus\ Drive/Epox_Share/Drive_C/Library/ total 12465 -rw------- 1 chris cdrom 936885 Feb 28 16:08 5_Fonts.zip -rw------- 1 chris cdrom 23552 Feb 28 16:08 aefdisk.zip
[snip]
Simple, because they haven't got the group write (or any other) permission set.
In the -rw------- flags you see before the file names the first - indicates various odd flags, then there are three groups of three which can be set to r, w, and x for read, write and execute permission respectively. The first three are for Owner, the next three are for Group and the last three are for Anyone/world. So on the above files you have only Read and Write permission for the owner. The files have group cdrom but no permissions for that group.
Ah.
So if I try and reset the permissions on those files by using chmod 777 5_Fonts.zip, nothing happens. I've tried it using my userid and also using sudo but with the same result. Where am I going wrong? Do I need to set permissions on all the parent folders for that file too?
The next question occurs to me though, how did I manage to screw this up as I imagine that the files on the NAS weren't like this before I copied them. So was it my incorrect use of the rsync command? If so, then I guess I'm likely to have similar problems when the files are back on the NAS.