Re: Cannot reattach - asking for password

Robin Powell <[email protected]> Wed, 28 Dec 2022 20:01:29 -0800
Newsgroups gmane.comp.gnu.screen.user
Message-ID <CAPR8QAJ3Y-wrhF-qEu7VW9UF0naL5SOOnFsAeea0A6aWASejiA@mail.gmail.com>
--0000000000005382c305f0ef8c19
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Oh!
https://www.alfredapp.com/help/troubleshooting/indexing/terminal-full-disk-=
access/
might help?  But also I'm seeing stuff like
https://superuser.com/questions/117684/gnu-screen-multiuser-mode-is-broken-=
in-os-x-10-6-snow-leopard

Consider tmux?  I have a good set of screen bindings for it I can share if
you want.

On Wed, Dec 28, 2022 at 6:44 PM Lavd Asir <[email protected]> wrote:

> 1. All entries from `lsof -Ua | grep screen` are owned by my usual user
> 2. This issue is occurring on a mac Mojave system; SELinux is not
> available, or the utility `setenforce`.
>
> Any other suggestions? A previous thread in the mailing list (
> https://lists.gnu.org/archive/html/screen-users/2016-10/msg00008.html)
> suggested simply editing the source to eliminate the authentication
> function; unfortunately, the code has changed significantly since then an=
d
> I wasn=E2=80=99t able to locate the relevant function anymore.
>
> Additionally, this bug report appears to be relevant too:
> https://savannah.gnu.org/bugs/?59878
>
> Thanks
>
> On 28 Dec 2022, at 20:55, Robin Lee Powell <[email protected]>
> wrote:
>
> You've basically got two options here that I can think of:
>
> 1.  Your screen socket, or the directory it's in, is owned by a
>    different user; go looking at ownership.  "root" or "nobody"
>    seem likely options.
>
> 2.  SELinux is getting involved.  While you should *not* run like
>    this long term, you can test this by running "sudo setenforce 0"
>    and trying again.
>
> On Tue, Dec 27, 2022 at 05:01:35AM +0000, Lavd Asir wrote:
>
> Hello,
>
> I=E2=80=99ve recently started using the master version and whenever I try=
 to
> re-attach a screen session, I am prompted with the following:
>
> `screen used by XXX <YYY> on ZZZ`
>
> Then it asks for a password. The password for my username (and the only
> user on this machine) doesn=E2=80=99t work, it prints `Password incorrect=
` and
> exits.
>
> I used to use an older version of screen before, and I could reattach
> without a password prompt.
>
> Note that in this scenario screen is not Locked (via `C-a x`), just simpl=
y
> detached (`C-a d`).
>
> I am unable to reattach any screen session, what can I do?
>
> Operating system is Mojave.
>
> Thank you
>
>
>

--0000000000005382c305f0ef8c19
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Oh!=C2=A0 =C2=A0<a href=3D"https://www.alfredapp.com/help/=
troubleshooting/indexing/terminal-full-disk-access/">https://www.alfredapp.=
com/help/troubleshooting/indexing/terminal-full-disk-access/</a> might help=
?=C2=A0 But also I&#39;m seeing stuff like=C2=A0<a href=3D"https://superuse=
r.com/questions/117684/gnu-screen-multiuser-mode-is-broken-in-os-x-10-6-sno=
w-leopard">https://superuser.com/questions/117684/gnu-screen-multiuser-mode=
-is-broken-in-os-x-10-6-snow-leopard</a><div><br></div><div>Consider tmux?=
=C2=A0 I have a good set of screen bindings for it I can share if you want.=
</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_=
attr">On Wed, Dec 28, 2022 at 6:44 PM Lavd Asir &lt;<a href=3D"mailto:lavd.=
[email protected]">[email protected]</a>&gt; wrote:<br></div><blockquote cla=
ss=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid =
rgb(204,204,204);padding-left:1ex"><div style=3D"overflow-wrap: break-word;=
">1. All entries from `lsof -Ua | grep screen` are owned by my usual user<d=
iv>2. This issue is occurring on a mac Mojave system; SELinux is not availa=
ble, or the utility `setenforce`.=C2=A0</div><div><br></div><div>Any other =
suggestions? A previous thread in the mailing list (<a href=3D"https://list=
s.gnu.org/archive/html/screen-users/2016-10/msg00008.html" target=3D"_blank=
">https://lists.gnu.org/archive/html/screen-users/2016-10/msg00008.html</a>=
) suggested simply editing the source to eliminate the authentication funct=
ion; unfortunately, the code has changed significantly since then and I was=
n=E2=80=99t able to locate the relevant function anymore.=C2=A0</div><div><=
br></div><div>Additionally, this bug report appears to be relevant too:=C2=
=A0<a href=3D"https://savannah.gnu.org/bugs/?59878" target=3D"_blank">https=
://savannah.gnu.org/bugs/?59878</a></div><div><br></div><div>Thanks<br><div=
><br><blockquote type=3D"cite"><div>On 28 Dec 2022, at 20:55, Robin Lee Pow=
ell &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">robin=
[email protected]</a>&gt; wrote:</div><br><div><div>You&#39;ve basically =
got two options here that I can think of:<br><br>1.=C2=A0 Your screen socke=
t, or the directory it&#39;s in, is owned by a<br> =C2=A0=C2=A0=C2=A0differ=
ent user; go looking at ownership. =C2=A0&quot;root&quot; or &quot;nobody&q=
uot;<br> =C2=A0=C2=A0=C2=A0seem likely options.<br><br>2.=C2=A0 SELinux is =
getting involved.=C2=A0 While you should *not* run like<br> =C2=A0=C2=A0=C2=
=A0this long term, you can test this by running &quot;sudo setenforce 0&quo=
t;<br> =C2=A0=C2=A0=C2=A0and trying again.<br><br>On Tue, Dec 27, 2022 at 0=
5:01:35AM +0000, Lavd Asir wrote:<br><blockquote type=3D"cite">Hello, <br><=
br>I=E2=80=99ve recently started using the master version and whenever I tr=
y to re-attach a screen session, I am prompted with the following:<br><br>`=
screen used by XXX &lt;YYY&gt; on ZZZ`<br><br>Then it asks for a password. =
The password for my username (and the only user on this machine) doesn=E2=
=80=99t work, it prints `Password incorrect` and exits. <br><br>I used to u=
se an older version of screen before, and I could reattach without a passwo=
rd prompt. <br><br>Note that in this scenario screen is not Locked (via `C-=
a x`), just simply detached (`C-a d`).<br><br>I am unable to reattach any s=
creen session, what can I do?<br><br>Operating system is Mojave. <br><br>Th=
ank you<br></blockquote></div></div></blockquote></div><br></div></div></bl=
ockquote></div>

--0000000000005382c305f0ef8c19--