From 8ecb38168c7cbdb4b41ff629a7d9ec7fee8940c1 Mon Sep 17 00:00:00 2001 From: yarikoptic Date: Wed, 13 Sep 2017 14:25:16 +0000 Subject: initial finding about incorrect permissions ignored by fsck --- ...ct__47__fix_some_key_directories_correctly.mdwn | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 doc/bugs/fsck_does_not_detect__47__fix_some_key_directories_correctly.mdwn diff --git a/doc/bugs/fsck_does_not_detect__47__fix_some_key_directories_correctly.mdwn b/doc/bugs/fsck_does_not_detect__47__fix_some_key_directories_correctly.mdwn new file mode 100644 index 000000000..8ca57bc48 --- /dev/null +++ b/doc/bugs/fsck_does_not_detect__47__fix_some_key_directories_correctly.mdwn @@ -0,0 +1,43 @@ +### Please describe the problem. + +ATM I am chasing a problem that somehow one key "mutated" although I do not remember doing anything malicious, file seems to be also not writable (itself). +So I decided to fsck, and only spotted a problem when some warnings started to appear that I am not the owner of the (key)file. So I looked inside and found +that all key dirs are writeable BUT annex complains only about the ones where it can't change permissions since they don't belong to me + + +### What version of git-annex are you using? On what operating system? + +6.20170815+gitg22da64d0f-1~ndall+1 + +### Please provide any additional information below. + +[[!format sh """ +$> for f in sub00{1,3}/anatomy/highres001.nii.gz; do ls -ld $(realpath $f | xargs dirname ); git annex fsck $f; done +drwxrws--- 2 yoh famface 3 May 12 15:15 /data/famface/openfmri/data/.git/annex/objects/08/V3/SHA256E-s6498717--b850ac82ec9db2d399962609e9381d9c2bdf1f426012500b7005b173ea4d9102.nii.gz/ +fsck sub001/anatomy/highres001.nii.gz (checksum...) ok +(recording state in git...) +drwxrwsr-x 2 contematto famface 3 Jul 13 2015 /data/famface/openfmri/data/.git/annex/objects/x2/xX/SHA256E-s6592524--dccba651dc4cd104826a05a2efb6a257b39ca2d8b44d215027250221729f9434.nii.gz/ +fsck sub003/anatomy/highres001.nii.gz + ** Unable to set correct write mode for .git/annex/objects/x2/xX/SHA256E-s6592524--dccba651dc4cd104826a05a2efb6a257b39ca2d8b44d215027250221729f9434.nii.gz/SHA256E-s6592524--dccba651dc4cd104826a05a2efb6a257b39ca2d8b44d215027250221729f9434.nii.gz ; perhaps you don't own that file +(checksum...) ok +(recording state in git...) + +# thought to see may be annex would complain then!? +$> chmod a+rwx /data/famface/openfmri/data/.git/annex/objects/08/V3/SHA256E-s6498717--b850ac82ec9db2d399962609e9381d9c2bdf1f426012500b7005b173ea4d9102.nii.gz/ + +$> for f in sub00{1,3}/anatomy/highres001.nii.gz; do ls -ld $(realpath $f | xargs dirname ); git annex fsck $f; done +drwxrwsrwx 2 yoh famface 3 May 12 15:15 /data/famface/openfmri/data/.git/annex/objects/08/V3/SHA256E-s6498717--b850ac82ec9db2d399962609e9381d9c2bdf1f426012500b7005b173ea4d9102.nii.gz/ +fsck sub001/anatomy/highres001.nii.gz (checksum...) ok +(recording state in git...) +drwxrwsr-x 2 contematto famface 3 Jul 13 2015 /data/famface/openfmri/data/.git/annex/objects/x2/xX/SHA256E-s6592524--dccba651dc4cd104826a05a2efb6a257b39ca2d8b44d215027250221729f9434.nii.gz/ +fsck sub003/anatomy/highres001.nii.gz + ** Unable to set correct write mode for .git/annex/objects/x2/xX/SHA256E-s6592524--dccba651dc4cd104826a05a2efb6a257b39ca2d8b44d215027250221729f9434.nii.gz/SHA256E-s6592524--dccba651dc4cd104826a05a2efb6a257b39ca2d8b44d215027250221729f9434.nii.gz ; perhaps you don't own that file +(checksum...) ok +(recording state in git...) + +"""]] + +btw -- the same wrong permissions on the upper hash directories, and they do not get fixed/complained about at all + + +[[!meta author=yoh]] -- cgit v1.2.3 From 722827482277ae3b4e6325e21f3f23c069a3899d Mon Sep 17 00:00:00 2001 From: yarikoptic Date: Wed, 13 Sep 2017 14:27:19 +0000 Subject: crossed away comment on hash levels --- .../fsck_does_not_detect__47__fix_some_key_directories_correctly.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/bugs/fsck_does_not_detect__47__fix_some_key_directories_correctly.mdwn b/doc/bugs/fsck_does_not_detect__47__fix_some_key_directories_correctly.mdwn index 8ca57bc48..8d6e304e4 100644 --- a/doc/bugs/fsck_does_not_detect__47__fix_some_key_directories_correctly.mdwn +++ b/doc/bugs/fsck_does_not_detect__47__fix_some_key_directories_correctly.mdwn @@ -37,7 +37,7 @@ fsck sub003/anatomy/highres001.nii.gz """]] -btw -- the same wrong permissions on the upper hash directories, and they do not get fixed/complained about at all +~~btw -- the same wrong permissions on the upper hash directories, and they do not get fixed/complained about at all (that is ok)~~ [[!meta author=yoh]] -- cgit v1.2.3 From d205ed33a8893923802dc526fdef5cf2e2623336 Mon Sep 17 00:00:00 2001 From: yarikoptic Date: Wed, 13 Sep 2017 14:32:57 +0000 Subject: Added a comment --- .../comment_1_1d627cb46d9ecdf0b526a9c8e9764011._comment | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 doc/bugs/fsck_does_not_detect__47__fix_some_key_directories_correctly/comment_1_1d627cb46d9ecdf0b526a9c8e9764011._comment diff --git a/doc/bugs/fsck_does_not_detect__47__fix_some_key_directories_correctly/comment_1_1d627cb46d9ecdf0b526a9c8e9764011._comment b/doc/bugs/fsck_does_not_detect__47__fix_some_key_directories_correctly/comment_1_1d627cb46d9ecdf0b526a9c8e9764011._comment new file mode 100644 index 000000000..92fbb3ba5 --- /dev/null +++ b/doc/bugs/fsck_does_not_detect__47__fix_some_key_directories_correctly/comment_1_1d627cb46d9ecdf0b526a9c8e9764011._comment @@ -0,0 +1,8 @@ +[[!comment format=mdwn + username="yarikoptic" + avatar="http://cdn.libravatar.org/avatar/f11e9c84cb18d26a1748c33b48c924b4" + subject="comment 1" + date="2017-09-13T14:32:57Z" + content=""" +also note, that even though I am not the owner, I should have sufficient privileges to modify (member of the group(s))! +"""]] -- cgit v1.2.3