Fintan Ryan wrote:
> I got the following question this morning from a friend of mine, but I'm
> machine. Now the problem is, every time we try to access the samba
> share, we get asked for a username and password. Now, I know how picky
If the user on the NT machine has a samba account on the samba server
NT usually automatically sends the user's password to the samba server.
You might want to check if there's a registry setting for that.
The easiest way of ensuring that the samba and NT accounts match is to
set samba up to use the domain controller for authentication.
> Samba is, so the NT user and the UNIX user both exist, both have the
> same username (case and everything) and both have the same password
> (case and everything). Now, if I give the username and password, the NT
> machine can see the shares. Thing is, we need to run the script
> automatically, so the NT machine needs to be able to access the share
Is this being run from a service or an application? If it's being run
from a service does the user the service is being run as have an
on the samba server?
> without manual intervention. We don't want to map a drive, cos really,
> UNC paths make a lot more sense. We have made the NT registry
> "EnablePlainTextPassword" change but to no avail.
This shouldn't be needed. Encrypted passwords work fine and are
by default in recent versions of samba.
Ok. I have just noticed Gary Burke gave a concise answer to this
security = domain
password server = <PDC>
on a couple of machines here and it works fine.
security = server forwards logins to the server whereas security =
means samba trusts the authentication preformed by clients in the same
domain, provided the client can verify that it is a member of the domain
// Donnchadh O Donnabhain mailto:d_odonnabhain at vistech.ie
// Vistech Software http://www.vistechsoftware.com
// Inchvale House, Douglas West, Cork, Ireland
// Ph. +353-21-918166 Fax +353-21-896142
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!