On Fri, Nov 05, 2021 at 06:24:38PM +0100, deloptes wrote: > I now used strace > writev(2, [{iov_base="obexd[23074]: PUT(0x2), <unknown"..., iov_len=39}, > {iov_base="\n", iov_len=1}], 2) = 40 > sendto(3, "<31>Nov 5 18:04:33 obexd[23074]"..., 59, MSG_NOSIGNAL, NULL, 0) > = 59 > openat(AT_FDCWD, "/home/user/Downloads/20211105_090338.jpg", O_WRONLY > O_CREAT|O_TRUNC, 0600) = 8
So... the open actually *worked*. > fstat(8, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0 > lstat("/home", {st_mode=S_IFLNK|0777, st_size=10, ...}) = 0 > readlink("/home", "home-lisa/", 4095) = 10 > lstat("/home-lisa", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 > lstat("/home-lisa/user", {st_mode=S_IFDIR|0755, st_size=20480, ...}) = 0 > lstat("/home-lisa/user/Downloads", {st_mode=S_IFDIR|0700, > st_size=4096, ...}) = 0 > lstat("/home-lisa/user/Downloads/20211105_090338.jpg", {st_mode=S_IFREG > 0600, st_size=0, ...}) = 0 > close(8) = 0 > getpid() = 23074 > writev(2, [{iov_base="obexd[23074]: open(/home/user"..., iov_len=92}, > {iov_base="\n", iov_len=1}], 2) = 93 > sendto(3, "<27>Nov 5 18:04:33 obexd[23074]"..., 112, MSG_NOSIGNAL, NULL, 0) > = 112 > getpid() = 23074 > writev(2, [{iov_base="obexd[23074]: PUT(0x2), Forbidde"..., iov_len=39}, > {iov_base="\n", iov_len=1}], 2) = 40 But then obexd claimed the open *failed*. > so you see it resolves the link, but then fails with Forbidden. If obexd doesn't like the path that you've given it, due to too-loose permissions or whatever, it ought to give a clearer message to indicate this. In the absence of a useful error message, you could either source-dive into obexd and try to figure out what it's actually doing... or you could *guess* (as I am currently guessing) that it's complaining about too-loose permissions, and then look at all the permissions of all the subdirectories along the /home-lisa/user/Downloads path, and see if one of them is group-writable or world-writable. If so, fix it, and see if that makes the problem go away.