I installed samba, but the samba.conf file does not exist

So, I did, and at the testparm command I have this:

> [sermor@archlinux ~]$ testparm
> Load smb config files from /etc/samba/smb.conf
> Loaded services file OK.
> Weak crypto is allowed by GnuTLS (e.g. NTLM as a compatibility fallback)
> 
> Server role: ROLE_STANDALONE
> 
> Press enter to see a dump of your service definitions
> 
> # Global parameters
> [global]
>         dns proxy = No
>         map to guest = Bad User
>         security = USER
>         server string = Samba Server
>         idmap config * : backend = tdb
> 
> 
> [shared]
>         guest ok = Yes
>         path = /home/sermor/Pubblici
>         read only = No

But if I try to share a folder I have the same problem as before, that is:

“This folder cannot be shared because your user account is not a member of the “root” group”


““For security reasons, it is not possible to make the user “%1(I18N_ARGUMENT_MISSING)” a member of the group “%2(I18N_ARGUMENT_MISSING)”. The group name is unsafe; valid group names include the text “samba” and do not include the text “admin” or “root”.””

try this :

https://bbs.archlinux.org/viewtopic.php?id=234432

https://www.reddit.com/r/archlinux/comments/kvtt5j/smbconf_doesnt_exist_in_etcsamba/

Thanks for the links and suggestions.

I’ll go read it and then maybe I’ll try.

A thousand thanks!

unfortunately i cant realy help you because i didn’t experience this issue so this is only what i can

That’s okay, at least you gave me some concrete suggestions.

I asked the same thread on the Arch forum, the answer was: look at the smb.conf file, it tells you what to do. Greetings.

I would say that it is better to try to make a suggestion, rather than not giving one at all in the end. XD

same “i ask where is vimrc and i got well lets say humbled”

So, maybe I’m close to the solution: the error on the screen tells me that the user is not part of the root or admin group, I need to indicate the users and admin users inside the smb.conf file.

I tried putting these lines under global:

valid users = sermor
admin users = sermor

It didn’t work, but the error message changed, which is that the smb.conf file is corrupt and to see the distro documentation, something similar. I think it’s the right way, even if I did it improperly, maybe it needs to be fixed inside the smb.conf file

Any suggestions?

Can you run testparm in a terminal and post the output.
Also have you run sudo smbpasswd -a yourusername and in /etc/group are you added to the group sambashare