Jean-Yves Avenard
2008-Jun-05 04:46 UTC
[Samba] Can not connect to share for a particular user.
Hello I currently run a few samba servers one being used as a PDC. Today I added a user to the domain and for some reason I can not get it to connect to any of the shares but "home" on the file server. % smbclient -U gregi //server3/public Password: Domain=[HYDRIX-MALVERN] OS=[Unix] Server=[Samba 3.0.28] tree connect failed: NT_STATUS_ACCESS_DENIED However I can connect with : $ smbclient -U gregi //server3/gregi Password: Domain=[HYDRIX-MALVERN] OS=[Unix] Server=[Samba 3.0.28] smb: \> In the smb log file, I would see make_connection: connection to public denied due to security descriptor. when it successfully connects I see: aragorn (192.168.0.94) connect to service gregi initially as user gregi (uid=1084, gid=1084) (pid 88931) The share entry in smb.conf is: [public] comment = "Public folder" path = /data/home/public browseable = Yes writable = Yes force create mode = 0777 force directory mode = 0777 force group = public I'm at loss... Why would it connect for one share but not the other. A quick google for "connection to public denied due to security descriptor." mentioned some people deleting the .tdb file and restarting samba which I did, to no available. This user has been created the same way as all the other users on the PDC: smbpasswd -a gregi and then I enter the password Any help would be greatly appreciated. it's driving me nuts ! Thanks in advance Jean-Yves
Jean-Yves Avenard
2008-Jun-06 14:49 UTC
[Samba] Re: Can not connect to share for a particular user.
Hi again 2008/6/5 Jean-Yves Avenard <jyavenard@gmail.com>:> In the smb log file, I would see > make_connection: connection to public denied due to security descriptor.A thread bump... No one has ever faced this issue? any solutions by any chance? Thanks JY
Volker Lendecke
2008-Jun-06 14:53 UTC
[Samba] Re: Can not connect to share for a particular user.
On Sat, Jun 07, 2008 at 12:48:44AM +1000, Jean-Yves Avenard wrote:> 2008/6/5 Jean-Yves Avenard <jyavenard@gmail.com>: > > In the smb log file, I would see > > make_connection: connection to public denied due to security descriptor. > > A thread bump... > > No one has ever faced this issue? any solutions by any chance?Did you set access controls with the Windows server manager? If not, and the settings in your smb.conf are everything you need to control access to your shares, then you might want to delete share_info.tdb. Volker -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20080606/d2b2b101/attachment.bin
David Kuntadi
2008-Jul-21 12:33 UTC
[Samba] Can not connect to share for a particular user.
On Thu, Jun 5, 2008 at 11:46 AM, Jean-Yves Avenard <jyavenard@gmail.com> wrote:> Hello > > I currently run a few samba servers one being used as a PDC. > > Today I added a user to the domain and for some reason I can not get > it to connect to any of the shares but "home" on the file server. > > % smbclient -U gregi //server3/public > Password: > Domain=[HYDRIX-MALVERN] OS=[Unix] Server=[Samba 3.0.28] > tree connect failed: NT_STATUS_ACCESS_DENIED > > However I can connect with : > $ smbclient -U gregi //server3/gregi > Password: > Domain=[HYDRIX-MALVERN] OS=[Unix] Server=[Samba 3.0.28] > smb: \> > > In the smb log file, I would see > make_connection: connection to public denied due to security descriptor. > > when it successfully connects I see: > aragorn (192.168.0.94) connect to service gregi initially as user > gregi (uid=1084, gid=1084) (pid 88931) > > The share entry in smb.conf is: > [public] > comment = "Public folder" > path = /data/home/public > browseable = Yes > writable = Yes > force create mode = 0777 > force directory mode = 0777 > force group = publicTry to remove: force group = public in smb.conf and then restart samba (/etc/init.d/samba restart). After that try to access again using gregi username, see wehter or not this help. DK
Jean-Yves Avenard
2008-Jul-29 04:24 UTC
[Samba] Can not connect to share for a particular user.
Hi 2008/7/21 David Kuntadi <d.kuntadi@gmail.com>:>> make_connection: connection to public denied due to security descriptor. >> >> when it successfully connects I see: >> aragorn (192.168.0.94) connect to service gregi initially as user >> gregi (uid=1084, gid=1084) (pid 88931)Well, I solved this problem in the most peculiar manner... I created a user on the samba server sharing the drive (not the PDC), tried to connect: it gave me an error and I had to re-join the domain. Since everything works well... No idea what happened