[Samba] Access to a share resource without password

J. L. Cabral jelocabral at gmail.com
Tue Mar 1 08:22:05 MST 2011


Chris, I'v efollowed your tutorial, see below the configuration of my
Linux CentOS 5.5 please:

testparm output:

[global]
        workgroup = CASA
        map to guest = Bad User
        passdb backend = tdbsam
        username map = /etc/samba/smbusers
        cups options = raw

(I put security = user but is not displayed in testparm)

[share]
        comment = File server
        path = /var/share
        read only = No
        create mask = 0700
        directory mask = 0700
        guest ok = Yes

In smbusers:

root = administrator admin
nobody = guest pcguest smbguest

The share:

Debian:~# smbclient -U guest -L 10.4.133.109
Enter guest's password: <ANY PASS>
Domain=[BANGKOK] OS=[Unix] Server=[Samba 3.0.33-3.29.el5_5.1]

        Sharename       Type      Comment
        ---------       ----      -------
        share          Disk      File share
        IPC$            IPC       IPC Service (Samba 3.0.33-3.29.el5_5.1)
Domain=[BANGKOK] OS=[Unix] Server=[Samba 3.0.33-3.29.el5_5.1]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
        CASA                 BANGKOK

And finally try to enter the "share" resource:

Debian:~# smbclient //10.4.133.109/grabar -U guest
Enter guest's password: <ANY PASS>
Domain=[BANGKOK] OS=[Unix] Server=[Samba 3.0.33-3.29.el5_5.1]
smb: \> ls
NT_STATUS_ACCESS_DENIED listing \*

                56892 blocks of size 8388608. 53742 blocks available

What can be the problem ???

THANKS


drwxrwxrwx  2 nobody nobody 4096 feb 28 16:21 share

nobody is a Linux local user with /sbin/nologin shell.



More information about the samba mailing list