[newbie] Samba authentication. It won't let me in :(

2002-12-03 Thread Paul
Hi everyone,

I have tried finding a solution in the archives of newbie and expert, but
this won't get me anywhere. Also mandrakeuser.org has nothing for me...

I am doing something very wrong with samba authentication.

I have user paul on my linux box.
I also have user paul on a winblows pc. (Call that 'log in'? ;)
I have added user paul for samba, as root: smbuser -a paul
With smbpasswd -U paul I set the samba password to the loginpassword I use
on linux and also on the winblows machine.
Workgroup name in smb.conf and winblows is identical.
Running testparm shows no problems in smb.conf.
Problem occurs with and without user.map file.

And what does /var/log/samba/log.p400 tell me:

[2002/12/03 17:20:27, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User paul !
[2002/12/03 17:20:30, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User paul !
[2002/12/03 17:20:34, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User paul !

As there is info in the logfile, there is a connection to the linux machine.
(I know the network setup is okay, since FTP works just fine.)

The windows (98) end of things state:
Error 86: The specified network password is not correct. Type the correct
password, or contact your network administrator.

So it is just the samba authentication that blows up. Does anyone have a
pointer for me?

Thanks.
Paul

--
On a Bucharest elevator:
The lift is being fixed for the next days.
During that time we regret that you will be unbearable.

http://nlpagan.net-Linux Mandrake 8.2 -   Sylpheed 0.8.6
Help Microsoft combat software piracy: give Linux to a friend today!


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Samba authentication. It won't let me in :(

2002-12-03 Thread Anne Wilson
On Tuesday 03 Dec 2002 4:29 pm, Paul wrote:
 Hi everyone,

 I have tried finding a solution in the archives of newbie and expert, but
 this won't get me anywhere. Also mandrakeuser.org has nothing for me...

 I am doing something very wrong with samba authentication.

 I have user paul on my linux box.
 I also have user paul on a winblows pc. (Call that 'log in'? ;)
 I have added user paul for samba, as root: smbuser -a paul
 With smbpasswd -U paul I set the samba password to the loginpassword I
 use on linux and also on the winblows machine.
 Workgroup name in smb.conf and winblows is identical.
 Running testparm shows no problems in smb.conf.
 Problem occurs with and without user.map file.

 And what does /var/log/samba/log.p400 tell me:

 [2002/12/03 17:20:27, 0] passdb/pampass.c:smb_pam_passcheck(827)
   smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User paul !
 [2002/12/03 17:20:30, 0] passdb/pampass.c:smb_pam_passcheck(827)
   smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User paul !
 [2002/12/03 17:20:34, 0] passdb/pampass.c:smb_pam_passcheck(827)
   smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User paul !

 As there is info in the logfile, there is a connection to the linux
 machine. (I know the network setup is okay, since FTP works just fine.)

 The windows (98) end of things state:
 Error 86: The specified network password is not correct. Type the correct
 password, or contact your network administrator.

 So it is just the samba authentication that blows up. Does anyone have a
 pointer for me?

 Thanks.
 Paul

The most common reasons for this are case incompatibility (and don't forget 
that windows can easily confuse the issue by accepting both Paul and paul for 
the same person) or encrypted passwords.  Does your smb.conf file have a line

encrypt passwords = yes
?

If you are certain that neither of these are the cause, you could always post 
your entire smb.conf file here and we'll look at it.

Have you looked at your setup using Webmin?  Although manually editing files 
gives a cleaner setup, it is often instructive to look at the situation 
through the eyes of the gui - it sometimes points out something that you have 
missed.

HTH

Anne


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Samba authentication. It won't let me in :(

2002-12-03 Thread Anne Wilson
On Tuesday 03 Dec 2002 4:29 pm, Paul wrote:
 I have user paul on my linux box.
 I also have user paul on a winblows pc. (Call that 'log in'? ;)
 I have added user paul for samba, as root: smbuser -a paul
 With smbpasswd -U paul I set the samba password to the loginpassword I
 use on linux and also on the winblows machine.

Paul, check man smbpasswd.  I think your command was wrong.  -U seems to be 
for changing passwords on a remote machine.  Is that really what you were 
trying to do?

Anne


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Samba authentication. It won't let me in :(

2002-12-03 Thread Lanman
I've had this problem many times, to the point where fixing it is a
normal part of setting up Samba now. Theeasiest fix i found was to log
into Webmin, and browse to ServersSamba Windows File Sharing, and
clicking on the Edit Samba Users and passwords link.

Once in there, I would click on each users link, and when the Edit
Samba User page opened I would re-typw the password which is already
setup for that user, and UNcheck the No Password Required box. After
that, a quick Samba restart would alsways do the trick.

If that still didn't work, a quick reboot of the Windows PC or
workstation would usually do the trick.

Hope that helps!


-- 
Lanman [EMAIL PROTECTED]



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Samba authentication. It won't let me in :(

2002-12-03 Thread Stormjumper
as a quick and simple fix, if you haven't done so,
try enabling encrypted passwords in smb.conf.

the syntax is to add in smb.conf in the [global] section
encrypted passwords = yes

in the default smb.conf shipped in Mdk ,
this line exists around line 100.

if this doesn't help, install the samba documentation package,
open this file and work your way thru it.

/usr/share/doc/samba-doc-2.whatever-version/docs/textdocs/DIAGNOSIS.txt

tell the list which item the tests fails at,
and i'm sure someone more capable than me
would be able to use the info to help you.

it probably wouldn't hurt to include your smb.conf.
if you feel there are confidential stuff in it,
just scramble it (in an obvious manner)

hope it helps.
- Original Message -
From: Paul [EMAIL PROTECTED]
To: newbie [EMAIL PROTECTED]
Sent: Wednesday, December 04, 2002 12:29 AM
Subject: [newbie] Samba authentication. It won't let me in :(


 Hi everyone,

 I have tried finding a solution in the archives of newbie and expert, but
 this won't get me anywhere. Also mandrakeuser.org has nothing for me...

 I am doing something very wrong with samba authentication.

 I have user paul on my linux box.
 I also have user paul on a winblows pc. (Call that 'log in'? ;)
 I have added user paul for samba, as root: smbuser -a paul
 With smbpasswd -U paul I set the samba password to the loginpassword I
use
 on linux and also on the winblows machine.
 Workgroup name in smb.conf and winblows is identical.
 Running testparm shows no problems in smb.conf.
 Problem occurs with and without user.map file.

 And what does /var/log/samba/log.p400 tell me:

 [2002/12/03 17:20:27, 0] passdb/pampass.c:smb_pam_passcheck(827)
   smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User paul !
 [2002/12/03 17:20:30, 0] passdb/pampass.c:smb_pam_passcheck(827)
   smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User paul !
 [2002/12/03 17:20:34, 0] passdb/pampass.c:smb_pam_passcheck(827)
   smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User paul !

 As there is info in the logfile, there is a connection to the linux
machine.
 (I know the network setup is okay, since FTP works just fine.)

 The windows (98) end of things state:
 Error 86: The specified network password is not correct. Type the correct
 password, or contact your network administrator.

 So it is just the samba authentication that blows up. Does anyone have a
 pointer for me?

 Thanks.
 Paul

 --
 On a Bucharest elevator:
 The lift is being fixed for the next days.
 During that time we regret that you will be unbearable.

 http://nlpagan.net-Linux Mandrake 8.2 -   Sylpheed 0.8.6
 Help Microsoft combat software piracy: give Linux to a friend today!








 Want to buy your Pack or Services from MandrakeSoft?
 Go to http://www.mandrakestore.com




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Samba authentication. It won't let me in :(

2002-12-03 Thread Paul
Hello everyone,

Thank you for all the hints and tips.
I will look into them later and let you know!

Paul
--
On a Bucharest elevator:
The lift is being fixed for the next days.
During that time we regret that you will be unbearable.

http://nlpagan.net-Linux Mandrake 8.2 -   Sylpheed 0.8.6
Help Microsoft combat software piracy: give Linux to a friend today!


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com