Page 1 of 1

samba shares need password to access server

Posted: Sat Mar 07, 2009 10:49 am
by gjc1000
One of the functions of my HDA is to allow the MS Windows boxes access to the media files for viewing on there own computer. Samba works fine, but it asks for user name and password first. Is there a way that I can disable that or have the user name and password automatically given when a windows computer wants access?

Re: samba shares need password to access server

Posted: Sat Mar 07, 2009 1:42 pm
by cpg
ahh,

i bet it's XP home.

XP pro has an option to "Remember this password"

if the share is allowed to everyone but *not* writeable it should not need to ask a password (please file a bug if it does!).

now, in XP home you can "Map a network drive" from \\hda\movies into, say, drive z:\

there is an option to reconnect at logon which will take care of mapping the drive forever after that.

Re: samba shares need password to access server

Posted: Sat Mar 07, 2009 2:47 pm
by gjc1000
yep, your right. The Vista and XP Pro machine do fine, but the XP Home does not. I had already mapped the drive but it still asks for a user/password. This machine also use the printer hooked up to the HDA and it has to be logged in also. What we do now to print is, connect to a share on the HDA, enter user/password, then we can print. Any work around for that?

Re: samba shares need password to access server

Posted: Sat Mar 07, 2009 3:01 pm
by nemolomen
Hi gjc1000,

Are you logging into the XP home machine as a user that exists on the HDA? With the same password?

Also, which service pack level do you have on the XP Home machine (SP1, SP2, SP3)?

nemolomen

Re: samba shares need password to access server

Posted: Sat Mar 07, 2009 3:05 pm
by gjc1000
ah, no she is not, I will match up the log in and give it a whirl. Using XP SP2

Re: samba shares need password to access server

Posted: Sat Mar 07, 2009 3:35 pm
by cpg
there is a little link saying "use a different user" in the map network drive.

it lets you specify the user.

Re: samba shares need password to access server

Posted: Sat Mar 07, 2009 3:45 pm
by cpg
we did file bug#20 to track the printing issue.

http://bugs.amahi.org/issues/show/20

there was a proposed solution that it was simple and we're trying to test. perhaps you can help when we have the proposed fix.

Re: samba shares need password to access server

Posted: Sat Mar 07, 2009 4:30 pm
by gjc1000
love to

Re: samba shares need password to access server

Posted: Mon Jul 06, 2009 5:27 am
by Lincee
One of the functions of my HDA is to allow the MS Windows boxes access to the media files for viewing on there own computer. Samba works fine, but it asks for user name and password first. Is there a way that I can disable that or have the user name and password automatically given when a windows computer wants access?
ATM i cant reproduce the error.
have you setup printer sharing correctly?
also, switching to SP3 is a rather good idea as it adresses some networking issues as well as all the latest security patches.
what i always do:

create a batch file, c:\networksetup.cmd

then add the following line:
NET USE J: \\HDA\%USERNAME% /USER:%USERNAME% password

make a shortcut in your startup folder.

this adds a share whenever you login, that way you dont manually have to connect to a share everytime you want to print.

replace password with the password you set on the HDA for that user.
alsmo, make sure then username/password are both EXACTLY! the same on the xp client, AND the HDA
windows by default tries to login to other servers with its currently used username/password.

its a quick fix, but it works :)

============================== edit =========================
the above was adressed to the printing issue,
the networksetup.cmd can be suited for other shares as well :)