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

Offline 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.

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Samba
« Reply #15 on: April 29, 2007, 06:24:30 PM »
Before I try the bat files suggested I have noticed on other topic of concern.

This topic might be really a separate topic but I don't know.

Regarding Linux clients:
The groups have access to the shares no problems there.
But when one users writes to the share, the other group users cannot edit or delete any files on the shares.
The original user can delete files or edit those shares as long as that user was the one that put them on the server to begin with.

What could this be ??? I'm sure it's some permission topic of some kind. I have the users part of a group and that group has read/write access to that ibay etc. ???

Please advise

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Re: Samba
« Reply #16 on: April 30, 2007, 01:54:07 AM »
Quote from: "Agent86"
Before I try the bat files suggested I have noticed on other topic of concern.

This topic might be really a separate topic but I don't know.

Regarding Linux clients:
The groups have access to the shares no problems there.
But when one users writes to the share, the other group users cannot edit or delete any files on the shares.
The original user can delete files or edit those shares as long as that user was the one that put them on the server to begin with.

What could this be ??? I'm sure it's some permission topic of some kind. I have the users part of a group and that group has read/write access to that ibay etc. ???

Please advise


Ok I'm answering my own question but still have a question ?

I noticed in the SME server-manager that the ibay's were set for write-group. and that I had one ibay set for one group and another set for another group. I'm not sure if this has anything to do with this problem, but both users are in both groups so I should have been able to access each ibay and also allow one user to add files and also another user on another client should be able to edit those files and/or delete them. But they cannot for some reason. only when I set the ibay's that I want to share to the same group. then and only then can one client/user delete or edit files that another client/user added.

This is strange and don't know why this is, but I'll fool with it some more perhaps I can also try Windows now and perhaps something has changed. If not I'll try the bat file suggested to work on the Windows problem. And FYI The windows clients never did have this write/delete problem as with the linux clients. The windows problem was only the had to double login to the computer then to the mapped drive that was about the only problem on the windows clients. Anyhow just FYI on this subject.

Anyhow I'll post back once I research this some more. If anyone knows anything about this in the mean time please let me know.

Thanks to all.

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Confirmed
« Reply #17 on: April 30, 2007, 11:26:58 PM »
So I have confirmed that the linux clients can write to the ibay but a different user from the same group can't delete or edit the files that were previously added by another user of the same group.

I don't get it ??? Is this normal ???

Please advisee
Thanks

Offline TrevorB

  • *
  • 259
  • +0/-0
    • http://www.batley.id.au
Re: Confirmed
« Reply #18 on: May 01, 2007, 12:42:42 AM »
Quote from: "Agent86"
So I have confirmed that the linux clients can write to the ibay but a different user from the same group can't delete or edit the files that were previously added by another user of the same group.

I don't get it ??? Is this normal ???

Please advisee
Thanks
If you believe that this is a bug (which it appears to be), please raise a bug in bugzilla. Please explain fully the symptoms and the tests performed (including permissions on the files in the ibay).

This is the ONLY way the developers will look at it.

Good Luck
Trevor B

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Thanks
« Reply #19 on: May 05, 2007, 03:41:56 AM »
Well before entering as a bug, I would like to make sure I understand the permissions of the ibays, I mean when I tell the ibay that the group has write access/ and everyone read ? Am I understanding that the group can write, but can the group delete or edit files that other group users have added ???? If this is the way SME works then I guess it's not a bug, but if SME is intending for group/write to mean write/delete/edit then all group users should be able to do this with all files. But if SME is intending for group/write to mean write only, then perhaps this makes sense that each user can write files and read them but cannot delete files which another user has added.

Please advise what SME means by group/write in the server-manager.

Thanks for the help

Offline TrevorB

  • *
  • 259
  • +0/-0
    • http://www.batley.id.au
Re: Thanks
« Reply #20 on: May 06, 2007, 01:25:00 PM »
Quote from: "Agent86"
but if SME is intending for group/write to mean write/delete/edit then all group users should be able to do this with all files.
This is what group write means. All users who belong to this group should be able to write/delete/edit.

It is possible that in this case it is only recognising one of their groups, and if that is the case, it is a bug

Trevor B

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Thanks I'll look into this
« Reply #21 on: May 12, 2007, 04:20:10 AM »
Thanks I'll look into this some more and probably will have to post a bug.

Thanks