After samba install cannot find /etc/samba/smb.conf

I am testing Reborn OS on Orange PI 5 Gnome version.

After: “sudo pacman -S samba” I cannot find “/etc/samba/smb.conf” for more configs.

I am installing samba because nautilus cant find any smb server in my network. Only if I force “smb://server-ip/”.

Also “testparm” fails:
me@rbrnos-opi5 /e/samba> testparm
Load smb config files from /etc/samba/smb.conf
Error loading services.
me@rbrnos-opi5 /e/samba [1]>

There is a error while installing samba as follows: Path transition???
Pacotes (1) samba-4.17.5-1

Tamanho total instalado: 58,61 MiB

:: Continuar a instalação? [S/n] s
(1/1) verificando chaves no chaveiro [----------------------] 100%
(1/1) verificando integridade do pacote [----------------------] 100%
(1/1) carregando arquivos do pacote [----------------------] 100%
(1/1) verificando conflitos de arquivos [----------------------] 100%
(1/1) verificando espaço em disco disponível [----------------------] 100%
:: Processando alterações do pacote…
(1/1) instalando samba [----------------------] 100%
Dependências opcionais para samba
python-dnspython: netads_dns.py, dnsresolver.py and traffic_packets.py
python-markdown: ms_schema_markdown.py and ms_forest_updates_markdown.py
python-cryptography: lockout_tests.py gp_cert_auto_enroll_ext.py gpo.py and
kcrypto.py
:: Executando hooks pós-transação…
(1/3) Reloading system manager configuration…
(2/3) Creating temporary files…
Detected unsafe path transition /usr/lib (owned by 1000) → /usr/lib/utempter (owned by root) during canonicalization of /usr/lib/utempter/utempter.
erro: comando não executado corretamente
(3/3) Arming ConditionNeedsUpdate…

me@rbrnos-opi5 /e/samba> testparm
Load smb config files from /etc/samba/smb.conf
Error loading services.
me@rbrnos-opi5 /e/samba [1]>

It needs to be created manually in Arch. One way to do it:

sudo pacman -S --needed wget

sudo wget -o "/etc/samba/smb.conf" -- "https://git.samba.org/samba.git/?p=samba.git;a=blob_plain;f=examples/smb.conf.default;hb=HEAD"

sudo systemctl enable --now smb.service

More details to be found in the Arch Wiki

Perhaps we should ship a default config with reborn :thinking: I think that would make more sense as it brings it more in line with other systems

I dont think that is possible without adopting samba package to our repos

We can simply add an other package and refer to that a beginning to that was made in the past may as well finish it. Call it Samba-conf or something

1 Like

Thanks for the fast help.

I am a completely newbie for Arch and Reborn.

What about that error “Detected unsafe path transition /usr/lib (owned by 1000)”???

But the output for wget was:

–2023-01-28 18:26:37-- https://git.samba.org/samba.git/?p=samba.git;a=blob_pla
in;f=examples/smb.conf.default;hb=HEAD
Carregou certificado CA “/etc/ssl/certs/ca-certificates.crt”
Resolvendo git.samba.org (git.samba.org)… 157.90.95.177, 2a01:4f8:252:410e::95
:177
Conectando-se a git.samba.org (git.samba.org)|157.90.95.177|:443… conectado.
A requisição HTTP foi enviada, aguardando resposta… 200 OK
Tamanho: não especificada [text/plain]
index.html?p=samba.git;a=blob_plain;f=examples%2Fsmb.conf.default;hb=HEAD: Arqui
vo ou diretório inexistente

Não foi possível escrever em “index.html?p=samba.git;a=blob_plain;f=examples%2Fs
mb.conf.default;hb=HEAD” (Arquivo ou diretório inexistente).

I’ll try to download it from my raspberry pi server (NAS).

Thanks again,

You will prob need to make that directory sudo mkdir /etc/samba since it’s saying that directory isn’t there you can also make it from a GUI file manager if that has your preference.

@curyjorge98 Do the commands work after creating the directory /etc/samba?

Hi all,

Thanks for the answers.

I’m used to Debian/Ubuntu distros that when installing samba creates a “/etc/samba/smb.conf” sample.

I downloaded it from my raspberry pi server (NAS) and it is working.

Thanks also to CookieAlice…

1 Like