Koozali.org: home of the SME Server

SME and Samba Shares

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
SME and Samba Shares
« on: April 17, 2007, 05:48:52 PM »
Hi all

I was wondering why ? when I login to my windows that I can not automatically access the network drive unless I login again.

I mean to say that I login to windows as my user and pass that is a SME user, and then when I click on my computer, then the mapped network drive the screen pops up and makes me login again.

Is there a way to be logged in when I login to windows ???

Linux clients do not have this problem I simply login and have access to my files/folders.

Please advise
Thanks

Online Stefano

  • *
  • 10,894
  • +3/-0
Re: SME and Samba Shares
« Reply #1 on: April 17, 2007, 05:54:14 PM »
Quote from: "Agent86"
Hi all

I was wondering why ? when I login to my windows that I can not automatically access the network drive unless I login again.

I mean to say that I login to windows as my user and pass that is a SME user, and then when I click on my computer, then the mapped network drive the screen pops up and makes me login again.

Is there a way to be logged in when I login to windows ???

Linux clients do not have this problem I simply login and have access to my files/folders.

Please advise
Thanks


what's the windows version?

Ciao

Stefano

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
SME and Samba Shares
« Reply #2 on: April 17, 2007, 10:41:08 PM »
Do you have the SME Server configured as a domain controller? Are your workstations joined to the domain? If so everything should work for Windows 98 and up AFAIK (although you might need to add a registry patch in some rare cases).
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline idp_qbn

  • *****
  • 347
  • +0/-0
SME and Samba Shares
« Reply #3 on: April 18, 2007, 10:15:25 AM »
Hi,
Three possibilities:

1) make sure the Windows username and password are the same as the SME username and password.....especially Upper/Lowercase.

2) When Windows asks you to log on to the SME file share, make sure the "Reconnect at Logon" box is ticked.

3) If necessary, use the "Connect using a different username" and supply yhe SME username and password.

Cheers

Ian
___________________
Sydney, NSW, Australia

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Re: SME and Samba Shares
« Reply #4 on: April 21, 2007, 01:22:25 AM »
Quote from: "nenonano"
Quote from: "Agent86"
Hi all

I was wondering why ? when I login to my windows that I can not automatically access the network drive unless I login again.

I mean to say that I login to windows as my user and pass that is a SME user, and then when I click on my computer, then the mapped network drive the screen pops up and makes me login again.

Is there a way to be logged in when I login to windows ???

Linux clients do not have this problem I simply login and have access to my files/folders.

Please advise
Thanks


what's the windows version?

Ciao

Stefano


WinXP Home

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
RE:
« Reply #5 on: April 21, 2007, 01:27:44 AM »
Quote from: "cactus"
Do you have the SME Server configured as a domain controller? Are your workstations joined to the domain? If so everything should work for Windows 98 and up AFAIK (although you might need to add a registry patch in some rare cases).


Yes I do have SME server configured as a domain controller,

Not sure if it makes any difference, but I also have the workgroup and the server name are different. Is this ok ?

And roaming profiles set as  ( no ) I'm guess this is ok ?

Thanks all

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
SME and Samba Shares
« Reply #6 on: April 21, 2007, 01:30:43 AM »
Quote from: "idp_qbn"
Hi,
Three possibilities:

1) make sure the Windows username and password are the same as the SME username and password.....especially Upper/Lowercase.

2) When Windows asks you to log on to the SME file share, make sure the "Reconnect at Logon" box is ticked.

3) If necessary, use the "Connect using a different username" and supply yhe SME username and password.

Cheers

Ian


1) Yes
2) Yes
3) Tried it, same effect.

Very strange, once I login to the mapped drive using the exact same user and pass as I did when I logged into windows, it stays logged in until reboot ??

So I'm guessing I should be able to access the drive without any login again. ?? but just can't for some reason.

Offline idp_qbn

  • *****
  • 347
  • +0/-0
SME and Samba Shares
« Reply #7 on: April 21, 2007, 08:21:01 AM »
Hi,
It looks like a Windows problem to me. Your drive is not being mapped properly. Perhaps a registry problem.
Try
1) In "My Computer/Tools", Disconnect the drive, then reconnect, making sure the 'Reconnect at logon" box is ticked.

If that does not work, try
2) Make a BAT file that runs at logon (edit this to reflect your sme server name and the ibay name. You can remove the lines marked rem):

rem make sure the drive is not connected
rem it does not have to drive x:
net use x: /d
rem now connect the drive we want
net use x: \\yousmeserver\ibayname /persistent:no
rem the persistent:no disconnects the drive when you log off


If that does not connect, then you probably have some mismatch between your Windows and SME usernames/passwords. Try resetting them both to make sure they are the same. Any Capital letters involved?

You can also try:
net use x: \\yousmeserver\ibayname user:\smedomain name\username /persistent:no

Lookup "net use" on your Windows PC. Go to a DOS box and type "net use /?" without the quotes of course.
___________________
Sydney, NSW, Australia

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
But why does it login
« Reply #8 on: April 21, 2007, 04:05:56 PM »
I'll fool with it some more.

I would have thought that if I login to windows using a user/pass that is also on the SME box, then it would work, and strange that when access the mapped drive that I have to re-enter the same user and pass and then it works. If it were a mismatch you would think that it would not allow me to login to the mapped drive with that user and pass etc. ?

It must be some windoze problem cause it does it on both my local network windoze machines, and the linux systems on the network all work perfectly.

Offline pmstewart

  • *
  • 73
  • +0/-0
SME and Samba Shares
« Reply #9 on: April 21, 2007, 07:58:29 PM »
It's my understanding that Windows XP ** Home** edition lacks certain network capabilities.....could this be one of them?

Offline idp_qbn

  • *****
  • 347
  • +0/-0
SME and Samba Shares
« Reply #10 on: April 21, 2007, 10:52:29 PM »
Hi again.
Agent86: did you try the logon script I suggested? If so, did it work or fail?
Did you try Disconnect and then Reconnect? Did it work or fail?

pmstewart: WInXP Home does use "net use" BUT it can't connect to the domain as a member.

I thought there was a registry hack that might help WinXP machines to connect to the domain as a member but I can't find one.

Still, my home setup is a WInXP Home and I have no problem connecting to the shares....either the Ibays or the user home directory. My SME is NOT a Domain Controller.

Agent86:the problem is evident on two PCs, so it suggests the problem is the SME setup. And I know this has come full circle but I am stumped.

Does your SMEserver **NEED** to be a Domain Controller? This could be your problem? (I don't know, just a suggestion)

If you try my suggestions and they work, then cross your fingers and thank some "one-eyed yellow idol to the north of Khatmandu" (Google it).

Otherwise: Perhaps some SME guru could buy into this.
Log this as a bug in bugzilla and someone will pick it up.
___________________
Sydney, NSW, Australia

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
SME and Samba Shares
« Reply #11 on: April 23, 2007, 02:42:16 AM »
Just for curiosity .... is your workgroup called the same on your xp box as is on your SME box.

If you run XP Home then call your workgroup the same as on the workgroup/domain on SME.

I run both XP pro and XP home without problems ... on xp pro domain is set to workgroup name of SME the same goes for workgroup name on XP home.

Regards,

Tib

Offline NickR

  • *
  • 283
  • +0/-0
    • http://www.witzendcs.co.uk/
SME and Samba Shares
« Reply #12 on: April 25, 2007, 10:19:25 AM »
XP Home cannot become a member of a domain - it has no mechanism to do so.  It connects to workgroups only.  This and the lack remote desktop support are the 2 major differences between XP Home & XP Pro.

This article may provide a useful workaround for you.
--
Nick......

Offline mike_mattos

  • *
  • 313
  • +0/-0
SME and Samba Shares
« Reply #13 on: April 25, 2007, 08:02:26 PM »
the sme server manager screen has a windows workgroup link, make sure your PC is in the same workgroup as the SME box and you should be OK

Also, windows seems to try to capitalize user names, SME wants all lower case, it can be very frustrating.

ANother tweak is to map a drive with automatic reconnect, that seems to help too.
...

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
I'll try this weekend
« Reply #14 on: April 28, 2007, 04:32:09 AM »
Quote from: "idp_qbn"
Hi,
It looks like a Windows problem to me. Your drive is not being mapped properly. Perhaps a registry problem.
Try
1) In "My Computer/Tools", Disconnect the drive, then reconnect, making sure the 'Reconnect at logon" box is ticked.

If that does not work, try
2) Make a BAT file that runs at logon (edit this to reflect your sme server name and the ibay name. You can remove the lines marked rem):

rem make sure the drive is not connected
rem it does not have to drive x:
net use x: /d
rem now connect the drive we want
net use x: \\yousmeserver\ibayname /persistent:no
rem the persistent:no disconnects the drive when you log off


If that does not connect, then you probably have some mismatch between your Windows and SME usernames/passwords. Try resetting them both to make sure they are the same. Any Capital letters involved?

You can also try:
net use x: \\yousmeserver\ibayname user:\smedomain name\username /persistent:no

Lookup "net use" on your Windows PC. Go to a DOS box and type "net use /?" without the quotes of course.

Got quite busy, I'll try this on this Sat to and post back the results

Thanks all for helping.