Velvet Star Monitor

Standout celebrity highlights with iconic style.

general

Windows 10 login information for accessing samba share protected directory located on Ubuntu 18.04

Writer Matthew Martinez

Can someone give an example of login information (username and password) on Windows 10 for the samba protected directory which is located on Ubuntu 18.04?

I have created a user in Ubuntu and added smbpasswd for him, but I don't know how the username should look to be able to get into the protected directory.

Enter network credenitals in Win 10

Error

Accessing a public directory from Windows is working without a problem.

9

1 Answer

As for this specific error message:

Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again.

The problem here is that when a user on Windows first makes contact with a server it automatically passes that users' local login username. If you have a public share it remembers that it took that username successfully. When you try to connect to a private share and don't pass the exact same username and password, it thinks you are trying to access with another name.

Some workarounds:

1) Map the Windows user to the local Linux user - this is useful for Win10 users who log into their systems with a Microsoft account.

  • Create a file at /etc/samba/smbusers

  • Map the local Linux user to the Windows user by adding the conversion to the file. For example:

luci =
john = "John Smith"
  • Then add a reference to the map in /etc/samba/smb.conf in the [global] section:
username map = /etc/samba/smbusers
  • Finally restart smbd: sudo service smbd restart

2) Make another connection to the Linux server

Windows can address a Linux server in two (three in Win10) different ways. By hostname, by ip address, or by mDNS name (Win10 only):

\\ubuntu\Protected
\\192.168.0.100\Protected
\\ubuntu.local\Protected

Even though all of these point to the same machine, Windows sees them a three separate hosts.

3) Map the "network drive"

When mapping a drive, select the "connect using different credentials" option.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy