{"action":"created","issue":{"url":"https://api.github.com/repos/restic/restic/issues/561","repository_url":"https://api.github.com/repos/restic/restic","labels_url":"https://api.github.com/repos/restic/restic/issues/561/labels{/name}","comments_url":"https://api.github.com/repos/restic/restic/issues/561/comments","events_url":"https://api.github.com/repos/restic/restic/issues/561/events","html_url":"https://github.com/restic/restic/issues/561","id":169093398,"number":561,"title":"Question about restore behavior in Linux","user":{"login":"Animedium","id":20642819,"avatar_url":"https://avatars.githubusercontent.com/u/20642819?v=3","gravatar_id":"","url":"https://api.github.com/users/Animedium","html_url":"https://github.com/Animedium","followers_url":"https://api.github.com/users/Animedium/followers","following_url":"https://api.github.com/users/Animedium/following{/other_user}","gists_url":"https://api.github.com/users/Animedium/gists{/gist_id}","starred_url":"https://api.github.com/users/Animedium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Animedium/subscriptions","organizations_url":"https://api.github.com/users/Animedium/orgs","repos_url":"https://api.github.com/users/Animedium/repos","events_url":"https://api.github.com/users/Animedium/events{/privacy}","received_events_url":"https://api.github.com/users/Animedium/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-03T09:59:28Z","updated_at":"2016-08-03T10:44:50Z","closed_at":null,"body":"Hi,\r\n\r\nI was testing backup and restore with different permission options to file and I found restore option not consistent with Linux behavior.\r\n\r\nSo case is that 'User B' is owner of the file and 'User A' is making backup and restore with restic.\r\nFile have permissions set to 666 so 'User A' can backup this file with no problem.\r\n\r\nProblems start with restore. As Linux user 'User A' can do various operations on that file and he can even remove it.\r\nBut during restore file cannot be replaced as long as user that make restore is not owner of the file.\r\n\r\nHere is table with tests results\r\n```\r\n- -w- --- ---\tUser A : User A \twill be restored\r\n- --- -w- ---\tUser A : User A \twill not be restored\r\n- --- --- -w-\tUser A : User A \twill not be restored\r\n- -w- --- ---\tUser A : User B \twill be restored\r\n- -w- -w- -w-\tUser B : User A \twill not be restored ?\r\n- -w- -w- -w-\tUser B : User B \twill not be restored ?\r\n```\r\n\r\n\r\nI would like to ask if this was designed that way or it should not work like that?"},"comment":{"url":"https://api.github.com/repos/restic/restic/issues/comments/237204404","html_url":"https://github.com/restic/restic/issues/561#issuecomment-237204404","issue_url":"https://api.github.com/repos/restic/restic/issues/561","id":237204404,"user":{"login":"fd0","id":123276,"avatar_url":"https://avatars.githubusercontent.com/u/123276?v=3","gravatar_id":"","url":"https://api.github.com/users/fd0","html_url":"https://github.com/fd0","followers_url":"https://api.github.com/users/fd0/followers","following_url":"https://api.github.com/users/fd0/following{/other_user}","gists_url":"https://api.github.com/users/fd0/gists{/gist_id}","starred_url":"https://api.github.com/users/fd0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fd0/subscriptions","organizations_url":"https://api.github.com/users/fd0/orgs","repos_url":"https://api.github.com/users/fd0/repos","events_url":"https://api.github.com/users/fd0/events{/privacy}","received_events_url":"https://api.github.com/users/fd0/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T10:44:50Z","updated_at":"2016-08-03T10:44:50Z","body":"Hi, thanks for opening an issue. I'm not sure I understood you correctly: You're testing restoring of file modes when the owner of the file is a different user than the  one executing the backup, is that correct?\r\n\r\nCould you please write up a few commands that show this behavior?"}}
{"actor":{"display_login":"fd0"}}