strong textHey I’m trying to setup Samba on Linux Mint.
I can see the folder that I want to share on my Window’s 10 computer.
but when I click on it
it’s let’s me put the user name and password in.
but when I click on the login
it’s say wroung user name or password???
I assume you’re trying to connect from the Linux box (using Samba) to the Windows box. In that case, the username and password would be the one for the device hosting the share… so a Windows username and password and not your Linux credentials.
[MyShare]
comment = YOUR COMMENTS
path = /your-share-folder
read only = no
guest ok = no
browsable = yes
writable =yes
force user = \chris
Torrent’s share
[Torrent’s Server Test]
comment = Torrent’s Test Server
path = /home/chris/Torrent’s Server
read only = no
guest ok = no
browsable = yes
writable =yes
force user = \chris
In a config file a \ is frequently and escape char. So it might not be harmful, but it’s definitely unnecessary and might actually cause a problem.
force user = chris
Did you set the password for user chris? Can you log into a terminal shell (csh, bash or whatever) or with SSH using that user ID?
So you need to create the user account in the Linux OS. You should be able to log into it. (There are ways to disable the login later if you don’t want that, but for now, get that working first. This way you know the userID and password is good.)
Then use the command smbpasswd to set the password: smbpasswd -a chris
then apparently you need to make sure the account is enabled: smbpasswd -e chris
Also, your Windows network, is it in a Workgroup? The default workgroup is WORKGROUP. This is the Samba default as well, but if you use something else, you’ll need to configure that. (I prefer to use HOME for example.)
In order for all the devices to see each other, they need to all be in the same workgroup or domain. (You only would have a domain if you had a Windows Server, and I doubt you’ve got that going on.)
But it is good advice, check the user works at all, with logging on locally to the Mint box with it or over SSH.
I’d also go to the folder with the user and see if I can see the folder locally and whether I can open files and create files.
I’m assuming the user Chris is set up correctly on the Mint box and that it has the rights to look at the shared directory.
Edit: smbpasswd -ae chris should add and enable it in one go, although I haven’t tried that - I haven’t added a user to Samba in a while.
You are also correct, he need to ensure the workgroup settings are the same on both devices.
A useful hint, if the username and password are the same on both devices (Linux and Windows), Windows won’t prompt for a password when you try and connect.
So at the last picture is were you get the wrong user name or password error?
The Samba service uses it own users and passwords, so you have to make one with the smbpasswd command:
smbpasswd -a chris
-a will add a user, -x remove.