Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Software is like sex; it's better when it's free. -- Linus Torvalds


computers / alt.os.linux.slackware / Re: Configuring samba

SubjectAuthor
* Configuring sambaroot
`* Re: Configuring sambaMarco Moock
 `* Re: Configuring sambaHenrik Carlqvist
  `* Re: Configuring sambaroot
   `* Re: Configuring sambaHenrik Carlqvist
    `* Re: Configuring sambaroot
     `* Re: Configuring sambaHenrik Carlqvist
      `* Re: Configuring sambaroot
       `- Re: Configuring sambaHenrik Carlqvist

1
Configuring samba

<t8jf21$2nt$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=1293&group=alt.os.linux.slackware#1293

 copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: NoEM...@home.org (root)
Newsgroups: alt.os.linux.slackware
Subject: Configuring samba
Date: Sat, 18 Jun 2022 02:59:14 -0000 (UTC)
Organization: Linux Advocacy
Lines: 7
Message-ID: <t8jf21$2nt$1@dont-email.me>
Injection-Date: Sat, 18 Jun 2022 02:59:14 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="233bf3b2537fcac50b88bedc6319e5bd";
logging-data="2813"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19dFhJpGwyIUJmxZ3LcLgLSWsoAYzcBoVk="
User-Agent: slrn/1.0.2 (Linux)
Cancel-Lock: sha1:dhE3/ByQYbi/W2Tn9rJ/8SQV0uI=
Mail-Copies-To: nobody
 by: root - Sat, 18 Jun 2022 02:59 UTC

I used the same smb.conf for 15.0 as I did for 14.2
I cannot connect to the computer using (old) android
devices: I get a message the android device needs
smb2.0. How can I set back the computer to allow
connection from my android device?

Thanks.

Re: Configuring samba

<20220618063424.7c493bf0@ryz>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=1294&group=alt.os.linux.slackware#1294

 copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: mo0...@posteo.de (Marco Moock)
Newsgroups: alt.os.linux.slackware
Subject: Re: Configuring samba
Date: Sat, 18 Jun 2022 06:34:24 +0200
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <20220618063424.7c493bf0@ryz>
References: <t8jf21$2nt$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="86914b0e52f4e51d48bf004f23d99302";
logging-data="24740"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18IRvJC/W3+BBEW2vUy/au6"
Cancel-Lock: sha1:5h5LDXOWSrU8rsbh9AF0pfYUPIY=
 by: Marco Moock - Sat, 18 Jun 2022 04:34 UTC

Am Samstag, 18. Juni 2022, um 02:59:14 Uhr schrieb root:

> I used the same smb.conf for 15.0 as I did for 14.2
> I cannot connect to the computer using (old) android
> devices: I get a message the android device needs
> smb2.0. How can I set back the computer to allow
> connection from my android device?

Please post your config file.

Also read that, maybe setting min protocol is enough:
https://www.cyberciti.biz/faq/how-to-configure-samba-to-use-smbv2-and-disable-smbv1-on-linux-or-unix/

Re: Configuring samba

<t8k9mi$vic$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=1295&group=alt.os.linux.slackware#1295

 copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Henrik.C...@deadspam.com (Henrik Carlqvist)
Newsgroups: alt.os.linux.slackware
Subject: Re: Configuring samba
Date: Sat, 18 Jun 2022 10:33:54 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <t8k9mi$vic$1@dont-email.me>
References: <t8jf21$2nt$1@dont-email.me> <20220618063424.7c493bf0@ryz>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 18 Jun 2022 10:33:54 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="64b0522a737eebf7bc6751516769cd50";
logging-data="32332"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18x0JnnJR+zjoL1uTNQBdeB"
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:FtnFG+FFK7kYST8HPu2vqmeem7Y=
 by: Henrik Carlqvist - Sat, 18 Jun 2022 10:33 UTC

On Sat, 18 Jun 2022 06:34:24 +0200, Marco Moock wrote:

> Am Samstag, 18. Juni 2022, um 02:59:14 Uhr schrieb root:
>
>> I used the same smb.conf for 15.0 as I did for 14.2 I cannot connect to
>> the computer using (old) android devices: I get a message the android
>> device needs smb2.0. How can I set back the computer to allow
>> connection from my android device?
>
> Please post your config file.
>
> Also read that, maybe setting min protocol is enough:
> https://www.cyberciti.biz/faq/how-to-configure-samba-to-use-smbv2-and-
disable-smbv1-on-linux-or-unix/

As all parameters not mentioned in the smb.conf get a default value it
might also be interesting to see the output from:

echo | testparm -v 2> /dev/null | grep protoco

The first "echo |" is only to make testparm continue. The testparm
program will start by printing some information to stderr and then ask
the user to press enter to continue. The above command sends that to /dev/
null so only the interesting parameters are shown.

regards Henrik

Re: Configuring samba

<t8kl70$njf$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=1296&group=alt.os.linux.slackware#1296

 copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: NoEM...@home.org (root)
Newsgroups: alt.os.linux.slackware
Subject: Re: Configuring samba
Date: Sat, 18 Jun 2022 13:50:24 -0000 (UTC)
Organization: Linux Advocacy
Lines: 109
Message-ID: <t8kl70$njf$1@dont-email.me>
References: <t8jf21$2nt$1@dont-email.me> <20220618063424.7c493bf0@ryz>
<t8k9mi$vic$1@dont-email.me>
Injection-Date: Sat, 18 Jun 2022 13:50:24 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="233bf3b2537fcac50b88bedc6319e5bd";
logging-data="24175"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/HV+nBWhgbzBI8kfPduyGTdwujy5vBG6M="
User-Agent: slrn/1.0.2 (Linux)
Cancel-Lock: sha1:yNoNlxSKyE2jH+5gCZkx3Iir/Do=
 by: root - Sat, 18 Jun 2022 13:50 UTC

Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> wrote:
> On Sat, 18 Jun 2022 06:34:24 +0200, Marco Moock wrote:
>
>> Am Samstag, 18. Juni 2022, um 02:59:14 Uhr schrieb root:
>>
>>> I used the same smb.conf for 15.0 as I did for 14.2 I cannot connect to
>>> the computer using (old) android devices: I get a message the android
>>> device needs smb2.0. How can I set back the computer to allow
>>> connection from my android device?
>>
>> Please post your config file.
>>
>> Also read that, maybe setting min protocol is enough:
>> https://www.cyberciti.biz/faq/how-to-configure-samba-to-use-smbv2-and-
> disable-smbv1-on-linux-or-unix/
>
> As all parameters not mentioned in the smb.conf get a default value it
> might also be interesting to see the output from:
>
> echo | testparm -v 2> /dev/null | grep protoco

client ipc max protocol = default
client ipc min protocol = default
client max protocol = default
client min protocol = SMB2_02
server max protocol = SMB3
server min protocol = SMB2

Thanks Henrik and Marco for responding. The original smb.conf
was:

[global]
guest account = smbguest
netbios name = aa
security = user
null passwords = yes
map to guest = Bad Password
guest account = smbguest
# socket options = TCP_NODELAY IPTOS_LOWDELAY
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65535 SO_SNDBUF=65535 SO_KEEPALIVE
workgroup = WORKGROUP
domain master = yes

[public]
guest ok = yes
guest only = yes
path = /samba.ok/
browseable = yes
read only = no

Following Marco's reference I changed this to:

[global]
guest account = smbguest
netbios name = aa
security = user
passdb backend = tbdsam

min protocol = SMB2

[public]
guest ok = yes
guest only = yes
path = /samba.ok/
browseable = yes
read only = no

Prior to any of this, I created a user smbguest with this
entry in /etc/passwd:

smbguest:x:1000:100::/home/smbguest:/bin/bash

The :x: means, to me, that I did enter a password
when I created the user. That password was guest.

In my android device I had been using ES File explorer.
It is that file manager which issued the smb2.0 refusal.

Subsequently I loaded the X-Plore file manager from the
Play Store. X-Plore allows SMB2 connection.

ES file explorer had a point where I could click anonymous
but X-Plore does not have that choice. X-Plore says to
leave the username blank for anonymous access, which I do.
X-Plore fails to connect regardless of whether I supply
the smbguest password.

Every time I make a change to smb.conf I restart /etc/rc.d/rc.samba

Currently X-Plore gives me this message:

java.netConnectExceptio failed to connect to/
10.0.0.1 (port 445) from 10.0.0.229 port 4032
Connection Refused

I set the permissions on the access /samba.ok as
chmod 7777 /samba.ok and everything within that
directory.

It has been so long since I set up 14.2 I am guessing
I missed some step in setting up samba, or I have
set something incorrectly.

Thanks for your help.

Re: Configuring samba

<t8mbtv$q4s$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=1301&group=alt.os.linux.slackware#1301

 copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Henrik.C...@deadspam.com (Henrik Carlqvist)
Newsgroups: alt.os.linux.slackware
Subject: Re: Configuring samba
Date: Sun, 19 Jun 2022 05:24:15 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <t8mbtv$q4s$1@dont-email.me>
References: <t8jf21$2nt$1@dont-email.me> <20220618063424.7c493bf0@ryz>
<t8k9mi$vic$1@dont-email.me> <t8kl70$njf$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 19 Jun 2022 05:24:15 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="8c0ec3506ed7746cbe670a959bdd171f";
logging-data="26780"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+kky+Px+mdJtS8BKZ0fkYQ"
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:BK8FdNd8oJQneuXRvRN8raXrxBc=
 by: Henrik Carlqvist - Sun, 19 Jun 2022 05:24 UTC

On Sat, 18 Jun 2022 13:50:24 +0000, root wrote:
>> echo | testparm -v 2> /dev/null | grep protoco
>
> client ipc max protocol = default
> client ipc min protocol = default
> client max protocol = default
> client min protocol = SMB2_02
> server max protocol = SMB3
> server min protocol = SMB2

Maybe it would help to set the "client min protocol" to CORE ?
It seems as if it is set to CORE in Slackware 14.2 by default.

> Prior to any of this, I created a user smbguest with this entry in
> /etc/passwd:
>
> smbguest:x:1000:100::/home/smbguest:/bin/bash
>
> The :x: means, to me, that I did enter a password when I created the
> user. That password was guest.

The field with an x used to contain an encrypted password in /etc/
passwd. However, as /etc/passwd is readable by anyone and it is possible
to brute force crack those encrypted passwords the "x" means that the
encrypted password is instead stored in /etc/shadow which is readable
only by root.
> java.netConnectExceptio failed to connect to/
> 10.0.0.1 (port 445) from 10.0.0.229 port 4032 Connection Refused

I suppose that 10.0.0.1 is your samba server and 10.0.0.229 is your
phone? Older configurations of samba used to listen to port 139 instead
of 445. What does:

echo | testparm -v ~/smb.conf 2> /dev/null | grep ports

say?
regards Henrik

Re: Configuring samba

<t8nunj$o0a$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=1302&group=alt.os.linux.slackware#1302

 copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: NoEM...@home.org (root)
Newsgroups: alt.os.linux.slackware
Subject: Re: Configuring samba
Date: Sun, 19 Jun 2022 19:51:16 -0000 (UTC)
Organization: Linux Advocacy
Lines: 14
Message-ID: <t8nunj$o0a$1@dont-email.me>
References: <t8jf21$2nt$1@dont-email.me> <20220618063424.7c493bf0@ryz>
<t8k9mi$vic$1@dont-email.me> <t8kl70$njf$1@dont-email.me>
<t8mbtv$q4s$1@dont-email.me>
Injection-Date: Sun, 19 Jun 2022 19:51:16 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="d0a0a13016d6ca0478374a38a6583cfd";
logging-data="24586"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/pXtZ5gseJ/zLRH7AGYiF1wTRKSrC1ZaY="
User-Agent: slrn/1.0.2 (Linux)
Cancel-Lock: sha1:A7dWqvIJI49KsAvD9U6Fmn0GDaI=
 by: root - Sun, 19 Jun 2022 19:51 UTC

Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> wrote:
>
> echo | testparm -v ~/smb.conf 2> /dev/null | grep ports
>
> say?
>
> regards Henrik

I get nothing from that command.

I change ~/smb/conf to /etc/samba/smb.conf and I get:

enumports command =
smb ports = 445 139

Re: Configuring samba

<t8osgm$7u6$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=1304&group=alt.os.linux.slackware#1304

 copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Henrik.C...@deadspam.com (Henrik Carlqvist)
Newsgroups: alt.os.linux.slackware
Subject: Re: Configuring samba
Date: Mon, 20 Jun 2022 04:19:34 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <t8osgm$7u6$1@dont-email.me>
References: <t8jf21$2nt$1@dont-email.me> <20220618063424.7c493bf0@ryz>
<t8k9mi$vic$1@dont-email.me> <t8kl70$njf$1@dont-email.me>
<t8mbtv$q4s$1@dont-email.me> <t8nunj$o0a$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 20 Jun 2022 04:19:34 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="213d79e6b1734f2e682448b4a07e1b3a";
logging-data="8134"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18wahsJkmaie+t82sE+qkY+"
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:iT/eKVPxtA/plXY2dUP7hVZrjCg=
 by: Henrik Carlqvist - Mon, 20 Jun 2022 04:19 UTC

On Sun, 19 Jun 2022 19:51:16 +0000, root wrote:

> Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> wrote:
>>
>> echo | testparm -v ~/smb.conf 2> /dev/null | grep ports
>>
>> say?

> I get nothing from that command.

Whoops, sorry. As I don't have samba running myself I don't have the
default /etc/smb.conf and when testing my commands I use an old smb.conf
in my home directory. My intention was to remove the path to ~/smb.conf
before posting the command.
> I change ~/smb/conf to /etc/samba/smb.conf and I get:
>
> enumports command =
> smb ports = 445 139

That looks good, it seems as if your samba should be listening to port
445 that X-plore is complaining about.

If you are unable to get ES File explorer working by changing min
protocol to CORE it might be easier to configure an ftp server for ES
File explorer to connect to than to get samba working again.

regards Henrik

Re: Configuring samba

<t8q890$uip$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=1305&group=alt.os.linux.slackware#1305

 copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: NoEM...@home.org (root)
Newsgroups: alt.os.linux.slackware
Subject: Re: Configuring samba
Date: Mon, 20 Jun 2022 16:46:25 -0000 (UTC)
Organization: Linux Advocacy
Lines: 36
Message-ID: <t8q890$uip$1@dont-email.me>
References: <t8jf21$2nt$1@dont-email.me> <20220618063424.7c493bf0@ryz>
<t8k9mi$vic$1@dont-email.me> <t8kl70$njf$1@dont-email.me>
<t8mbtv$q4s$1@dont-email.me> <t8nunj$o0a$1@dont-email.me>
<t8osgm$7u6$1@dont-email.me>
Injection-Date: Mon, 20 Jun 2022 16:46:25 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="12e48a61246c762569c7a335a9050edf";
logging-data="31321"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18/ZfGepWB/eHvpl5fHwp2e7L8Begdv2Pw="
User-Agent: slrn/1.0.2 (Linux)
Cancel-Lock: sha1:XKoBS3EWmrFa6PsDwqGEENMjM2g=
 by: root - Mon, 20 Jun 2022 16:46 UTC

Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> wrote:
> On Sun, 19 Jun 2022 19:51:16 +0000, root wrote:
>
>> Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> wrote:
>>>
>>> echo | testparm -v ~/smb.conf 2> /dev/null | grep ports
>>>
>>> say?
>
>> I get nothing from that command.
>
> Whoops, sorry. As I don't have samba running myself I don't have the
> default /etc/smb.conf and when testing my commands I use an old smb.conf
> in my home directory. My intention was to remove the path to ~/smb.conf
> before posting the command.
>
>> I change ~/smb/conf to /etc/samba/smb.conf and I get:
>>
>> enumports command =
>> smb ports = 445 139
>
> That looks good, it seems as if your samba should be listening to port
> 445 that X-plore is complaining about.
>
> If you are unable to get ES File explorer working by changing min
> protocol to CORE it might be easier to configure an ftp server for ES
> File explorer to connect to than to get samba working again.
>
> regards Henrik

Thanks Henrik. Using CORE protocol does work, as does NT1.

Dozens of these puzzles have arisen since I converted from
14.2 to 15.0. It shouldn't be that way with Slackware.
The sample smb.conf should have provided an smb.conf that
worked (for at least some devices).

Re: Configuring samba

<t8qbsl$qma$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=1306&group=alt.os.linux.slackware#1306

 copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Henrik.C...@deadspam.com (Henrik Carlqvist)
Newsgroups: alt.os.linux.slackware
Subject: Re: Configuring samba
Date: Mon, 20 Jun 2022 17:48:05 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <t8qbsl$qma$1@dont-email.me>
References: <t8jf21$2nt$1@dont-email.me> <20220618063424.7c493bf0@ryz>
<t8k9mi$vic$1@dont-email.me> <t8kl70$njf$1@dont-email.me>
<t8mbtv$q4s$1@dont-email.me> <t8nunj$o0a$1@dont-email.me>
<t8osgm$7u6$1@dont-email.me> <t8q890$uip$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 20 Jun 2022 17:48:05 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="213d79e6b1734f2e682448b4a07e1b3a";
logging-data="27338"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18JjZGHqjIbTysWZubaicZE"
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:uVYq7fHomwq9UjIbb9bcq01fSh0=
 by: Henrik Carlqvist - Mon, 20 Jun 2022 17:48 UTC

On Mon, 20 Jun 2022 16:46:25 +0000, root wrote:
> Dozens of these puzzles have arisen since I converted from 14.2 to 15.0.
> It shouldn't be that way with Slackware. The sample smb.conf should have
> provided an smb.conf that worked (for at least some devices).

The problem is that newer versions of Slackware has newer versions of
applications like samba. Most parameters possible to configure in
smb.conf are not mentioned in that file but get their default values
instead. The problem is that some of these default values change between
different versions of samba.

I don't know what reason, but there is probably some reason that the
developers of samba decided to increase the default min protocol. Maybe
they wanted to avoid some security weaknes in those older protocols.
Maybe they simply thought that noone is using such old unsupported
versions of Windows nowadays anyways.

But, yes, I do agree that every time I upgrade to a newer version of
Slackware there is a lot of work to adapt that version to my network and
once that is done it remains a lot of work to adapt my network and
applications to the new version of Slackware.

regards Henrik

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor