On Tue, Mar 05, 2013 at 12:04:58PM +0000, Chris Walker wrote:
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?
Can you show us what exactly happens please. Is there any error message or what? Do you cd to the directory and then run the chmod or are you doing something like:-
chmod 777 /media/Seagate\ Backup\ Plus\ Drive/Epox_Share/Drive_C/Library/
... the other possibility is that there's something in the way the files are mounted that's preventing you from changing their permissions (and, similarly, preventing you from writing them). If you type 'mount' what does it report?
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.
The files listed above *are* on the NAS aren't they? It looks like it from the directory path - or am I very confused (quite likely)?