Hello gays,
i’m absolutley beginer with suse. I install suse 15.1, without grafic sistem. I think that is the server mode. I configure samba with help from google. Evryting is ok. Samba working good, i use it for local server. But that what has no happend i that i accses samba server by ip. Like this \192.168.88.88\max . How i can change this. I want accsses by name \max\max
???
Is /bin/hostname installed? Append max’s alias to /etc/hosts:
/etc/hosts
IP-Address Full-Qualified-Hostname Short-Hostname
127.0.0.1 localhost
192.168.88.88 max.mylocal.domain max
as i said, i understan so much.
when i write: /etc/hosts
bash: /etc/hosts: Permission denied
i write like su.
Writing to /etc/hosts requires superuser permission.
If I understand you correctly, you’d like to reach the server using a NetBIOS hostname perhaps? If so, you can use nmbd on the server like this…
sudo systemctl enable nmbd.service
sudo systemctl start nmbd.service
These days, most enterprise LANs would typically have local DNS running to fulfil this function.
BTW, if you don’t mind using Avahi for local hostname resolution*,* you should be able to reach the server using the hostname.local naming scheme eg \max.local\myshare
nmbd.service not exist.
i try to set by Yast, but no have one.
how i can download an install.
i’m a beginner please spare me.
How much of Samba do you have installed? You probably need at least the following that I have:
# rpm -qa | sort | egrep 'mb|cifs'
cifs-utils-6.8-lp151.3.1.x86_64
libsamba-credentials0-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
libsamba-errors0-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
libsamba-hostconfig0-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
libsamba-passdb0-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
libsamba-util0-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
libsmbclient0-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
libsmbconf0-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
libsmbldap2-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
perl-Crypt-SmbHash-0.12-lp151.2.1.x86_64
python3-pysmbc-1.0.15.8-lp151.2.2.x86_64
samba-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
samba-client-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
samba-libs-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
samba-libs-python-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
xdmbgrd-0.6-lp151.2.2.x86_64
yast2-samba-client-4.1.2-lp151.1.1.noarch
yast2-samba-server-4.1.3-lp151.1.1.noarch
cifs-utils-6.8-lp151.3.1.x86_64
gdk-pixbuf-thumbnailer-2.36.11-lp151.4.15.x86_64
gvfs-backend-samba-1.34.2.1-lp151.5.2.x86_64
libsamba-credentials0-32bit-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
libsamba-credentials0-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
libsamba-errors0-32bit-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
libsamba-errors0-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
libsamba-hostconfig0-32bit-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
libsamba-hostconfig0-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
libsamba-passdb0-32bit-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
libsamba-passdb0-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
libsamba-policy0-python3-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
libsamba-util0-32bit-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
libsamba-util0-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
libsmbclient0-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
libsmbconf0-32bit-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
libsmbconf0-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
libsmbldap2-32bit-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
libsmbldap2-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
perl-Crypt-SmbHash-0.12-lp151.2.1.x86_64
php7-mbstring-7.2.5-lp151.5.44.x86_64
samba-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
samba-client-32bit-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
samba-client-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
samba-libs-32bit-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
samba-libs-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
samba-libs-python3-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
samba-python3-4.9.5+git.149.9593f64a5c3-lp151.1.3.x86_64
yast2-samba-client-4.1.2-lp151.1.1.noarch
yast2-samba-server-4.1.3-lp151.1.1.noarch
Sorry, nmd is the the daemon (process running in userspace). The name of the systemd service is nmb.service. That should have been
sudo systemctl enable nmb.service
sudo systemctl start nmb.service
It is .
If i want to return old address, perhabs i wrote sudo systemctl stop nmb.service.
This i super but now i want to hide samba server.
whatever , tanks for evryone.