[Samba] Logon Failuter: Unknow user or bad password
mallapadi niranjan
niranjan.ashok at gmail.com
Mon Nov 21 07:47:47 GMT 2005
Dear all
I have samba PDC, i added all the computer names with $prefixed in
/etc/passwd
tdc$:x:1020:501::/dev/null:/sbin/nologin
and added the computer with smbpasswd -a -m tdc
and added root with smbpasswd -a root
and gave password
but when i go to the tdc computer, and the computer to the domain name, it
says,
Logon Failure, Unknown username or Bad password,
But i am giving correct username and password,
My smb.conf file is
##############################################################
# Global parameters
[global]
workgroup = mydomain.com <http://mydomain.com>
server string = Internet Server
interfaces = eth0, lo
bind interfaces only = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*
username map = /etc/samba/smbusers
unix password sync = Yes
log level = 2
log file = /var/log/samba/%m.log
max log size = 50
name resolve order = wins lmhosts bcast
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = /etc/printcap
add user script = /usr/sbin/useradd -m '%u'
delete user script = /usr/sbin/userdel -r '%u'
add group script = /usr/sbin/groupadd '%g'
delete group script = /usr/sbin/groupdel '%g'
add user to group script = /usr/sbin/usermod -G '%g' '%u'
add machine script = /usr/sbin/useradd -s /sbin/nologin -d /dev/null '%u'$
logon script = /home/netlogon/scripts/logon.bat
logon path = \\%L\profiles\%U
logon drive = X:
logon home = \\%L\%U
domain logons = Yes
os level = 65
preferred master = Yes
domain master = Yes
dns proxy = No
wins support = Yes
hosts allow = 192.168.127., 127.0.0.1 <http://127.0.0.1>
[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No
volume = medha
[netlogon]
comment = Network Logon Service
path = /home/netlogon
read only = No
browseable = No
[Profiles]
path = /home/netlogon/profiles
read only = No
browseable = No
[public]
comment = Public Stuff
path = /public
write list = @sambaclients
volume = Medha
#############################################################
Regards
Niranjan
More information about the samba
mailing list