[Samba] Password problem

Prakash Hallalli pkh444 at yahoo.com
Thu Dec 13 05:58:59 GMT 2007


Hello 
  I have configured samba on CentOS-5, when i was logging from client side it con't ask password,it has loged in to "Anonymous" user.I configured user mode. I am using linux (serve) to linux (client), but i should avoid Anonymous login. What i should do?.I did this type configuration what i should add. 
  
1) The contents of /etc/samba/smb.conf file as follows,
     
 [global]        
    workgroup = MYGROUP
    Netbios name = prakash
        server string = Samba Server
    security = user
    encrypt passwords = yes
    smb password file = /etc/samba/smbpasswd
      hosts allow = 192.168.0. 192.168.2. 127.
 
[data]
   comment = Mary's and Fred's stuff
   path = /data
   read only = NO
   valid users = ravi
   writable = yes
   create mask = 0644
   directory mask = 0755

2) I set smbpassword for ravi user.    

# grep ravi /etc/samba/smbpasswd 

ravi:501:A81321B5A2C540EAAAD3B435B51404EE:BAD430DE03935B5C1FCBDAC1C028BD4C:[U          ]:LCT-475F93FC:


#chmod 600 /etc/samba/smbpasswd 

# smbstatus 

Samba version 3.0.23c-2
PID     Username      Group         Machine                        
-------------------------------------------------------------------

Service      pid     machine       Connected at
-------------------------------------------------------

No locked files

     I tried to find answer in some mailing lists but i couldn't get, plz help me.
 
Thanks and Regards,
Prakash.
       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.


More information about the samba mailing list