truename
2016-Dec-04 08:57 UTC
[Samba] You have not permission to view content of this location
OS: CentosOS 7
I have installed samba + openldap + smbldap-tools + pam.
I create users and groups by:
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
groups u1
u1 : g1
groups u2
u2 : g2
I create shared folder:
cd /
sudo mkdir data
sudo chown u1 /data
sudo chgrp g1 /data
sudo chmod ugo+rwx /data
I edit /etc/samba/smb.conf:
[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:
sudo service smb restart
When I open file manager and input following in location box:
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
Rowland Penny
2016-Dec-04 09:23 UTC
[Samba] You have not permission to view content of this location
On Sun, 4 Dec 2016 16:57:56 +0800 (CST) truename via samba <samba at lists.samba.org> wrote:> OS: CentosOS 7 > > I have installed samba + openldap + smbldap-tools + pam.I have to ask, why? You seem to be setting up an NT4-style domain, just when everybody is starting to move away from them. Also 'smbldap-tools' seems to be a dead project. Can I suggest you start again, but this time with an AD domain. It also doesn't help posting the same subject twice ;-) Rowland
truename
2016-Dec-04 10:25 UTC
[Samba] You have not permission to view content of this location
Hi Rowland, Could you refer me some online docs about AD domain? Thanks At 2016-12-04 17:23:48, "Rowland Penny via samba" <samba at lists.samba.org> wrote:>On Sun, 4 Dec 2016 16:57:56 +0800 (CST) >truename via samba <samba at lists.samba.org> wrote: > >> OS: CentosOS 7 >> >> I have installed samba + openldap + smbldap-tools + pam. > >I have to ask, why? > >You seem to be setting up an NT4-style domain, just when everybody is >starting to move away from them. Also 'smbldap-tools' seems to be a >dead project. Can I suggest you start again, but this time with an AD >domain. > >It also doesn't help posting the same subject twice ;-) > >Rowland > > >-- >To unsubscribe from this list go to the following URL and read the >instructions: https://lists.samba.org/mailman/options/samba
Seemingly Similar Threads
- You have not permission to view content of this location
- You have not permission to view content of this location
- You have not permission to view content of this location
- You have not permission to view content of this location
- You have not permission to view content of this location