[Samba] Access to a share resource without password

J. L. Cabral jelocabral at gmail.com
Sun Feb 27 20:05:32 MST 2011


Marco, I followed your instructions and I couldn't connect, my config is:

[global]
workgroup = CASA
netbios name = bangkok
security = user
passdb backend = tdbsam
map to guest = bad password
username map = /etc/samba/smbusers

[grabar]
comment = file sharing
path = /var/share
browseable = yes
public = yes
writeable = yes
create mode = 0644
force user = pepe
force group = pepe

I have:

drwxrwxrwx  root nobody  /var/share

and I add user pepe:

# useradd -s /sbin/nologin pepe

After that I restart samba:

# /etc/init.d/smb restart

and fro Windows XP machine I do:

net use X: \\10.4.133.109\grabar

and after that I see the resource in my Explorer but when I want to
enter into it with double click I get:

ACCESS DENIED

The smb.log is:

[2011/02/27 23:52:25, 0] lib/util_sock.c:get_peer_addr(1224)
  getpeername failed. Error was the connection peer is not connected
[2011/02/27 23:52:25, 0] lib/util_sock.c:read_data(534)
  read_data: read failure for 4 bytes to client 0.0.0.0. Error =
connectio reinitialized by remote machine
[2011/02/27 23:52:25, 1] smbd/service.c:make_connection_snum(1077)
  kari (10.4.132.61) connect to service grabar initially as user pepe
(uid=500, gid=500) (pid 31657)
[2011/02/27 23:52:29, 1] smbd/fake_file.c:open_fake_file(116)
  open_fake_file_shared: access_denied to service[grabar]
file[$Extend/$Quota:$Q:$INDEX_ALLOCATION] user[pepe]
[2011/02/27 23:52:29, 1] smbd/fake_file.c:open_fake_file(116)
  open_fake_file_shared: access_denied to service[grabar]
file[$Extend/$Quota:$Q:$INDEX_ALLOCATION] user[pepe]

Can you help me again ???

THANKS A LOT

JeLo

On Sun, Feb 27, 2011 at 4:53 PM, Marco Ciampa <ciampix at libero.it> wrote:
> On Fri, Feb 25, 2011 at 02:55:17PM -0300, J. L. Cabral wrote:
>> Marco, thanks.....last question:
>>
>> the adhoc user you tell me to create as a linux local user need to be
>> created as a samba user alos with:
>>
>> smbpasswd -a adhocuser:
>> pass:1234
>> pass:1234
>>
>> Thanks again
>>
>
> no, you just have to create the user just to control the user with whom
> the people will access that folder. Since you use the "force user"
> option, you do not have to set any password...
>
> just do a
>
> adduser adhocuser
>
> and you are done.
>
>
> --
>
>
> Marco Ciampa
>
> +--------------------+
> | Linux User  #78271 |
> | FSFE fellow   #364 |
> +--------------------+
>


More information about the samba mailing list