Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #241897
| From | Greg Wooledge <greg@wooledge.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Trying to setup obexd but Operation not permitted |
| Date | 2021-11-05 18:40 +0100 |
| Message-ID | <Dgbm2-4et-13@gated-at.bofh.it> (permalink) |
| References | (5 earlier) <Dg7Ls-23D-13@gated-at.bofh.it> <Dg90S-2Yb-9@gated-at.bofh.it> <Dg9Nf-3ed-1@gated-at.bofh.it> <Dg9WV-3wS-1@gated-at.bofh.it> <Dgbcl-4bt-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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.
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Trying to setup obexd but Operation not permitted deloptes <emanoil.kotsev@deloptes.org> - 2021-11-04 17:50 +0100
Re: Trying to setup obexd but Operation not permitted Greg Wooledge <greg@wooledge.org> - 2021-11-04 18:10 +0100
Re: Trying to setup obexd but Operation not permitted deloptes <emanoil.kotsev@deloptes.org> - 2021-11-04 19:40 +0100
Re: Trying to setup obexd but Operation not permitted Burhan Hanoglu <burhanoglu@gmail.com> - 2021-11-04 20:50 +0100
Re: Trying to setup obexd but Operation not permitted deloptes <emanoil.kotsev@deloptes.org> - 2021-11-05 09:50 +0100
Re: Trying to setup obexd but Operation not permitted Greg Wooledge <greg@wooledge.org> - 2021-11-05 12:30 +0100
Re: Trying to setup obexd but Operation not permitted deloptes <emanoil.kotsev@deloptes.org> - 2021-11-05 14:50 +0100
Re: Trying to setup obexd but Operation not permitted Greg Wooledge <greg@wooledge.org> - 2021-11-05 16:10 +0100
Re: Trying to setup obexd but Operation not permitted Greg Wooledge <greg@wooledge.org> - 2021-11-05 17:00 +0100
Re: Trying to setup obexd but Operation not permitted David Wright <deblis@lionunicorn.co.uk> - 2021-11-05 17:10 +0100
Re: Trying to setup obexd but Operation not permitted deloptes <emanoil.kotsev@deloptes.org> - 2021-11-05 18:30 +0100
Re: Trying to setup obexd but Operation not permitted Greg Wooledge <greg@wooledge.org> - 2021-11-05 18:40 +0100
Re: Trying to setup obexd but Operation not permitted deloptes <emanoil.kotsev@deloptes.org> - 2021-11-05 19:20 +0100
Re: Trying to setup obexd but Operation not permitted deloptes <emanoil.kotsev@deloptes.org> - 2021-11-05 18:10 +0100
Re: Trying to setup obexd but Operation not permitted Greg Wooledge <greg@wooledge.org> - 2021-11-05 18:20 +0100
Re: Trying to setup obexd but Operation not permitted deloptes <emanoil.kotsev@deloptes.org> - 2021-11-05 19:10 +0100
Re: Trying to setup obexd but Operation not permitted "Thomas Schmitt" <scdbackup@gmx.net> - 2021-11-05 19:10 +0100
Re: Trying to setup obexd but Operation not permitted deloptes <emanoil.kotsev@deloptes.org> - 2021-11-05 19:30 +0100
csiph-web