Samba- Linux asks for username and password but windows dose not

Asked by Ben Abrams

I am running a 10.14 Ubuntu server that is set up to share files with windows computers. I have two problems:

1. My server doesn't show up under networks in Ubuntu but I can connect to them using smbclient -L //Ubuntu-server -U user or under places connect to server and unter tyhe server name at which point I am prompted for user name and password which is a good thing.

2. A more problematic issue: When I connect to the server in Ubuntu it asks for a user and password however in Windows it is ignoring the fact that in my /etc/samba/smb.conf has security = user meaning that it should ask for a user name and password for authentication I am am using the tdbsam option which I have added users using the tdbpasswd command. I have looked all over the forums and found nothing like this.

This is my /etc/samba/smb.conf:

# Samba config file created using SWAT
# from UNKNOWN (127.0.0.1)
# Date: 2010/07/17 17:18:34

[global]
 server string = %h server (Samba, Ubuntu)
 unix password sync = Yes
 dns proxy = No
 username = @users
 valid users = ben, staff, test
 admin users = ben

['share']
 comment = ATC Ubuntu Samba Server
 path = /export/staff/
 read only = No
 create mask = 0755

[printers]
 comment = All Printers
 path = /var/spool/samba
 create mask = 0700
 printable = Yes
 browseable = No
 browsable = No

[print$]
 comment = Printer Drivers
 path = /var/lib/samba/printers

Any help would save me many more hours of frustration.

Thanks in advance for any help!

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu samba Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

You have setup some valid users so you must authenticate as them. All you have to do is tell your OS to remember the password. Then next time you access it the stored password will be used.

Revision history for this message
Ben Abrams (ben-computersolutions) said :
#2

Thanks for the quick response time!

I have setup the users both in the Ubuntu system and in the tdsam using the tdbpasswd command. I also have an acount of the client with the ben username but I the dialog box like it did with the Ubuntu machine even though they are both using the ben username. I dont think I understand what you mean about setting up valid users I already had that set up and it works great from Ubuntu but not windows. Please help me understand what you are trying to say.

Thanks again!

Revision history for this message
Attila Vági (avagi) said :
#3

I belive, you set up the same user and password under samba, as in windows.
In this case windows automatically uses the actual credentials and can login into your samba share.

Can you help with this problem?

Provide an answer of your own, or ask Ben Abrams for more information if necessary.

To post a message you must log in.