You are not logged in.

#1 2019-01-05 00:07:57

CarbonFixer
Member
Registered: 2013-10-19
Posts: 14

Unable to get basic smb.conf to work (Samba)

My ultimate goal is to have a shared folder that can be accessed (read) by all computers on the LAN without requiring any login information at all.

This is my smb.conf:

[global]
        map to guest = Bad User
        log file = /var/log/samba/%m
        log level = 1
        netbios name = HOSTNAME


[guest]
        # This share allows anonymous (guest) access
        # without authentication!
        path = /home/USERNAME/Public/
        read only = no
        guest ok = yes

Where HOSTNAME is my computer's hostname and USERNAME is my username. I tried this also without the netbios line.

I am able to login using whatever credentials using smbclient (on the same system as the server), but I get this error:

smb: \> ls
NT_STATUS_ACCESS_DENIED listing \*

Any ideas?
iptables is not running:

● iptables.service - IPv4 Packet Filtering Framework
   Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled; vendor preset: disabled)
   Active: inactive (dead)

Edit:
/var/log/samba/HOSTNAME is full of these messages:

[TIMESTAMP, 0] ../source3/smbd/uid.c:386(change_to_user_internal)
  change_to_user_internal: chdir_current_service() failed!

Last edited by CarbonFixer (2019-01-05 00:39:20)

Offline

#2 2019-01-05 00:20:45

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 26,862
Website

Re: Unable to get basic smb.conf to work (Samba)

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Co … s_and_code


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#3 2019-01-05 00:23:40

CarbonFixer
Member
Registered: 2013-10-19
Posts: 14

Re: Unable to get basic smb.conf to work (Samba)

jasonwryan wrote:

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Co … s_and_code

Sorry. Fixed.

Offline

#4 2019-01-05 11:56:42

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 6,260

Re: Unable to get basic smb.conf to work (Samba)

You probably don't want to use a folder in your HOME dir for this, or if you do, have you made sure that it is read/write (and executable for directory access) to the user starting the samba daemon?

Online

Board footer

Powered by FluxBB