You have not permission to view content of this location

Status
Not open for further replies.

sincos2007

New member
Joined
Dec 1, 2016
Messages
7
OS: CentosOS 7

I have installed samba + openldap + smbldap-tools + pam.

I create users and groups by:

Code:
sudo smbldap-groupadd -a g1
sudo smbldap-groupadd -a g2
sudo smbldap-useradd -a -P -g 1001 u1
sudo smbldap-useradd -a -P -g 1002 u1

Code:
groups u1
u1 : g1

groups u2
u2 : g2

I create shared folder:

Code:
cd /
sudo mkdir data

sudo chown u1 /data
sudo chgrp g1 /data

sudo chmod ugo+rwx /data

I edit /etc/samba/smb.conf:

Code:
[data]
	comment = data
	path = /data
	valid users = u1,u2
	write list = u1,u2
	create mask = 0777
	sync always = Yes
;	hide dot files = yes
;	writeable = no

And then:

Code:
sudo service smb restart

When I open file manager and input following in location box:

Code:
smb://127.0.0.1

The shared folder data is shown, I click the shared folder and input username u1 and password, I get error message: You have not permission to view content of this location

The error message is Chinese in my system, I translate it into English.

Thanks
 
Status
Not open for further replies.
Back
Top