{"action":"created","issue":{"url":"https://api.github.com/repos/lavv17/lftp/issues/119","repository_url":"https://api.github.com/repos/lavv17/lftp","labels_url":"https://api.github.com/repos/lavv17/lftp/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/lavv17/lftp/issues/119/comments","events_url":"https://api.github.com/repos/lavv17/lftp/issues/119/events","html_url":"https://github.com/lavv17/lftp/issues/119","id":54669652,"number":119,"title":"default permissions for folders and files","user":{"login":"zdenekgebauer","id":6378486,"avatar_url":"https://avatars.githubusercontent.com/u/6378486?v=3","gravatar_id":"","url":"https://api.github.com/users/zdenekgebauer","html_url":"https://github.com/zdenekgebauer","followers_url":"https://api.github.com/users/zdenekgebauer/followers","following_url":"https://api.github.com/users/zdenekgebauer/following{/other_user}","gists_url":"https://api.github.com/users/zdenekgebauer/gists{/gist_id}","starred_url":"https://api.github.com/users/zdenekgebauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdenekgebauer/subscriptions","organizations_url":"https://api.github.com/users/zdenekgebauer/orgs","repos_url":"https://api.github.com/users/zdenekgebauer/repos","events_url":"https://api.github.com/users/zdenekgebauer/events{/privacy}","received_events_url":"https://api.github.com/users/zdenekgebauer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2015-01-17T18:05:45Z","updated_at":"2016-12-07T05:35:45Z","closed_at":null,"body":"I missing configuration of permissions for newly uploaded files and folders separately, because there is a problem to transfer permissions from windows to linux server . For example something like this:\n\nset ftp:default-file-perm=0644\nset ftp:default-folder-perm=0755\nopen ftp://user:password@site\nmirror -R\nquit\n"},"comment":{"url":"https://api.github.com/repos/lavv17/lftp/issues/comments/265360389","html_url":"https://github.com/lavv17/lftp/issues/119#issuecomment-265360389","issue_url":"https://api.github.com/repos/lavv17/lftp/issues/119","id":265360389,"user":{"login":"lavv17","id":965468,"avatar_url":"https://avatars.githubusercontent.com/u/965468?v=3","gravatar_id":"","url":"https://api.github.com/users/lavv17","html_url":"https://github.com/lavv17","followers_url":"https://api.github.com/users/lavv17/followers","following_url":"https://api.github.com/users/lavv17/following{/other_user}","gists_url":"https://api.github.com/users/lavv17/gists{/gist_id}","starred_url":"https://api.github.com/users/lavv17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lavv17/subscriptions","organizations_url":"https://api.github.com/users/lavv17/orgs","repos_url":"https://api.github.com/users/lavv17/repos","events_url":"https://api.github.com/users/lavv17/events{/privacy}","received_events_url":"https://api.github.com/users/lavv17/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T05:35:44Z","updated_at":"2016-12-07T05:35:44Z","body":"What happens if you do \"site umask 022\" before upload?\n\nср, 7 дек. 2016, 6:58 Jan Tojnar <notifications@github.com>:\n\n> Yes. That seems to set 770 instead of 750. I need the others’ read\n> permission to be enabled, though.\n>\n> On 7 December 2016 at 04:20, Alexander V. Lukyanov <\n> notifications@github.com\n> > wrote:\n>\n> > Have you tried --no-perms option?\n> >\n> > пн, 5 дек. 2016, 20:06 Jan Tojnar <notifications@github.com>:\n> >\n> > > I use this hack to correct the permissions of uploaded files:\n> > >\n> > > #!/bin/bash\n> > > FTPURL=\"ftp://user@host\"\n> > > LCD=\"$(readlink -f \"$(dirname \"$0\")\")/public\"if [ \"$(expr substr\n> > \"$(uname -s)\" 1 5)\" == \"MINGW\" ]; then\n> > > LCD=\"/cygdrive$LCD\"fi\n> > > RCD=\"/\"\n> > > lftp -c \"set ftp:list-options -a;set cmd:fail-exit yes;open\n> > '$FTPURL';lcd '$LCD';cd '$RCD';mirror --reverse --verbose --only-newer\n> > --ignore-time\" | python -c \"import fileinputimport sysimport\n> reprint(\\\"open\n> > '$FTPURL';\\\")for l in fileinput.input(): print(l, file=sys.stderr,\n> end='')\n> > f = re.search(\\\"Transferring file \\`(.+)'\\\", l) d = re.search(\\\"Making\n> > directory \\`(.+)\\\\'\\\", l) if f: print(\\\"Changing permissions of \\`\\\" +\n> > f.group(1) + \\\"' to 644\\\", file=sys.stderr) print(\\\"chmod 644 '\\\" +\n> > f.group(1) + \\\"';\\\") elif d: print(\\\"Changing permissions of \\`\\\" +\n> > d.group(1) + \\\"' to 755\\\", file=sys.stderr) print(\\\"chmod 755 '\\\" +\n> > d.group(1) + \\\"';\\\")\" | lftp\n> > >\n> > > —\n> > > You are receiving this because you are subscribed to this thread.\n> > > Reply to this email directly, view it on GitHub\n> > > <https://github.com/lavv17/lftp/issues/119#issuecomment-264912750>, or\n> > mute\n> > > the thread\n> > > <https://github.com/notifications/unsubscribe-auth/\n> > AA67XE9jhPfEOfiNULJmTt3YrZG37JI6ks5rFESzgaJpZM4DTvis>\n> > > .\n> > >\n> >\n> > —\n> > You are receiving this because you commented.\n> > Reply to this email directly, view it on GitHub\n> > <https://github.com/lavv17/lftp/issues/119#issuecomment-265344724>, or\n> mute\n> > the thread\n> > <\n> https://github.com/notifications/unsubscribe-auth/AArCY9jvJ3qopnpc3SuRMpDIl6xFCvEoks5rFiX6gaJpZM4DTvis\n> >\n> > .\n> >\n>\n> —\n> You are receiving this because you commented.\n>\n>\n> Reply to this email directly, view it on GitHub\n> <https://github.com/lavv17/lftp/issues/119#issuecomment-265349360>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe-auth/AA67XCi3IYCC1Z6K-YlsjMmPRJOrmC9Tks5rFi72gaJpZM4DTvis>\n> .\n>\n"}}
{"actor":{"display_login":"lavv17"}}