[Samba] Samba - User Authentication

Leonardo Rodríguez leonardorleon at cantv.net
Tue Apr 29 21:10:39 GMT 2003

Hi Robert and List,

As you told me I upgrated to Samba 2.2.5 because I'm doing the test with a
machine which has RedHat 8.0 and this RedHat version comes with it....

So I made the procedure step by step but I haven't found how to make my
Windows 2000 users (PDC) can access the Linux shared folder and this is
what I've done:

My smb.conf looks like this:


   workgroup = MCSE
   server string = Samba Server Laboratorio CUS
   netbios name = redhatcus
   log file = /var/log/samba/%m.log
   max log size = 0
   security = domain
   password server = win2k1
   encrypt passwords = yes
   unix password sync = Yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *New*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   dns proxy = no

   comment = Home Directories
   browseable = no
   writable = yes
   valid users = %S
   create mode = 0664
   directory mode = 0775

   comment = Shared Folder
   path = /Test
   writable = yes
   printable = no


After this I added the linux machine with its netbios name (redhatcus) in
the Windows 2000 machine (PDC) then I returned to Linux and I ran this

    smbpasswd -r MCSE -j win2k1

It joined without any problem and I executed this command with different
users (users registered in the PDC):

[root at redhatcus /]# smbclient -L redhatcus -U administrator
added interface ip= bcast= nmask=
Domain=[MCSE] OS=[Unix] Server=[Samba 2.2.5]

        Sharename      Type      Comment
        ---------      ----      -------
        Test           Disk      Shared Folder
        IPC$           IPC       IPC Service (Samba Server Laboratorio CUS)
        ADMIN$         Disk      IPC Service (Samba Server Laboratorio CUS)

        Server               Comment
        ---------            -------
        REDHATCUS            Samba Server Laboratorio CUS

        Workgroup            Master
        ---------            -------
        MCSE                 REDHATCUS
[root at redhatcus /]#

But when I try to access the Test folder from Windows 2000 (PDC) using the
Windows users it fails... it says incorrect password or unknown username.

It makes me think that it's not an upgrade problem and it's a configuration
problem instead but I'm not quite sure about this so I wrote this 'cause
you are the experts on samba and I really need your help......

Did I miss something in the smb.conf file?

Do I have to do something else with my smbpasswd file or my smbusers file?
or maybe my passwd command or my smbadduser command?

The matter of all this is that I wouldn't like to have to create each one
of the Windows users in the Linux machine... it wouldn't be reasonable...

So I'll be here waiting for your help :-)

Thanks in advance


More information about the samba mailing list