[Klug-general] Permissions problem

George Prowse george.prowse at gmail.com
Wed Dec 14 12:34:49 UTC 2011


On 14/12/2011 11:38, Michael E. Rentell wrote:
> Good morning all,
> Is anyone able to tell me what I've done wrong this time?!
>
> I use grsync to backup the entire contents of my /home/me/ directory on
> my main desktop PC to a similar one called /home/me/Backups on my second
> desktop. I do this, over the domestic wired ethernet, by mounting the
> remote Backups directory under /mnt/.. and then using grsync to copy the
> stuff over.
>
> This used to work but now I am not sure. There are, of course, thousands
> of files and they whip up quite quickly but literally dozens of them
> appear in red and one of the ones I have been able to read says:
>
> rsync:recv_generator:mkdir "directory-details" failed. Permission
> denied(13)
>
> I have changed the permissions on the remote machine with
>
> chown -R root:root /home/Backups
>
> and everything in it went to root. So I then logged on to the second
> machine as root (it's PCLinuxOS) and let it run like that. And of course
> the grsync from my main machine runs under sudo because it is Ubuntu.
>
> I think new files are being delivered to the remote machine, but it does
> not look like any new directories are being created or their contents.
>
> All ideas would be very welcome at this time (consultant speak!).
>
> Ta.
>
> MikeR

I wouldn't ever chown root to another user, just mount it in fstab with:

rw,user,auto,umask=0000

That's the easiest (and least secure) way. A more secure way is pass the 
uid for a user and add that id in fstab.

George



More information about the Kent mailing list