Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Each new user of a new system uncovers a new class of bugs. -- Kernighan


computers / alt.bbs.mystic / Re: Not a valid PKT

SubjectAuthor
* Re: Not a valid PKTTim Woodland
+- Re: Not a valid PKTg00r00
`* Re: Not a valid PKTAl
 `* Re: Not a valid PKTTim Woodland
  `* Re: Not a valid PKTTim Woodland
   `* Re: Not a valid PKTg00r00
    `* Re: Not a valid PKTTim Woodland
     `- Re: Not a valid PKTg00r00

1
Re: Not a valid PKT

<4bc20e2e-5533-41c9-8042-6858f8c26443n@googlegroups.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=1987&group=alt.bbs.mystic#1987

  copy link   Newsgroups: alt.bbs.mystic
X-Received: by 2002:ac8:44b7:0:b0:3b6:2bb2:216c with SMTP id a23-20020ac844b7000000b003b62bb2216cmr192391qto.616.1674011083383;
Tue, 17 Jan 2023 19:04:43 -0800 (PST)
X-Received: by 2002:a25:d881:0:b0:7ce:4b9a:2723 with SMTP id
p123-20020a25d881000000b007ce4b9a2723mr895227ybg.539.1674011083007; Tue, 17
Jan 2023 19:04:43 -0800 (PST)
Path: rocksolid2!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: alt.bbs.mystic
Date: Tue, 17 Jan 2023 19:04:42 -0800 (PST)
In-Reply-To: <4137946007@f100.n770.z3.fidonet.org>
Injection-Info: google-groups.googlegroups.com; posting-host=24.214.156.50; posting-account=l6plEgoAAACDgpVRU_aI3kJAyfTjPKlP
NNTP-Posting-Host: 24.214.156.50
References: <1671148858@f10.n154.z1.fidonet.org> <4137946007@f100.n770.z3.fidonet.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4bc20e2e-5533-41c9-8042-6858f8c26443n@googlegroups.com>
Subject: Re: Not a valid PKT
From: tlwoodland@gmail.com (Tim Woodland)
Injection-Date: Wed, 18 Jan 2023 03:04:43 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3438
 by: Tim Woodland - Wed, 18 Jan 2023 03:04 UTC

On Thursday, December 15, 2022 at 10:20:13 PM UTC-5, Paul Hayton wrote:
> On 15 Dec 2022 at 06:00p, Nicholas Boel pondered and said...
>
> NB> TW> 12 00:15:18 Cannot find arctype for 71211085.12.mo0; skipping
> NB>
> NB> "arctype" would lead me to believe you don't have zip/unzip installed or
> NB> setup correctly in Mystic's configuration?
>
> yep I think you're on the right path with this one Nick.
>
> this one is I think because the system has had to rename the zipped packet and
> you have a filename.morename.extn when it should be filename.extn
>
> suggest rename this one to 71211085.mo0 (assuming sysop does not have one there
> with the same name in their inbound dir already) then try to re-run the import,
> but also check you have zip and unzip installed.
>
> Kerr Avon [Blake's 7] 'I'm not expendable, I'm not stupid and I'm not going'
> avon[at]bbs.nz | bbs.nz | fsxnet.nz
Update: I did have zip/unzip installed and was able to verify that it would run from the command line as the sysop user. Also, renaming did not help.

I am running Mystic A48 on Linux Mint 20.3 Cinnamon v 5.2.7. The problem is due to the Mystic folder/file permission settings. When I change the owner and group of the Mystic directories and files to my sysop user/group, I have to run mis as sudo for it to allow IP connectivity. Then when running mutil, the zip extraction does not work nor does it recognize the pkt files, even if I manually extract them. I tried then setting the mystic application executable files with root as the owner along with the echomail directory and files. This did not work either no change in log errors.

Finally, I recursively changed the owner of the Mystic directory and files to root leaving the sysop group unchanged. This worked, no errors. I now am trying to determine what the correct permission settings for the directories and folders should be so that I can run Mystic as the sysop user as the owner and group so that root is not exposed. Is there a way to give the sysop user permissions to the ethernet ports so Mystic can use the IP ports when running as the sysop user?

Gandalf

Re: Not a valid PKT

<1527394165@f215.n129.z1.fidonet.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=1988&group=alt.bbs.mystic#1988

  copy link   Newsgroups: alt.bbs.mystic
Path: rocksolid2!i2pn.org!news.bbs.nz!.POSTED.agency.bbs.nz!not-for-mail
From: nospam.g00r00@f215.n129.z1.fidonet.org (g00r00)
Newsgroups: alt.bbs.mystic
Subject: Re: Not a valid PKT
Date: Tue, 17 Jan 2023 22:52:38 +1300
Organization: Agency HUB, Dunedin - New Zealand
Message-ID: <1527394165@f215.n129.z1.fidonet.org>
References: <4bc20e2e-5533-41c9-8042-6858f8c26443n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: news.bbs.nz; posting-host="8IWYKlztXHa0+IViEdY46zrq8kpk7dC9fTbT74JiSDQ";
logging-data="10532"; mail-complaints-to="abuse@news.bbs.nz"
User-Agent: VSoup v1.2.9.47Beta [95/NT]
X-Comment-To: Tim Woodland
X-MailConverter: SoupGate-Win32 v1.05
 by: g00r00 - Tue, 17 Jan 2023 09:52 UTC

TW> Finally, I recursively changed the owner of the Mystic directory and
TW> files to root leaving the sysop group unchanged. This worked, no
TW> errors. I now am trying to determine what the correct permission
TW> settings for the directories and folders should be so
TW> that I can run Mystic as the sysop user as the owner and group so that
TW> root is not exposed. Is there a way to give the sysop user permissions
TW> to the ethernet ports so Mystic can use the IP ports when running as the
TW> sysop user?

Your files should always be owned by the user and never root. So the chown -R
user:user /mystic is the right approach to take, which it sounds like you've
done.

You can set Linux to allow binding on ports less than 1024 if you want to.
Google is your friend there or maybe someone here can comment more on this
method? It probably should be a topic on the Wiki if its not.

You can also port forward port 23 to port 2323 for example and have Mystic
listening on that port.

You can also run "sudo ./mis server" and Mystic will change from root user to
the owner of the binaries, after it binds the ports.

To see the latter in action you can start with "sudo ./mis server" and then
telnet in. Export a message and while you're at the protocol selection prompt,
look in the node's temp directory at the exported message. It will be owned by
the BBS user that owns mystic and not root, even though you started the service
as root.

.... Help! I can't find the "ANY" key.

Re: Not a valid PKT

<3751472171@f757.n153.z1.fidonet.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=1989&group=alt.bbs.mystic#1989

  copy link   Newsgroups: alt.bbs.mystic
Path: rocksolid2!i2pn.org!news.neodome.net!tncsrv06.tnetconsulting.net!news.bbs.nz!.POSTED.agency.bbs.nz!not-for-mail
From: nospam.Al@f757.n153.z1.fidonet.org (Al)
Newsgroups: alt.bbs.mystic
Subject: Re: Not a valid PKT
Date: Wed, 18 Jan 2023 00:47:18 +1300
Organization: Agency HUB, Dunedin - New Zealand
Message-ID: <3751472171@f757.n153.z1.fidonet.org>
References: <4bc20e2e-5533-41c9-8042-6858f8c26443n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Injection-Info: news.bbs.nz; posting-host="8IWYKlztXHa0+IViEdY46zrq8kpk7dC9fTbT74JiSDQ";
logging-data="15597"; mail-complaints-to="abuse@news.bbs.nz"
User-Agent: VSoup v1.2.9.47Beta [95/NT]
X-MailConverter: SoupGate-Win32 v1.05
X-Comment-To: Tim Woodland
 by: Al - Tue, 17 Jan 2023 11:47 UTC

> Finally, I recursively changed the owner of the Mystic directory and files to
> root leaving the sysop group unchanged. This worked, no errors. I now am
> trying to determine what the correct permission settings for the directories
> and folders should be so that I can run Mystic as the sysop user as the owner
< and group so that root is not exposed. Is there a way to give the sysop user
> permissions to the ethernet ports so Mystic can use the IP ports when
> running as the sysop user?

I use setcap here to give a server access to ports below 1024.

You need to be root (or use sudo) to run this command.

sudo setcap 'cap_net_bind_service=+ep' /mystic/mis

You can then use getcap to check that mis has the permisions to open those
ports. There is a write here on the synchronet wiki.

https://wiki.synchro.net/howto:linux_non-root

It talks about this and other methods.

If you happen to run mis or mutil as root you can end up with these kind of
permissions issues so best not to do that. :)

Re: Not a valid PKT

<d53bcd89-3c40-46a0-aadd-a2658cb113cdn@googlegroups.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=1994&group=alt.bbs.mystic#1994

  copy link   Newsgroups: alt.bbs.mystic
X-Received: by 2002:ae9:eb11:0:b0:706:1cd6:24a4 with SMTP id b17-20020ae9eb11000000b007061cd624a4mr348645qkg.213.1674136902696;
Thu, 19 Jan 2023 06:01:42 -0800 (PST)
X-Received: by 2002:a25:73d3:0:b0:7b1:a428:c179 with SMTP id
o202-20020a2573d3000000b007b1a428c179mr1301942ybc.99.1674136902047; Thu, 19
Jan 2023 06:01:42 -0800 (PST)
Path: rocksolid2!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: alt.bbs.mystic
Date: Thu, 19 Jan 2023 06:01:41 -0800 (PST)
In-Reply-To: <3751472171@f757.n153.z1.fidonet.org>
Injection-Info: google-groups.googlegroups.com; posting-host=24.214.156.50; posting-account=l6plEgoAAACDgpVRU_aI3kJAyfTjPKlP
NNTP-Posting-Host: 24.214.156.50
References: <4bc20e2e-5533-41c9-8042-6858f8c26443n@googlegroups.com> <3751472171@f757.n153.z1.fidonet.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d53bcd89-3c40-46a0-aadd-a2658cb113cdn@googlegroups.com>
Subject: Re: Not a valid PKT
From: tlwoodland@gmail.com (Tim Woodland)
Injection-Date: Thu, 19 Jan 2023 14:01:42 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3275
 by: Tim Woodland - Thu, 19 Jan 2023 14:01 UTC

On Wednesday, January 18, 2023 at 4:20:16 AM UTC-5, Al wrote:
> > Finally, I recursively changed the owner of the Mystic directory and files to
> > root leaving the sysop group unchanged. This worked, no errors. I now am
> > trying to determine what the correct permission settings for the directories
> > and folders should be so that I can run Mystic as the sysop user as the owner
> < and group so that root is not exposed. Is there a way to give the sysop user
> > permissions to the ethernet ports so Mystic can use the IP ports when
> > running as the sysop user?
> I use setcap here to give a server access to ports below 1024.
>
> You need to be root (or use sudo) to run this command.
>
> sudo setcap 'cap_net_bind_service=+ep' /mystic/mis
>
> You can then use getcap to check that mis has the permisions to open those
> ports. There is a write here on the synchronet wiki.
>
> https://wiki.synchro.net/howto:linux_non-root
>
> It talks about this and other methods.
>
> If you happen to run mis or mutil as root you can end up with these kind of
> permissions issues so best not to do that. :)
Thank you g00r00 and Al. I appreciate your help and have it working except nodespy.

With /mystic owner as user:user and running mis with "sudo ./mis server", I did see in the node's temp directory that the exported message was owned by the BBS user that owns mystic and not root. However, I received the errors in the log, "Cannot find arctype" and "is not a valid PKT".

After I ran "sudo setcap 'cap_net_bind_service=+ep' /mystic/mis" as suggested by Al, I could start mystic running with "./mis server" and binkp and telnet was able to bind to IPV4. Mutil is now able to run without errors! This is with /mystic owner as user:user not root:user.

Success! Thank you!

The only issue left is nodespy. When I run nodespy with or without sudo, it is unable to establish a snoop session. Do you have any suggestions to get this to work?

Gandalf

Re: Not a valid PKT

<048328f8-a031-462b-ad17-4aa473354eean@googlegroups.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=1996&group=alt.bbs.mystic#1996

  copy link   Newsgroups: alt.bbs.mystic
X-Received: by 2002:a05:620a:60f6:b0:702:4a94:48e7 with SMTP id dy54-20020a05620a60f600b007024a9448e7mr511941qkb.578.1674159498719;
Thu, 19 Jan 2023 12:18:18 -0800 (PST)
X-Received: by 2002:a25:bf83:0:b0:7fe:75bb:d85f with SMTP id
l3-20020a25bf83000000b007fe75bbd85fmr336945ybk.539.1674159498236; Thu, 19 Jan
2023 12:18:18 -0800 (PST)
Path: rocksolid2!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: alt.bbs.mystic
Date: Thu, 19 Jan 2023 12:18:18 -0800 (PST)
In-Reply-To: <d53bcd89-3c40-46a0-aadd-a2658cb113cdn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=24.214.156.50; posting-account=l6plEgoAAACDgpVRU_aI3kJAyfTjPKlP
NNTP-Posting-Host: 24.214.156.50
References: <4bc20e2e-5533-41c9-8042-6858f8c26443n@googlegroups.com>
<3751472171@f757.n153.z1.fidonet.org> <d53bcd89-3c40-46a0-aadd-a2658cb113cdn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <048328f8-a031-462b-ad17-4aa473354eean@googlegroups.com>
Subject: Re: Not a valid PKT
From: tlwoodland@gmail.com (Tim Woodland)
Injection-Date: Thu, 19 Jan 2023 20:18:18 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1828
 by: Tim Woodland - Thu, 19 Jan 2023 20:18 UTC

One more thing I tried was to chown nodespy* to root then run it. This got rid of the "unable to establish a snoop session" error; it shows the action bar at the bottom, but a blank black screen (the ascii/ansi screens do not display), and on the client end, the smoothness is gone. The screens display delayed in chunks of data instead of a smooth stream.

Gandalf
"It's a dangerous business, Frodo, running a Mystic BBS. You install it to a Linux OS, and if you don't keep your permissions correct, there's no knowing what it might be swept off to."

Re: Not a valid PKT

<2446291114@f215.n129.z1.fidonet.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=1998&group=alt.bbs.mystic#1998

  copy link   Newsgroups: alt.bbs.mystic
Path: rocksolid2!news.neodome.net!tncsrv06.tnetconsulting.net!news.bbs.nz!.POSTED.agency.bbs.nz!not-for-mail
From: nospam.g00r00@f215.n129.z1.fidonet.org (g00r00)
Newsgroups: alt.bbs.mystic
Subject: Re: Not a valid PKT
Date: Thu, 19 Jan 2023 17:49:37 +1300
Organization: Agency HUB, Dunedin - New Zealand
Message-ID: <2446291114@f215.n129.z1.fidonet.org>
References: <048328f8-a031-462b-ad17-4aa473354eean@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: news.bbs.nz; posting-host="8IWYKlztXHa0+IViEdY46zrq8kpk7dC9fTbT74JiSDQ";
logging-data="23007"; mail-complaints-to="abuse@news.bbs.nz"
User-Agent: VSoup v1.2.9.47Beta [95/NT]
X-Comment-To: Tim Woodland
X-MailConverter: SoupGate-Win32 v1.05
 by: g00r00 - Thu, 19 Jan 2023 04:49 UTC

TW> One more thing I tried was to chown nodespy* to root then run it. This
TW> got rid of the "unable to establish a snoop session" error; it shows the
TW> action bar at the bottom, but a blank black screen (the ascii/ansi
TW> screens do not display), and on the client
TW> end, the smoothness is gone. The screens display delayed in chunks of
TW> data instead of a smooth stream.

It certainly seems like you have permissions issues causing these problems.

What I would do is chown everything back to your BBS user and start from there.
There is no need to ever set anything to root or use root. When your BBS is
completely shutdown run "sudo ./mis killbusy

When you do set root ownership or run as root user, any files it touches is
going to now be owned by root. This is going to break things across the board.

I can't comment on it slowing down but I will do some testing here to see if I
can reproduce it and clean it up. When you snoop it is doing more by sending
data to more places, so it will require more processing power while snooping.
But I wouldn't think it'd be all that noticable to a remote user. What are you
running it on? Maybe if its a Pi 1 or Zero or something it but outside that I
wouldn't think there would be a dramatic performance hit. I'll check into it!

I will also change NodeSpy to change the root user like the rest of things do,
so that you'll be able to run it as "sudo ./nodespy" without causing any issues
in the future.

.... The seminar on time travel will be held two weeks ago

Re: Not a valid PKT

<29014ff3-307a-4c78-8208-e09f94af5c2an@googlegroups.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=1999&group=alt.bbs.mystic#1999

  copy link   Newsgroups: alt.bbs.mystic
X-Received: by 2002:a05:6214:501a:b0:534:ba17:9e73 with SMTP id jo26-20020a056214501a00b00534ba179e73mr509402qvb.40.1674182766977;
Thu, 19 Jan 2023 18:46:06 -0800 (PST)
X-Received: by 2002:a81:5cc:0:b0:4db:93b4:4006 with SMTP id
195-20020a8105cc000000b004db93b44006mr1623053ywf.424.1674182766691; Thu, 19
Jan 2023 18:46:06 -0800 (PST)
Path: rocksolid2!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: alt.bbs.mystic
Date: Thu, 19 Jan 2023 18:46:06 -0800 (PST)
In-Reply-To: <2446291114@f215.n129.z1.fidonet.org>
Injection-Info: google-groups.googlegroups.com; posting-host=24.214.156.50; posting-account=l6plEgoAAACDgpVRU_aI3kJAyfTjPKlP
NNTP-Posting-Host: 24.214.156.50
References: <048328f8-a031-462b-ad17-4aa473354eean@googlegroups.com> <2446291114@f215.n129.z1.fidonet.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <29014ff3-307a-4c78-8208-e09f94af5c2an@googlegroups.com>
Subject: Re: Not a valid PKT
From: tlwoodland@gmail.com (Tim Woodland)
Injection-Date: Fri, 20 Jan 2023 02:46:06 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2253
 by: Tim Woodland - Fri, 20 Jan 2023 02:46 UTC

Eureka! I found the permission issue. My Mystic user was not a member of the Mystic user group that I had created. As soon as I added the user to the group, everything works as you said with owner:group as user:user.

I think the slowdown on the client displaying the menus was due to running nodespy with root as owner, but since root was not the owner or group of the Mystic data menu display files, it was introducing latency when nodespy tried to read/display them.

That to say, there is nothing wrong with Mystic.

So, to summarize, my issues of Mystic A48 running on Linux Mint 20.3 Cinnamon v5.2.7:
1. Mystic user as owner but not a member of the group that has ownership - mutil log errors "is not a valid PKT" and "Cannot find arctype for". Nodespy unable to establish a snoop session.
2. Mystic mis server unable to access ports below 1024:
Run this command as root (or use sudo):
sudo setcap 'cap_net_bind_service=+ep' /mystic/mis

Thank you so much for your help g00r00 and Al. I appreciate it!

Gandalf
"Keep it Mystic, Keep the user a member of the proper group and it will be safe!"

Re: Not a valid PKT

<2882728041@f215.n129.z1.fidonet.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2001&group=alt.bbs.mystic#2001

  copy link   Newsgroups: alt.bbs.mystic
Path: rocksolid2!i2pn.org!news.bbs.nz!.POSTED.agency.bbs.nz!not-for-mail
From: nospam.g00r00@f215.n129.z1.fidonet.org (g00r00)
Newsgroups: alt.bbs.mystic
Subject: Re: Not a valid PKT
Date: Fri, 20 Jan 2023 12:55:44 +1300
Organization: Agency HUB, Dunedin - New Zealand
Message-ID: <2882728041@f215.n129.z1.fidonet.org>
References: <29014ff3-307a-4c78-8208-e09f94af5c2an@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: news.bbs.nz; posting-host="8IWYKlztXHa0+IViEdY46zrq8kpk7dC9fTbT74JiSDQ";
logging-data="10213"; mail-complaints-to="abuse@news.bbs.nz"
User-Agent: VSoup v1.2.9.47Beta [95/NT]
X-MailConverter: SoupGate-Win32 v1.05
X-Comment-To: Tim Woodland
 by: g00r00 - Thu, 19 Jan 2023 23:55 UTC

TW> Eureka! I found the permission issue. My Mystic user was not a member
TW> of the Mystic user group that I had created. As soon as I added the
TW> user to the group, everything works as you said with owner:group as
TW> user:user.

Thats great to hear and thanks for following up to let me know!

TW> That to say, there is nothing wrong with Mystic.

Even better news! :)

.... THE fIRST sTEP iS tO tAKE oFF tHE cAPS lOCK

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor