Samba Gurus: I just upgraded from samba-1.9.15p8 to samba-1.9.18p8 on one of our Sun boxes (Solaris 2.5.1). When I try to connect to the samba server from another machine with smbclient I get the following error message: smbclient -L odin Added interface ip=192.10.11.32 bcast=192.10.11.255 nmask=255.255.255.0 Server time is Wed Oct 28 15:17:47 1998 Timezone is UTC-5.0 Password: Session setup failed for username=ABC myname=BIGSERVER destname=NEWSERVER ERRSRV - ER Rbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.) You might find the -U, -W or -n options useful Sometimes you have to use `-n USERNAME' (particularly with OS/2) Some servers also insist on uppercase-only passwords As you can see, it is complaining about the name/password pair: why? We are not using shadow passwords so I did not compile it in. We do run NIS. I can use net use or net view from a Windows client to successfully connect to the machine. There are no entries in smb.conf that I am aware of that would cause a problem. Security is set to user. Below are the key segments of the smb.conf file and the Makefile. smb.conf: [global] nis homedir = true # workgroup = NT-Domain-Name or Workgroup-Name workgroup = pcnet guest account = pcguest # Security mode. Most people will want user level security. See # security_level.txt for details. security = user # Password Level allows matching of _n_ characters of the password for # all combinations of upper and lower case. password level = 8 # You may wish to use password encryption. Please read # ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation. # Do not enable this option unless you have read those documents ; encrypt passwords = yes # Case Preservation can be handy - system default is _no_ # NOTE: These can be set on a per share basis preserve case = yes short preserve case = no # Default case is normally upper case for all DOS files ; default case = lower # Be very careful with case sensitivity - it can break things! ; case sensitive = no #============================ Share Definitions ============================= Makefile: # This is for SUNOS5.4 and later (also known as Solaris 2.4 and later) # contributed by Andrew.Tridgell@anu.edu.au FLAGSM = -DSUNOS5 -DNETGROUP -DFAST_SHARE_MODES -DAUTOMOUNT LIBSM = -lsocket -lnsl AWK = nawk I've installed samba successfully on many of our Sun boxes and this is the first time I've encountered this problem. Any suggestions? Thanks **************************************************************** Leo Crombach System / Network Administrator Tropel Corporation Phone: (716) 388-3566 60 O'Connor Road Email: lcrombach@tropel.com Fairport, New York 14450 URL: http://www.tropel.com ****************************************************************
Hello all, This is the first problem I have had with samba, that I can't find the answer to, since I first started to work with samba. I am running DecUNIX 4.0d and I was running 1.19.18p10 on a test server and everything worked fine. I downloaded, compiled and installed samba 2.0.0. I am using the same smb.conf file for 2.0.0 that I used for 1.19.18p10. The problem I have is this. When on the actual server and I run: smbclient -L info I get: Added interface ip=blah, blah blah, it's correct info. Password: (I press return) Gives me the proper info for the server. I have never been asked for a password for this command before. smbclient //info/tmp (a guest account) added interface ip=.... Password: ( I press return) Session setup failed: ERRSRV - Errbadpw (Bad Password pair on a Tree Connect or session setup are invalid.) If I map a network drive to \\info\tmp on a pc it connects fine. smbclient //info/user (not a guest account) added interface ip=... Password: (I enter the correct password) Session setup failed: ERRSRV - Errbadpw (Bad Password pair on a Tree Connect or session setup are invalid.) If I map a network drive to \\info\user on a pc I get the error: The password is incorrect. Try again. So what am I doing wrong or what changed at 2.0.0? Paul Crittenden Computer System Manager Simpson College e-mail: crittend@simpson.edu Y2K? Why not 3?
> smbclient //info/user (not a guest account) > added interface ip=... > Password: (I enter the correct password) > Session setup failed: ERRSRV - Errbadpw (Bad Password pair on a Tree > Connect or session setup are invalid.)Try smbclient \\info\user -U user> If I map a network drive to \\info\user on a pc I get the error: > The password is incorrect. Try again.Christian _______________________________________________________________________ In a world without walls and fences, who needs windows and gates? (SUN)
Hi all, I have a redhat 5.2 system just installed, (clean out of the box) and I have installed the samba rpm ver 2.0.2 dated 19990209. I am having problems with the password. Because I am using winNT + sp3, I need to use encrypted mode (unless I do some funky registry stuff). So I specified the smbpassword file to be /home/samba/smbpasswd... I changed the permissions on the file and it's parent as specified. I changed my password using smbpasswd. I saw that the smbpassword file changed. The problem I run into is that when I try smbclient -L <local host name> I am promted for a password. If I hit enter, I see the public shares... If I enter my password, I get back the badPassword message When I go over to the winNT machine, I could not open the machine without typing in a password (which did not work.. How could it? It's not even working on the local machine) Then I changed my smb.conf file to say share level securety rather then user level.. This let my winNT machine open the machine and see some public shares... However I still have the problem of getting into my user's shares.. they can't log in.. What to do? HELP!!!!!!!!!! Nagendra n@emailsol.com
Hi All, I?m starting with samba 2.0.3 and I have the problem that I get the errormessage: bad password. The server is a HPUX-Sytem and the client Win95. I?m try the tests on DIAGNOSE.html. smbclient -L BIGSERVER produce following error: Added interface ip=130.96.200.15 bcast=130.96.201.255 nmask=255.255.254.0 session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.) The password is correct. Here is the smb.conf-configuration with the share tmp. It is the standard-configuration that is coming with samba. Load smb config files from smb.conf Processing section "[tmp]" Loaded services file OK. Press enter to see a dump of your service definitions # Global parameters workgroup = WORKGROUP netbios name = netbios aliases = server string = Samba 2.0.3 interfaces = bind interfaces only = No security = USER encrypt passwords = No update encrypted = No use rhosts = No min passwd length = 5 map to guest = Never null passwords = No password server = smb passwd file = /opt/samba/private/smbpasswd hosts equiv = root directory = / passwd program = /bin/passwd passwd chat = *old*password* %o\n *new*password* %n\n *new*password* %n\n *changed* passwd chat debug = No username map = password level = 0 username level = 0 unix password sync = No log level = 2 syslog = 1 syslog only = No log file = max log size = 5000 timestamp logs = Yes protocol = NT1 read bmpx = Yes read raw = Yes write raw = Yes nt smb support = Yes nt pipe support = Yes nt acl support = No announce version = 4.2 announce as = NT max mux = 50 max xmit = 65535 name resolve order = lmhosts host wins bcast max packet = 65535 max ttl = 259200 max wins ttl = 518400 min wins ttl = 21600 time server = No change notify timeout = 60 deadtime = 0 getwd cache = Yes keepalive = 300 lpq cache time = 10 max disk size = 0 max open files = 10000 read prediction = No read size = 16384 shared mem size = 1048576 socket options = stat cache size = 50 load printers = Yes printcap name = /etc/printcap printer driver file = /opt/samba/lib/printers.def strip dot = No character set = mangled stack = 50 coding system = client code page = 850 stat cache = Yes domain groups = domain admin group = domain guest group = domain admin users = domain guest users = machine password timeout = 604800 add user script = delete user script = logon script = logon path = \\%N\%U\profile logon drive = logon home = \\%N\%U domain logons = No os level = 0 lm announce = Auto lm interval = 60 preferred master = No local master = Yes domain master = No browse list = Yes dns proxy = Yes wins proxy = No wins server = wins support = No kernel oplocks = Yes ole locking compatibility = Yes smbrun = /opt/samba/bin/smbrun config file = preload = lock dir = /var/opt/samba/locks default service = message command = dfree command = valid chars = remote announce = remote browse sync = socket address = 0.0.0.0 homedir map = auto.home time offset = 0 unix realname = No NIS homedir = No panic action = comment = path = alternate permissions = No revalidate = No username = guest account = nobody invalid users = valid users = admin users = read list = write list = force user = force group = read only = Yes create mask = 0744 force create mode = 00 directory mask = 0755 force directory mode = 00 guest only = No guest ok = No only user = No hosts allow = hosts deny = status = Yes max connections = 0 min print space = 0 strict sync = No sync always = No print ok = No postscript = No printing = hpux print command = lp -c -d%p %s; rm %s lpq command = lpstat -o%p lprm command = cancel %p-%j lppause command = lpresume command = queuepause command = disable %p queueresume command = enable %p printer name = printer driver = NULL printer driver location = default case = lower case sensitive = No preserve case = Yes short preserve case = Yes mangle case = No mangling char = ~ hide dot files = Yes delete veto files = No veto files = hide files = veto oplock files = map system = No map hidden = No map archive = Yes mangled names = Yes mangled map = browseable = Yes blocking locks = Yes fake oplocks = No locking = Yes oplocks = Yes strict locking = No share modes = Yes copy = include = exec = postexec = root preexec = root postexec = available = Yes volume = fstype = NTFS set directory = No wide links = Yes follow symlinks = Yes dont descend = magic script = magic output = delete readonly = No dos filetimes = No dos filetime resolution = No fake directory create times = No [tmp] comment = temporary files path = /tmp Can anyone help me ? Regards, Annette
When the world was young, Annette Kaul <Annette.Kaul@ger.sas.com> carved some runes like this:> I?m starting with samba 2.0.3 and I have the problem that I get the > errormessage: bad password. > The server is a HPUX-Sytem and the client Win95. > I?m try the tests on DIAGNOSE.html. smbclient -L BIGSERVER produce > following error: > > Added interface ip=130.96.200.15 bcast=130.96.201.255 nmask=255.255.254.0 > > session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair > in a Tree Connect or Session Setup are invalid.) > > The password is correct.[snip] I can't say with any certainty about samba 2.0x, but my 1.9.x server works this way: The above command (smbclient -L SERVER) is run as guest; do you have a valid guest account? Also, you should not enter a password for this command; just hit return. I get a list of the samba shares, the browse list, and the workgroup list, however, my samba box is the local/domain master browser, and we don't have NT server (only NT4 workstation and win9x clients). Hope this helps, Steve ****************************************************************** Stephen L Arnold http://www.rain.org/~sarnold #include <std_disclaimer.h> ******************************************************************
Annette Kaul wrote: Hi All, I?m starting with samba 2.0.3 and I have the problem that I get the errormessage: bad password. The server is a HPUX-Sytem and the client Win95. Try encrypt passwords = Yes. If that doesn't work, set turn off password encryption in your win-95 client. -- Eddie http://www1.tpgi.com.au/users/eirvine/index.html ________________________________________________
hello everyone.. i ve had samba running on rh 5.2 boxes for a long time now. i ve just put a rh 6.1 box together and for some reason when I run smbclient -L richland and enter the password to view the shairs I get bad password password pair tree ..... I had tried pwconv to see if it was that the passwords were shadowed and that might be the prob. but it didnt make any difference something i ve missed in the updated version ? *++++++++++++++++++++++++++++++++++++++* * Les Higger ITAF , * Local Area Network Coord. * lhigger@lausd.k12.ca.us * Francisco Bravo Medical Magnet High School * Los Angeles Unified School District ---> Old men can give flawless advice, for they nolonger can set bad examples <---
On a HP_UX 11.0 system which is running NIS for both host and UID/password resolution, when I do the following: smbclient //rcnfs/tmp -Uel08532 I get the following error: Session setup failed for username=el80532 workgroup=RC.DMN myname=RCNFS destname=RCNFS ERRSRV -ERRbadpw (Bad password -name/password pair in Tree Connect or Session Setup are invalid) If I move the password entry for that user to the password file, things work as they should making the session connection. When the password entry is part of NIS iI can login using the same userid and password. I have looked through the archives (doing a search for bad password) and found other questions but no answers. Any suggestions?? Thanks Warren Steffen wsteffen@bwn.net