[Samba] Samba does not allow access to share with another user
Flávio Fonseca
ff at darkpenguin.com.br
Thu Dec 3 03:10:15 MST 2009
Hi Eero,
thanks for you reply. I guess I didnt understand what you mean and maybe my
text is not clear.
I know windows fisrt tries to log in to a share with the username and
password logged in the station. When he cant do this (user does not have the
permission to access the share) Windows tells you it could not connect and
ask you for a user/password for that share.
I used to provide a valid user/passord to this share on the dialog box
windows prompted me and the it would access the share with this new user.
For some reason I cant understand Windows or samba is not trying to connect
to the share with the user I informed on the dialog box. As u can see in log
I pasted below it only tries to access the share with the logged user and
never with the user informed in the dialog box.
I also know this used to work before just fine.
Please note that in log all errors says it tried to connect with user from
session setup.
att.,
Flávio Fonseca
Dark Penguin Informática Ltda.
LPI 2 Certified
On Thursday 03 December 2009 06:36:54 Eero Volotinen wrote:
> Quoting Flávio Fonseca <ff at darkpenguin.com.br>:
> > Hi,
> >
> > I'm trying to get some help with this problem one more time.
> >
> > When I try to get to a share in the samba server, say
> > \\sambaserver\aplicativos, and Im logged in the station with a user that
> > has access to the share everything works fine.
> > But when I log in with a user that does not have access to that share
> > windows prompts me a user/password dialog box. I fill in a valid
> > user/password samba doesn't allow me to access the share.
> >
> > Here is my smb.conf share part:
> >
> > [aplicativos]
> > path = /home/aplicativos
> > valid users = ff
> > force group = users
> > writeable = yes
> >
> > when I logged in a station with user "ff" I can access the share.
> > But then I
> > log in with user "visitantes", which does not have access permission,
> > windows prompts for user/password. I fill in user "ff" and my password
> > and windows denies access. In samba's log it shows it trying to log in
> > with
> > user "visitantes" and not with user "ff":
> >
> > [2009/10/29 20:52:57, 1] smbd/service.c:close_cnum(1409)
> > lfoinfo-tec (::ffff:10.2.1.5) closed connection to service netlogon
> > [2009/10/29 20:52:58, 2] smbd/service.c:make_connection_snum(740)
> > user 'visitantes' (from session setup) not permitted to access this
> > share (aplicativos)
> > [2009/10/29 20:53:00, 2] smbd/service.c:make_connection_snum(740)
> > user 'visitantes' (from session setup) not permitted to access this
> > share (aplicativos)
> > [2009/10/29 20:53:00, 2] smbd/service.c:make_connection_snum(740)
> > user 'visitantes' (from session setup) not permitted to access this
> > share (aplicativos)
> > [2009/10/29 20:53:07, 2] smbd/service.c:make_connection_snum(740)
> > user 'visitantes' (from session setup) not permitted to access this
> > share (aplicativos)
> > [2009/10/29 20:53:11, 2] smbd/service.c:make_connection_snum(740)
> >
> >
> > If it can help: smbd version 3.2.7-11.4.1-2210-SUSE-CODE11 started.
> >
> > Why samba, or windows, is not trying to log in with user "ff"?
>
> By default windows uses the username that is logged on machine. You
> need to manually connect (map disk) and select correct username.
>
> --
> Eero,
> RHCE
More information about the samba
mailing list