[Samba] [Problem] [Centos 5] Samba-3.0.23c-2 login authentication
problem
Ryan Novosielski
novosirj at umdnj.edu
Tue Dec 11 07:19:06 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Prakash Hallalli wrote:
> Hello,
>
> I have comfigured samba-3.0.23c-2 server on CentOS-5, but when i was logging in from the client system, even if I donot provide password and hit enter key, the client is logging in as Anonymous user. Samba server should not allow for Anonymous login. (I am configuring linux (Server) to linux (Client) i am not using windows)
>
> 1) The contents of /etc/samba/smb.conf file as follows,
>
> [global]
> workgroup = WORKGROUP
> server string = Samba Server
> security = user
> encrypt passwords = yes
> smb passwd file = /etc/samba/smdpasswd
>
> [kiran]
> comment = Funda Tracking Managements Files
> path = /home/kiran
> valid users = user6
> writeable = on
>
> 2) I created user "user6" and changed password in to
> smbpassword using the following command.
>
> #cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd
>
> 3) I changed /etc/samba/smbpassword file permissions as
> follows
>
> #chmod 600 /etc/samba/smbpasswd
>
> 4) linux client side
>
> 4a) In this step I provided User-name and Password
>
> #smbclient -L 192.168.0.254 -U user6
> password:*****
> Domain=[SERVER1.PRAKASH.COM] OS=[Unix] Server=[Samba 3.0.23c-2]
>
> Sharename Type Comment
> --------- ---- -------
> kiran Disk Funda Tracking Managements Files
> IPC$ IPC IPC Service (Samba Server)
> printer1 Printer printer1
> user6 Disk Home Directories
> Domain=[SERVER1.PRAKASH.COM] OS=[Unix] Server=[Samba 3.0.23c-2]
>
> Server Comment
> --------- -------
>
> Workgroup Master
> --------- -------
> WORKGROUP
>
> 4b) In this step I am not providing the password to the
> user6 and just hit the enter key for password.
>
> #smbclient -L smbclient -L 192.168.0.254 -U user6
> Password:
> Anonymous login successful
> Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.23c-2]
>
> Sharename Type Comment
> --------- ---- -------
> IPC$ IPC IPC Service (Samba Server)
> kiran Disk Funda Tracking Managements Files
> printer1 Printer printer1
> Anonymous login successful
> Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.23c-2]
>
> Server Comment
> --------- -------
> SERVER1.PRAKASH. Samba Server
>
> Workgroup Master
> --------- -------
> WORKGROUP SERVER1.PRAKASH.COM
>
> I tried to find answer in some mailing lists but i couldn't get, plz help me.
>
> Thanks and Regards,
> Prakash.
Check out the "map to guest" configuration item. I suspect you have it
set to "bad password," meaning a wrong password will cause a user to
become guest instead.
- --
---- _ _ _ _ ___ _ _ _
|Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer II
|$&| |__| | | |__/ | \| _| |novosirj at umdnj.edu - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHXjnqmb+gadEcsb4RAqduAKCfFsCScomq2UBlIM26ITwEqkpgXwCfRJCg
bItuDjgKzsT8+xdrqXY6U8Y=
=4C5P
-----END PGP SIGNATURE-----
More information about the samba
mailing list