You are not logged in.

#1 2019-05-04 14:59:52

j1simon
Member
From: Denmark
Registered: 2016-01-28
Posts: 190

[SOLVED] Access denied to public SMB share

I'm trying to share a folder in my Arch Linux to guest users in local network.
This is my smb.conf:

#======================= Global Settings =====================================
[global]
hosts allow = 192.168.1. 127.
map to guest = Bad User
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
show add printer wizard = no
logging = systemd

[comics]
path = /home/juan/Comics
public = yes
read only = yes
guest ok = yes
$ smbclient -L localhost -U%      
Unable to initialize messaging context

	Sharename       Type      Comment
	---------       ----      -------
	comics          Disk      
	IPC$            IPC       IPC Service (Samba 4.10.2)
Reconnecting with SMB1 for workgroup listing.

	Server               Comment
	---------            -------

	Workgroup            Master
	---------            -------
	WORKGROUP            ARCH-JUAN

But:

$ smbclient -N //localhost/comics
Unable to initialize messaging context
Try "help" to get a list of possible commands.
smb: \> ls
NT_STATUS_ACCESS_DENIED listing \*

I have read several posts in the forum with the same problem but either they are unanswered or the answers don't work.
What's wrong?
Thanks.

Last edited by j1simon (2019-05-04 16:38:16)

Offline

#2 2019-05-04 15:05:06

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,718
Website

Re: [SOLVED] Access denied to public SMB share

Please provide the modes of  /home/juan and /home/juan/Comics


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#3 2019-05-04 16:32:18

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: [SOLVED] Access denied to public SMB share

It is because your home directory doesn't have permission for "Others" to read it. Either make your home directory readable by others (don't recommend) or use

guest account = juan

in your smb.conf

Offline

#4 2019-05-04 16:37:58

j1simon
Member
From: Denmark
Registered: 2016-01-28
Posts: 190

Re: [SOLVED] Access denied to public SMB share

ugjka wrote:

It is because your home directory doesn't have permission for "Others" to read it. Either make your home directory readable by others (don't recommend) or use

guest account = juan

in your smb.conf

You are right.  With "guest account = juan" works.
Thanks.

Offline

Board footer

Powered by FluxBB