None of the Manjaro installs on my computers will allow me to hit my Win7 network files whereas Mint will connect.
Manjaro will find the network, find the SMB portion but when authentication required and I get to the password part the password is rejected.
I’ve looked at the /etc/samba/smb.conf and see that it is different from what I have on Mint. I had to make changes in Mint and it was in Global. This works for me in Mint but not in Manjaro.
Any help is appreciated.
[global]
## Browsing/Identification ###
# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = WORKGROUP
client max protocol = NT1
SELECT ALL
#disable netbios = yes
client min protocol = NT1
# server min protocol = NT1
# server string is the equivalent of the NT Description field
server string = %h server (Samba, Ubuntu)`
I’ve placed ### over personal names of server files and public is the one allowed shared access on WIN 7
Sharename Type Comment
--------- ---- -------
ADMIN$ Disk Remote Admin
C$ Disk Default share
E Disk
G Disk
G$ Disk Default share
###### Disk
IPC$ IPC Remote IPC
K Disk
K$ Disk Default share
L$ Disk Default share
Medical invoices Disk
Music Disk
print$ Disk Printer Drivers
Public Disk
Receipts Disk
############ Disk
Timematters Disk
Users Disk
SMB1 disabled -- no workgroup available
I replaced my SMB.CONF with one that Manjaro built. My thinking was perhaps there was something in that smb.conf that was Mint only. Not sure why it would be but it is an smb.conf I’ve been using for years with Mint.
[global]
workgroup = WORKGROUP
dns proxy = no
log file = /var/log/samba/%m.log
max log size = 1000
client min protocol = SMB2
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
pam password change = yes
map to guest = Bad Password
usershare allow guests = yes
name resolve order = lmhosts bcast host wins
security = user
guest account = nobody
usershare path = /var/lib/samba/usershare
usershare max shares = 100
usershare owner only = yes
force create mode = 0070
force directory mode = 0070
[homes]
comment = Home Directories
browseable = no
read only = yes
create mask = 0700
directory mask = 0700
valid users = %S
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
To answer this "What is the compelling reason for you to set the MAX protocol to NT1??? " I’d have to find the post in Mint that was from years ago but the smb.conf always worked with it so I never questioned. Maybe a WIN 7 thing???
I looked and “LmCompatibilityLevel” doesn’t even exist in my WIN 7 registry.
It just seems to be a password issue. Everything shows up but when I get to the authentication window and place the password, it isn’t accepted and I know it is the correct. The only difference is that on the Mint authentication I have to manually place johns-desktop into the user name in the box on authentication required
In the future, when providing code/output, please copy-paste that output in-between 3 backticks ``` at the beginning and end of the code/text so that the output looks like this:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
instead of like this:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.`
(as that makes both our lives much easier)
No need to do anything right now as I’m an editor here on this site and have fixed it for you already. However, in the future I might not see your post so review my edits by pushing the orange pencil above the post I just fixed.
Remove the entire MAX protocol from /etc/samba/smb.conf or comment away with a # as the first character.
Set the min protocol to SMB1
What is the Win7’s workgroup? If you don’t know: execute
nbtstat /c /n
on Win7 and correct in /etc/samba/smb.conf if not WORKGROUP
Are your user names on Windows and Linux identical?
Sorry about my incorrect syntax, I thought the quotes were the correct choice. I’ll try it with the backticks.
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\John>nbtstat /c /n
Local Area Connection 2:
Node IpAddress: [192.168.0.27] Scope Id: []
NetBIOS Local Name Table
Name Type Status
---------------------------------------------
JOHNS-DESKTOP <20> UNIQUE Registered
JOHNS-DESKTOP <00> UNIQUE Registered
JOHNS LINUX <00> GROUP Registered
JOHNS LINUX <1E> GROUP Registered
JOHNS LINUX <1D> UNIQUE Registered
..__MSBROWSE__.<01> GROUP Registered
C:\Users\John>
User in Manjaro is john and in Windows it is John (do caps make a difference)?
In the future, when providing code/output, please copy-paste that output in-between 3 backticks ``` at the beginning and end of the code/text so that the output looks like this:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
instead of like this:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
(as that makes both our lives much easier)
No need to do anything right now as I’m an editor here on this site and have fixed it for you already. However, in the future I might not see your post so review my edits by pushing the orange pencil above the post I just fixed.
Remove spaces from the workgroup on W7 and add workgroup = JOHNSLINUX if your workgroup is that… (I’m a bit confused now: why is the W7 WGP called JOHNS LINUX??? )
Yes, Linux is case-sensitive, Windows is not, so just to me sure, the username you fill in should be capitalised (as should the password)
Did any of the changes you made here have any effect or is the symptom still the same?
I’m calling it a day and tomorrow I will try again. I have 7 computers, two are Win only; two are dual boot manjaro / mint and the rest are mint. The two Manjaro installs just won’t work with Windows 7 and I don’t know why.
Please finish your and execute the commands again and provide the output of said commands: clicking doesn’t help us unless it provides an error message.
Sorry but I’ve given way too much time to trying to get this to work. I give up. Do I delete the post?
What was the final straw was this - I got on my 4 year old Samsung phone, used Cx File Explorer and could hit the network JOHNS-DESKTOP.
So I pulled out the old MacBook that is dual boot. Mint and Mac. I booted into Mint 20 and went to the Network. When the authentication screen opened I completed it and was taken to the Windows files.
So what conclusion can I come to? The two computers with Manjaro will not hit the network but every computer with Mint will do it. Conclusions to be made but perhaps it is a Samba issue?
Ha - well if you’re sticking with it I can for a while longer.
I created the directory /media/win7
Ran the command and this is the error message below -
mount.cifs: permission denied: no match for /media/win7 found in /etc/fstab
Busy day. Wife’s chemo, physical and occupational and physical therapist. I think I’ve decided that trying to get this to work for me is at the moment too much stress. So I’m going to pass on trying and maybe in the future samba install in Manjaro will work for me. It isn’t that big of a need, more of a want. I’ll just use Manjaro as I always have used it.
If you would be so kind to answer one more question I would appreciate it.
I know how to remove all instances of an install in the Deb world but if I wanted to purge all files and instances of Samba, what terminal command would I use? Maybe there is an incorrect something saved in an obscure samba file / cache, etc.
I won’t be sharing to windows, just from windows. Do I really need a full samba install to do that? Wouldn’t smbclient be all that is needed?
Long version: There is no client-only samba package, so unless you roll up your sleeves and bring out the compiler and publish one yourself, you’ll have to install the server to get the client…