Cant load /etc/samba/smb.conf

Questions about Grub, UEFI,the liveCD and the installer

QuazaaLevel 1

Cant load /etc/samba/smb.conf
Posts: 2Joined: Tue Dec 21, 2021 1:10 am

smbusers error through testparm

So I keep having this problem, I have researched it with no luck so far... I am trying to set up my NAS through Samba on Mint.
This is the error it keeps giving me. I have all the correct inputs for the smbshared.conf

$ sudo smbpasswd -a mint
Can't load /etc/samba/smb.conf - run testparm to deegub it
$ testparm
Load smb config files from /etc/samba/smb.conf
Error loading services.

Maybe I am not running testparm correctly, or I am overlooking something simple?

Regards
Quazaa

altair4Level 20

Cant load /etc/samba/smb.conf
Posts: 10962Joined: Tue Feb 03, 2009 10:27 am

Re: smbusers error through testparm

Post by altair4 » Tue Dec 21, 2021 8:18 am

I have all the correct inputs for the smbshared.conf

Is that a typo?
Did you mean smb.conf?
Are you using an include directive in smb.conf that is pointing to a smbshared.conf file?

Along with the command RowlandP suggested you might want to do the same with this smbshared.conf file - if it exists:

Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

QuazaaLevel 1

Cant load /etc/samba/smb.conf
Posts: 2Joined: Tue Dec 21, 2021 1:10 am

Re: smbusers error through testparm

Post by Quazaa » Tue Dec 21, 2021 1:16 pm

Yes is it a direct file where the smb.conf file is located. It has three folders shared, conf, and I am trying to setup the users file. The users file is where I have no luck.

I made sure all of my info in the smb.conf file was correct.
I am at a loss right now...

legacypowersLevel 4

Cant load /etc/samba/smb.conf
Posts: 276Joined: Sat Dec 19, 2020 8:53 am

Re: smbusers error through testparm

Post by legacypowers » Tue Dec 21, 2021 1:18 pm

Quazaa wrote: ↑

Tue Dec 21, 2021 1:16 pm

Yes is it a direct file where the smb.conf file is located. It has three folders shared, conf, and I am trying to setup the users file. The users file is where I have no luck.

I made sure all of my info in the smb.conf file was correct.
I am at a loss right now...

try smbpasswd -a -c <config file> replacing <config file> with the location of your config file

Terminal - zsh wrote: ╭─
╰─➜ _

altair4Level 20

Cant load /etc/samba/smb.conf
Posts: 10962Joined: Tue Feb 03, 2009 10:27 am

Re: smbusers error through testparm

Post by altair4 » Tue Dec 21, 2021 1:52 pm

Quazaa wrote: ↑

Tue Dec 21, 2021 1:16 pm

Yes is it a direct file where the smb.conf file is located. It has three folders shared, conf, and I am trying to setup the users file. The users file is where I have no luck.

I made sure all of my info in the smb.conf file was correct.
I am at a loss right now...

The only way to diagnose what is wrong is to share with us the contents of the file. Do what RowlandP asked you to do.

Post the output of:

Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

RowlandPLevel 3

Cant load /etc/samba/smb.conf
Posts: 118Joined: Tue Jan 26, 2021 7:30 am

Re: smbusers error through testparm

Post by RowlandP » Tue Dec 21, 2021 3:27 pm

'testparm' when run by itself, attempts to test smb.conf in the position that your distro says it is, usually /etc/samba/smb.conf.
You tried to run 'testparm' and it had problems loading smb.conf , this could be because it doesn't exist or is malformed. So, please post the output of 'cat /etc/samba/smb.conf'

I cannot help further until you do.

Where is etc Samba smb conf?

Samba's configuration is stored in the smb. conf file, which usually resides in /etc/samba/smb. conf or /usr/local/samba/lib/smb. conf .

What is ETC Samba smb conf?

The /etc/smb. conf file is the main configuration file for the Samba server, in which you can specify which directory you want to access from Windows machines, which IP addresses are authorized, and so on.

How do I access Samba config file?

The main Samba configuration file is located in /etc/samba/smb. conf .

Where is the smb conf file in Linux?

Samba configuration on a Linux (or other UNIX machine) is controlled by a single file, /etc/smb. conf. This file determines which system resources you want to share with the outside world and what restrictions you wish to place on them.