Find the answer to your Linux question:
Results 1 to 10 of 10
We have recently migrated to samba share server from Windows server 2003. We do have a xp with service pack 2 at our clients pc. We have map drives at ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2009
    Posts
    6

    Samba Share Server + XP SP2


    We have recently migrated to samba share server from Windows server 2003. We do have a xp with service pack 2 at our clients pc. We have map drives at client pc for share folders. At samba we have created users and assign passwords for users. However we are now facing problem when user try to access share folder through map drive.

    The following error is appearing when user double click on map drive.

    "An error occured while reconnecting Z: to \\192.168.1.200\share-data

    Microsoft Windows Network: Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again.

    This connection has not been restored"

    This problem we do not face, if we allow share folder to all user by checking option "allow to all user" in samba. Whenever we restrict it some user the error become.

    We use "net use" command at client system to delete all map drives and then to reconnect it. Then it works ok.

    Kindly have your comments.

  2. #2

  3. #3
    Just Joined!
    Join Date
    Nov 2009
    Posts
    6
    Dear Many thx for your response,

    But when we allow "access to all" into samba share folder, this problem does not appear...

  4. #4
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,380
    yes, as the problem only appears, if user-to-share mapping comes into the game.

    It is some rather obscure policy, but to be fair: I haven't read the explaining articles, which are linked in the ms knowledgebase article I posted above.

  5. #5
    Just Joined!
    Join Date
    Nov 2009
    Posts
    6
    Many thanks... Still i am looking for solution...

  6. #6
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,380
    There is none.
    ms clearly states:
    "This behaviour is by design"

    The two "solutions" mentioned in the ms knowledgebase dont look so good:
    Change to IP or use different DNS names for the same server.

    That means essentially: Only one user authenticated share per servername.

    Ask microsoft, that they were thinking

  7. #7
    Just Joined!
    Join Date
    Nov 2009
    Posts
    2
    i m from Mr. Yameen company ,
    we use ubuntu 8.04.3 LTS for samba server ,
    remember our proxy server is also on linux and we are not using any DNS binding ,our client browse samba through ip , our client not using multiple samba servers or any other win server , we just use only one samba server and try to map as share drive with windows users.

    Aslo following smb.conf we used

    [global]
    log file = /var/log/samba/log.%m
    guest account = samba
    passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
    obey pam restrictions = yes
    username map = /etc/samba/smbusers
    map to guest = bad user
    veto files = /*.eml/*.nws/*.dll/*.mp3/*.MP3/*.mpg/*.MPG/*.vbs/*.VBS/*.exe/*.inf/*.0/*.000/*.7z/*.a00/*.a01/*.a02/*.ace/*.ain/*.apz/*.ar/*.arc/*.ari/*.arj/*.ark/*.axx/*.b64/*.ba/*.bh/*.boo/*.bz/*.bz2/*.bzip/*.bzip2/*.c00/*.c01/*.c02/*.car/*.cb7/*.cbr/*.cbt/*.cbz/*.cp9/*.cpgz/*.cpt/*.dar/*.dd/*.deb/*.dgc/*.dist/*.ecs/*.gz/*.gzi/*.hbc/*.hbc2/*.hbe/*.hpk/*.hyp/*.ipg/*.mpkg/*.package/*.sqz/*.tar/*.taz/*.tbz/*.tbz2/*.tg/*.tgz/*.tlz/*.tlzma/*.tz/*.uc2/*.vsi/*.xef/*.z/*.z01/*.z02/*.z03/*.z04/*.zap/*.zip/*.zipx/*.zix/*.zz/*.zoo/*.agif/*.apng/*.png/*.gif/*.biz/*.imj/*.jpe/*.jtf/*.kpg/*.kodak/*.pm/*.evo/*.f4v/*.gvi/*.gvp/*.ifo/*.imovieprj/*.m1pg/*.m4u/*.m4e/*.m2j/*.avi/*.movie/*.mp4/*.playlist/*.vdo/*.
    passdb backend = tdbsam
    passwd program = /usr/bin/passwd %u
    allow hosts = 192.168.1.0/255.255.255.0
    wins support = yes
    dns proxy = no
    writeable = yes
    server string = %h dataserver
    invalid users = root
    unix password sync = yes
    workgroup = HZCO
    syslog only = yes
    create mode = 777
    security = user
    syslog = 0
    usershare allow guests = yes
    panic action = /usr/share/samba/panic-action %d
    max log size = 1000
    directory mode = 777
    pam password change = yes


    [admin]
    guest account = samba
    writeable = yes
    path = /HZ/share-data/admin
    comment = Administration
    create mode = 777
    directory mode = 777
    browseable = yes
    valid users = haroon, hzco, lakhani, mehmood, zakaria

    [Audit-Data]
    guest account = samba
    create mode = 777
    path = /HZ/share-data/Audit-Data
    directory mode = 777
    browseable = yes
    writeable = yes
    valid users = ahmed, as1, as2, as3, as4, asim, farhan, hammad, haroon, hzco, iqbal, munir, yameen, zakaria

    [Audit-Staff]
    guest account = samba
    create mode = 777
    path = /HZ/share-data/Audit-Staff
    directory mode = 777
    browseable = yes
    writeable = yes
    valid users = ahmed, as1, as2, as3, as4, asim, farhan, hammad, haroon, hzco, iqbal, lakhani, munir, yameen, zakaria

  8. #8
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,380
    The directories and files are unneccasarily open (777), but other than that the config looks fine.

    As I said, the problem is not within samba.

    Windows simply wont allow to have multiple shares to one server with different user accounts.
    Did you read the ms knowledgebase?

    Error message when you use user credentials to connect to a network share from a Windows-based computer: "The network folder specified is currently mapped using a different user name and password"

  9. #9
    Just Joined!
    Join Date
    Nov 2009
    Posts
    2
    thanks for reply

    issue is we are mapping multiple folders in same share server with same user not different user .

  10. #10
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,380
    I dont know an answer to this.
    Probably windows tries to authenticate with its local user and / or domain user first
    before it uses the credentials you provide.
    But this is just a guess.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •