1 |
On 03/21/2018 11:36 AM, Neil Bothwick wrote:[snip] |
2 |
>> rsync -av --delete /Monday/Images/O/OSMANFathia2946/ |
3 |
>> thelma@10.10.0.6:/Monday/Images/O/OSMANFathia2946/ sending incremental |
4 |
>> file list rsync: failed to set times on |
5 |
>> "/Monday/Images/O/OSMANFathia2946/.": Operation not permitted (1) ./ |
6 |
>> OSMANFathia6463.pdf |
7 |
> |
8 |
> ...you are writing to the destination computer as thelma. You need to use |
9 |
> a user that can write to the destination directories. |
10 |
The reason I'm running backup script as user as I mount windows-7 |
11 |
partition to backup some file and I use "--options" with mount command. |
12 |
|
13 |
So when directory is mounted the owner is root. |
14 |
When I try to run this command as user: |
15 |
|
16 |
mount -t cifs gid=1001,uid=1001 -o username=xxxx,password=xxxx |
17 |
//10.10.0.9/Images /home/thelma/mnt/Images |
18 |
mount: only root can use "--options" option |
19 |
|
20 |
Is there a way to mount windows-7 partition as user? Windows-7 runs in |
21 |
VirtualBox |
22 |
This way the owner of the mounted directory/files would be thelma:thelma |
23 |
(not root:root) |
24 |
|
25 |
>> Destination dir: |
26 |
>> ll Monday/Images/O/OSMANFathia2946/ |
27 |
>> total 252 |
28 |
>> -rwxr-xr-x 1 root root 44943 Jul 22 2013 OSMANFathia1567.pdf |
29 |
>> -rwxr-xr-x 1 root root 42493 Jul 30 2013 OSMANFathia1601.pdf |
30 |
>> -rwxr-xr-x 1 root root 49640 Nov 7 2014 OSMANFathia2822.pdf |
31 |
>> -rwxr-xr-x 1 root root 56028 Mar 11 2015 OSMANFathia3268.pdf |
32 |
>> -rwxr-xr-x 1 root root 54155 Oct 19 2015 OSMANFathia3862.pdf |
33 |
> |
34 |
> This shows the permissions of files within the directory but not the |
35 |
> directory itself, use ls -ld |
36 |
ls -al -id /home/thelma/Monday/Images/O/OSMANFathia2946/ |
37 |
34210401 drwxr-xr-x 2 root root 4096 Mar 21 11:22 |
38 |
/home/thelma/Monday/Images/O/OSMANFathia2946/ |
39 |
|
40 |
When I change recursively: chown thelma:thelma -r directory; I was able |
41 |
to copy all the file correctly. |
42 |
|
43 |
-- |
44 |
Thelma |