how to create a local share on local computer

Discussion in 'Windows Networking' started by muelle60, May 11, 2006.

  1. muelle60

    muelle60 Guest

    Hello,

    we want to create a share on a computer. the name is services.domain.com. in
    the dns I created a CNAME record "intranet" for "services" (A record). so i
    can use intranet.domain.com like services.vescore.com.

    But I do have some problems using network shares using my logical name
    (intranet).

    I added this reg key to the computer:
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters]
    "DisableStrictNameChecking"=dword:00000001

    after this I can map to a share from any computer in the network to intranet:
    net use Z: \\intranet\MyShare

    The command completed successfully.

    If I try this on the services computer localy, it does not work:
    net use Z: \\intranet\MyShare
    -> prompts for login and password -> I enter the correct credentials -> but
    the error is:
    System error 1326 has occurred.

    Logon failure: unknown user name or bad password.

    If I try:
    net use Z: \\services\MyShare

    It works!

    What is the problem?

    Thanks.

    Christian
     
    muelle60, May 11, 2006
    #1
    1. Advertisements

  2. In
    I assume the 'services' computer is using the same DNS server as the others.

    From the services' computer, when you ping 'intranet', what does it resolve
    to? Does it resolve to the same IP that intranet.vescore.com or
    intranet.domain.com resolves to?

    If you attempt to map to \\intranet.vescore.com (or dintranet.domain.com,
    whichever you are using), does it work?

    --
    Ace

    This posting is provided "AS-IS" with no warranties or guarantees and
    confers no rights.

    Having difficulty reading or finding responses to your post?
    Instead of the website you're using, I suggest to use OEx (Outlook Express
    or any other newsreader), and configure a news account, pointing to
    news.microsoft.com. This is a direct link to the Microsoft Public
    Newsgroups. It is FREE and requires NO ISP's Usenet account. OEx allows you
    to easily find, track threads, cross-post, sort by date, poster's name,
    watched threads or subject.

    It's easy:
    How to Configure OEx for Internet News
    http://support.microsoft.com/?id=171164

    Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT, MVP
    Microsoft MVP - Directory Services
    Microsoft Certified Trainer

    Infinite Diversities in Infinite Combinations
    Assimilation Imminent. Resistance is Futile
    "Very funny Scotty. Now, beam down my clothes."

    The only thing in life is change. Anything more is a blackhole consuming
    unnecessary energy. - [Me]
     
    Ace Fekay [MVP], May 11, 2006
    #2
    1. Advertisements

  3. muelle60

    muelle60 Guest

    Hello,

    #1 there is only one domain: vescore.com (I use domain.com like foo.com)
    #2 In the DNS there is a A record 172.16.129.100 for services.vescore.com
    and a CNAME record intranet pointing to services.vescore.com
    #3 So the ping returns for intranet und services 172.16.129.100

    I think the problem is the authentification when I use net use.

    net use \\services\MyShare uses the current credentials
    net use \\intranet\MyShare uses ???, I think he can not resolve the
    underlying machine, which he uses to check user name and password

    Regards
    Christian

     
    muelle60, May 11, 2006
    #3
  4. Greetings,

    Is the computer that has the share joined to the domain? If so, is the
    permissions of the share setup for Domain Users (or whatever group your
    account belongs to)?

    Also check to ensure the computer you are using to test the connection
    inside the network has the server as the DNS.

    Hope this helps,

    --
    Louis Vitiello Jr.
    ------------------------------
    MCSE, MCSA, MCP, A+/N+
    ERCP XP Pro / Net Concepts


     
    Louis Vitiello Jr., May 11, 2006
    #4
  5. muelle60

    muelle60 Guest

    Hello,

    again, we have one domain: vescore.com, all computers are in the domain, the
    services and intranet is the same server!

    I want to map a share on the local computer:

    \\services\MyShare -> works
    \\intranet\MyShare -> does not work

    I use the same login account (local Administrator or a domain account). If I
    use the pyhsical computer name it works local, it does not work if I use the
    logical name.

    And both methods work if I map the share from another computer in the domain.

    Can it be that the computer does not know the login accounts if I use the
    logical computer name for local login?

    Regards
    Christian

     
    muelle60, May 12, 2006
    #5
  6. In
    Christian, the issue appears to be an NTLM related authentication issue. If
    you map using the actual computer's NetBIOS name, then it will use the
    current logged on user's access token. A CNAME will not use this and
    therefore you will need to supply credentials. The reg entry is good for
    resolving, but can't be mapped or made to use the access token for
    authentication. One way to map it is to physically go to the machine, and
    map the drive by either using Windows Explorer, Tools, Map Drive, supply the
    UNC and click on "use a different username". You can also batch it by using:

    net use \\intranet\MyShare /user:username password /persistent:yes

    (The persistent parameter will map it each time a user logs on).

    Ace
     
    Ace Fekay [MVP], May 12, 2006
    #6
  7. muelle60

    muelle60 Guest

    Hello,

    yes I know this and I also used these options (/user), but it does not work.

    I used the local admin account and a domain account, but no success.

    The error message is:

    System error 1326 has occurred.

    Logon failure: unknown user name or bad password.

    Any other ideas?

    Regards
    Christian
     
    muelle60, May 12, 2006
    #7
  8. In
    Hmm,

    This has always been an issue with CNAMES. Curious, from what operating
    system to what operating system are you trying to map?

    See if this helps:
    http://www.chicagotech.net/systemer...on failure: unknown user name or bad password.

    I assume that you read this article and how you were aware of the
    DisableStrictNameChecking reg entry?
    281308 - Connecting to SMB Share on a Windows 2000-Based Server May Not Work
    with an Alias Name [Doesn't work with CNAMES]:
    http://support.microsoft.com/?id=281308

    Ace
     
    Ace Fekay [MVP], May 13, 2006
    #8
  9. muelle60

    muelle60 Guest

    Hello,

    as I said: From any pc it works, but not on the local machine.

    Yes I know the kb-article and I added already this reg entry, because of
    this it works from remote machines.

    But I dont know, why it dont work localy.

    Any ideas?

    Thanks.

    Regards
    Christian

     
    muelle60, May 14, 2006
    #9
  10. In
    Then may I *assume* it's XP? Or any other operating system?
    I was merely asking *IF* that was the article.
    Probably because of what I posted earlier. My original thought was that it
    is trying to authenticate with a matching access token with the actual
    NetBIOS name of the machine (kind of like the same function when you use
    nbtstat) and it won't accept a CNAME for an authentication source.
    FYI, for what it's worth, here's info on the nbtstat command:
    Understanding an Nbtstat -n output - Microsoft Windows 2000 Server
    Documentation:
    http://www.microsoft.com/windows200...r/help/sag_WINS_add_NetbiosNamesReference.htm


    Maybe you can *force* the machine itself into believing it has TWO NetBIOS
    names, one of them being the other one.

    How can I define multiple NetBIOS names for a machine:
    http://www.windows2000faq.com/Articles/Index.cfm?ArticleID=14475

    Windows NT Windows Names Aliases - cnames and dupe names:
    http://www.experts-exchange.com/Operating_Systems/WinNT/Q_20410956.html

    If that doesn't work, than I'm fresh out of ideas.

    Ace
     
    Ace Fekay [MVP], May 15, 2006
    #10
  11. muelle60

    PSchneider

    Joined:
    Oct 4, 2006
    Messages:
    1
    Likes Received:
    0
    Did you ever get this working? I have exactly the same problem, but nothing suggested here so far seems to resolve it.
     
    PSchneider, Oct 4, 2006
    #11
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.