All Greek to me? What should I enter in LDAP server URL or how would I trust a domain? Excuse my ignorance. I assume LDAP not needed, as for Active Domain, how do I farm correct domain info from Mint system. Have entered;
Domain: WORKGROUP
& Mint password, but cannot establish trusted domain.
That shows the Tumbleweed configuration with changes half configured, kind of broken. I suggest you get rid of the “domain” configuration and switch on a configuration for a simple “workgroup”. And within that I suggest turn on the “users” share which will give you access to the filesystem tree of your user files. As it stands, you have turned-off the “users” share.
So, all that is needed is to edit Samba config file? I tried entering what thought sensible into all the Samba GUIs, though there are at least three if not four. But maybe the magic source is the config file proper?
You can edit the samba config file using either kwrite (if you use KDE) or gedit (for Gnome), either of these commands:
kdesu kwrite /etc/samba/smb.conf
or
gnomesu gedit /etc/samba/smb.conf
After that the first task is to use editor to make samba into a “workgroup” setup:
Change the [global] stanza from this:
[global]
workgroup = WORKGROUP
passdb backend = tdbsam
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = Yes
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
security = domain
wins support = Yes
usershare max shares = 100
idmap gid = 10000-20000
idmap uid = 10000-20000
to this
[global]
workgroup = WORKGROUP
netbios name = Tumbleweed
server string =
name resolve order = bcast host lmhosts wins
local master = yes
os level = 65
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
usershare allow guests = Yes
Make the workgroup name (e.g. WORKGROUP) to be exactly the same in all computers, windows and Linux.
Make the netbios name to be something you like (e.g. Tumbleweed).
Yes. A mistake. I’ve looked back and edited a few of the “mint” errors out.
While I’m here, let’s look at editing to allow access to the user file system.
Delete these “shares” completely (you can always go back and get them from the backup later if you feel the need):
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
guest ok = Yes
[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
These are kind-of different ways to do the same thing, so just dump them and focus on the “user” share (below)
Change this:
## Share disabled by YaST
# [homes]
# comment = Home Directories
# valid users = %S, %D%w%S
# browseable = No
# read only = No
# inherit acls = Yes
# guest ok = Yes
This looks like you were trying to change the original structure with the GUI in Yast (really tricky).
Change it back to the default, like so:
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
That will share only to the real user, others will be blocked. You can leave it like that and use credentials to get in or you can edit it to allow guests to get in without credentials. Which would you prefer?
If you use the share I left in the last post, you will need to create a password for the user who owns the user file system. Suppose your user name is donald. You will generate credentials with this command:
sudo smbpasswd -a donald
and the response should be like this:
donald@trump:~> sudo smbpasswd -a donald
New SMB password:
Retype new SMB password:
Added user donald.
donald@leap422:~>
Samba password can be different from the user password that donald has for normal user purposes.
Now when you access files other LAN computers, use that Samba password.
When you access for the first time (e.g. from Windows 10) the share might be invisible because you put in the line
I’m assuming you are using KDE. The “kdesu” command does not work outside of KDE.
The command I recommended to run is:
kdesu kwrite /etc/samba/smb.conf
That code is the age old recommended method, and if it doesn’t work for you then either your Tumbleweed has a bug or you have typed a typo or the file smb.conf no longer exists.
An alternative is this command line code:
su -c "dbus-launch /etc/samba/smb.conf"
Both of the versions above work for me, but I’m using 42.2, not Tumbleweed. Try the first, then the second, and if neither work I will show you a third method for opening the Kwrite editor
This thread may be leading up to the recently discussed (another thread) issue that upstream KDE doesn’t permit Kwrite to edit files with elevated permissions (requires workaround). After a few weeks, our openSUSE TW maintainers decided to over-ride this upstream configuration and again allow “kdesu kwrite.” So readers should know that they need a version of TW either earlier or later if “kdesu kwrite” doesn’t work. Or, use a non-graphical editor like vim, emacs, nano, etc.
Nowadays, I’d generally prefer hostname resolution instead of netbios name resolution. NetBIOS name resolution was default in SAMBA 3, hostname resolution is default in SAMBA 4. Why?
Without a NetBIOS Nameserver, your name resolution is done by broadcasts (which makes for <a lot> of unnecessary chatter on your network). In other words, you should want to leverage something that already should exist in your network.
Most networks today either use or can use a local network DNS server(or hosts file) for name resolution (all OS AFAIK) and it’s the first method tried by a machine. This makes for less latency and fewer wasted CPU cycles. Yes, you can modify the name resolution order with a DHCP option, but it’s one more thing you’re doing.
If a local DNS server does not exist, then it’s easy to configure an entry in the /etc/hosts file (or similarly in other OS like Windows). When is the last time you might want to configure a lmhosts file on any machine which would provide similar lookups for NetBIOS names?
It’s the common standard today, which means things should “just work” and don’t require special configuration if you use the same naming methods on the Internet (generally bad to expose to the Internet directly) or connect to remote networks, eg using VPNs.
NetBIOS names have their own restrictive requirements… Must be alphanumeric only, no more than 8 characters, does not support hierarchical names, etc. (off the top of my head). So, your current machine’s hostname may not qualify to be the same as the NetBIOS name.
After describing all the above reasons for configuring hostname resolution instead of NetBIOS name resolution, there may be a reason you’d want to configure the latter anyway…
If you want to configure a naming system that’s not Internet routable. Although it’s not a particularly good security method, it might be all you’d want to do to keep your network shares in your private network, inaccessible by outside networks using Internet standards.