[Samba] Samba does not allow access to share with another user

Eero Volotinen eero.volotinen at iki.fi
Thu Dec 3 01:36:54 MST 2009


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