Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

When speculation has done its worst, two plus two still equals four. -- S. Johnson


computers / alt.windows7.general / Confusing SMB authentication

SubjectAuthor
* Confusing SMB authenticationJJ
`- Re: Confusing SMB authenticationPaul

1
Confusing SMB authentication

<lg7e63882lr$.1ssbjkcqzhnb2$.dlg@40tude.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6160&group=alt.windows7.general#6160

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jj4pub...@outlook.com (JJ)
Newsgroups: alt.windows7.general
Subject: Confusing SMB authentication
Date: Mon, 5 Jun 2023 14:20:14 +0700
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <lg7e63882lr$.1ssbjkcqzhnb2$.dlg@40tude.net>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="1a1546c8067b2f90ecbd5e7aaf418997";
logging-data="315934"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/HVkiATKAHZJS1W+4cBsEkxyFOUfMqdjQ="
User-Agent: 40tude_Dialog/2.0.15.84
Cancel-Lock: sha1:Onxqw+U/tWhSfgm/lYHlo3PHc4c=
X-Bitcoin: 1LcqwCQBQmhcWfWsVEAeyLchkAY8ZfuMnS
X-Face: \*\`0(1j~VfYC>ebz[&O.]=,Nm\oRM{of,liRO#7Eqi4|!]!(Gs=Akgh{J)605>C9Air?pa d{sSZ09u+A7f<^paR"/NH_#<mE1S"hde\c6PZLUB[t/s5-+Iu5DSc?P0+4%,Hl
 by: JJ - Mon, 5 Jun 2023 07:20 UTC

Here's the setup (Win7 Ultimate).

I have two user accounts in one system. With user name: `main` and
`secondary`.

I have two shared folders:

1. Folder AAA which only have access for the main account.

2. Folder BBB which only have access for the secondary account.

My LAN IP is 192.168.1.11, and is added into the HOSTS file as: lan

I logged into the system using the main account.

With Explorer, if I open `\\192.168.1.11\aaa`, it works OK.

If I open `\\192.168.1.11\bbb`, it complains about not having a permission.
OK... That's expected.

Now, if I open `\\lan\aaa`, it also works OK.

But If I open `\\lan\bbb`, it prompts for credentials. Inputting the
credentials for the secondary account never work. Whether I input the user
name as is, i.e. as `secondary`, or with the computer IP or name. i.e.
`lan\secondary`, `localhost\secondary`, `192.168.1.11\secondary`, or
`127.0.0.1\secondary`. None of them works. FYI, there's a relatively long
delay when `lan\secondary` or `192.168.1.11\secondary` is used. Suggesting
that, it tries to find the user account, but failed.

Why doesn't it work (even though all inputted user names point to the same
local account), and how to fix it, if it's possible?

Also, why didn't it prompt for credentials when accessed using IP address,
and how to force it prompt for credentials, if it's possible?

Re: Confusing SMB authentication

<u5k8l7$a6v9$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6162&group=alt.windows7.general#6162

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nos...@needed.invalid (Paul)
Newsgroups: alt.windows7.general
Subject: Re: Confusing SMB authentication
Date: Mon, 5 Jun 2023 05:07:50 -0400
Organization: A noiseless patient Spider
Lines: 68
Message-ID: <u5k8l7$a6v9$1@dont-email.me>
References: <lg7e63882lr$.1ssbjkcqzhnb2$.dlg@40tude.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 5 Jun 2023 09:07:51 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7b4ce0a4be66eba3ab0be0fddce3e3ab";
logging-data="334825"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Y52y4odUzYDz6y0gTFpxDERtpP/JKQ/w="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:KKBFs+cJkL14qIjWYI21WJBEDgo=
Content-Language: en-US
In-Reply-To: <lg7e63882lr$.1ssbjkcqzhnb2$.dlg@40tude.net>
 by: Paul - Mon, 5 Jun 2023 09:07 UTC

On 6/5/2023 3:20 AM, JJ wrote:
> Here's the setup (Win7 Ultimate).
>
> I have two user accounts in one system. With user name: `main` and
> `secondary`.
>
> I have two shared folders:
>
> 1. Folder AAA which only have access for the main account.
>
> 2. Folder BBB which only have access for the secondary account.
>
> My LAN IP is 192.168.1.11, and is added into the HOSTS file as: lan
>
> I logged into the system using the main account.
>
> With Explorer, if I open `\\192.168.1.11\aaa`, it works OK.
>
> If I open `\\192.168.1.11\bbb`, it complains about not having a permission.
> OK... That's expected.
>
> Now, if I open `\\lan\aaa`, it also works OK.
>
> But If I open `\\lan\bbb`, it prompts for credentials. Inputting the
> credentials for the secondary account never work. Whether I input the user
> name as is, i.e. as `secondary`, or with the computer IP or name. i.e.
> `lan\secondary`, `localhost\secondary`, `192.168.1.11\secondary`, or
> `127.0.0.1\secondary`. None of them works. FYI, there's a relatively long
> delay when `lan\secondary` or `192.168.1.11\secondary` is used. Suggesting
> that, it tries to find the user account, but failed.
>
> Why doesn't it work (even though all inputted user names point to the same
> local account), and how to fix it, if it's possible?
>
> Also, why didn't it prompt for credentials when accessed using IP address,
> and how to force it prompt for credentials, if it's possible?

When you operate in a Domain environment (with some machine as a Domain
controller), the credential issues are "unified". Any time you use credentials,
the Domain machine is the one that knows the details. Ralph on machine #1 is
the same as Ralph on machine #2. This greatly simplifies protecting content
from users, in the expected way.

You don't want the users to belong to the Administrator group.
An administrative user, may be given the "implicit TakeOwn green bar"
for gaining access to just about everything.

The Home Lan situation, where there is no Domain controller, is a mess.
I do not go into SMB assuming there is actual security. There are administrative
shares. What does it take to hack those ? I don't know. But the whole Home Lan
model just smells, from end to end. You might notice on the odd occasion,
you're able to access all of C: on a foreign machine.

*******

https://www.speedguide.net/faq/windows-is-asking-to-enter-network-credentials-473

username <=== what I use (out of ignorance)
servername\username <=== where servername is the machine with the share
\\servername\username
\username

So that is at least four formats.

Test with non-Administrative-Group users, and see if
there is any actual security :-)

Paul

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor