Hi, I’ve been struggling a bit with SAMBA. Ok, not a bit, A LOT. I’ve been trying to get that sorted for like a week but finally gave up.
I can see my shares on PC’s on the network, but when I put login and pass, it just constantly requires them again, and again, and again and I can do it till the rest of my life and still won’t let me access them. Shares in question are named Swap and Backup.
I’m following steps on Samba | Reference | openSUSE Leap 15.6 running openSUSE Leap and trying to connect from openSUSE Tumbleweed, all installed yesterday. Leap is the server that I want to share 2 drives to be available on windows and Linux.
Steps I took so far:
YaST → Software → Software Manager → View → Patterns → File Server → Install
Configure SAMBA from YaST → Startup → start on boot
Added shares through “Shares” tab → read only: no → guest access: yes ->Allow users to share directories → allow Guest Access
Identity tab → Workgroup left default (WORKGROUP) → Not a DC → NeBIOS Hostname: server → WINS Server Support
Trusted Domains and LDAP not touched as I’m not sure if I need it and not sure what do they do.
Samba password set up, user added.
Samba is running.
Samba version: 4.19.9-git.422.34370c5a3aa150600.3.15.1SUSE-oS15.0-x86-64
samba.conf:
Loaded services file OK.
Weak crypto is allowed by GnuTLS (e.g. NTLM as a compatibility fallback)
aa
.Server role: ROLE_STANDALONE
# Global parameters
[global]
logon drive = P:
logon home = \\%L\%U\.9xprofile
logon path = \\%L\profiles\.msprofile
map to guest = Bad User
netbios name = SERVER
printcap name = cups
usershare allow guests = Yes
usershare max shares = 100
wins support = Yes
idmap config * : backend = tdb
cups options = raw
[homes]
browseable = No
comment = Home Directories
guest ok = Yes
inherit acls = Yes
read only = No
valid users = %S %D%w%S
[profiles]
comment = Network Profiles Service
create mask = 0600
directory mask = 0700
path = %H
read only = No
[users]
comment = All users
inherit acls = Yes
path = /home
read only = No
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
inherit acls = Yes
path = /home/groups
read only = No
[printers]
browseable = No
comment = All Printers
create mask = 0600
path = /var/tmp
printable = Yes
[print$]
comment = Printer Drivers
create mask = 0664
directory mask = 0775
force group = ntadmin
path = /var/lib/samba/drivers
write list = @ntadmin root
[Backup]
comment = backup
guest ok = Yes
path = /run/media/server/Backup
read only = No
[Swap]
comment = lanswap
guest ok = Yes
path = /run/media/server/Swap
read only = No
pdbedit -L output:
server:1000:Server
root:0:root
Chmod for shares set to 757.
So. What am I missing? User is added to access shares, I can connect to them on other PC’s but when prompt for login and pass comes up - nothing happens, just reappears again and again and so on.
I’ve tried some options online after extensive googling, but they’re either posts from 2011, doesn’t work or borked my connection and I had to change nsswitch.conf to get internet back. Currently I reinstalled completely openSUSE leap and did all the steps above to have a clean, uninterrupted from previous attempts SAMBA.