To all,
I am attempting to add a user to my Samba server and after creating the
system ID "test" on the server, I create the user in the smbpasswd
file.
To do so, I use "smbpasswd -a test". Once this is complete, I verify
that the uid in the /etc/passwd file and in the /etc/samba/smbpasswd
file are the same:
test:x:1023:1024::/home/test:/bin/bash
test:1023:2D5545077D7B7D2AAAD3B435B51404EE:7C53CFA5EA7D0F9B3B968AA0FB51A
3F5:[U
]:LCT-3C42EFFE:
However, when I attempt to connect to the server I receive an error in
the logs:
Domain=[HBOCD01] NativeOS=[Windows 2000 2195] NativeLanMan=[Windows
2000 5.0]
sesssetupX:name=[test]
getsmbfilepwent: returning passwd entry for user test, uid 1021
Error : UNIX and SMB uids in password files do not match for user
'test'!
NT Password did not match for user 'test' ! Defaulting to Lanman
getsmbfilepwent: returning passwd entry for user test, uid 1021
Error : UNIX and SMB uids in password files do not match for user
'test'!
Rejecting user 'test': authentication failed
32 bit error packet at line 629 cmd=115 (SMBsesssetupX) eclass=c000006d
[Error:
Unknown error (109,49152)]
error string = No such file or directory
My smb.conf file:
[global]
security = user
workgroup = TRANSACTIONS
encrypt passwords = yes
password server = *
server string = Samba Server
case sensitive = yes
preserve case = yes
log file = /var/log/samba/%m.log
log level = 3
max log size = 50
#============================ Share Definitions
==============================
# This one is useful for people to share files
[tmp]
comment = Temporary file space
path = /tmp
read only = no
public = yes
Can someone help with this?
Thanks in advance,
Tod Wiederholt
tod.wiederholt@mckesson.com
-------------- next part --------------
HTML attachment scrubbed and removed
On Mon, 2002-01-14 at 11:58, Wiederholt, Tod wrote:> To all, > > I am attempting to add a user to my Samba server and after creating the > system ID "test" on the server, I create the user in the smbpasswd file. > To do so, I use "smbpasswd -a test". Once this is complete, I verify > that the uid in the /etc/passwd file and in the /etc/samba/smbpasswd > file are the same: > > test:x:1023:1024::/home/test:/bin/bash > > test:1023:2D5545077D7B7D2AAAD3B435B51404EE:7C53CFA5EA7D0F9B3B968AA0FB51A > 3F5:[U > ]:LCT-3C42EFFE: > > However, when I attempt to connect to the server I receive an error in > the logs: > > Domain=[HBOCD01] NativeOS=[Windows 2000 2195] NativeLanMan=[Windows > 2000 5.0] > sesssetupX:name=[test] > getsmbfilepwent: returning passwd entry for user test, uid 1021 > Error : UNIX and SMB uids in password files do not match for user > 'test'! > NT Password did not match for user 'test' ! Defaulting to Lanman > getsmbfilepwent: returning passwd entry for user test, uid 1021 > Error : UNIX and SMB uids in password files do not match for user > 'test'! > Rejecting user 'test': authentication failed > 32 bit error packet at line 629 cmd=115 (SMBsesssetupX) eclass=c000006d > [Error: > Unknown error (109,49152)] > error string = No such file or directory > > My smb.conf file: > > [global] > > security = user > workgroup = TRANSACTIONS > encrypt passwords = yes > password server = * > server string = Samba Server > case sensitive = yes > preserve case = yes > log file = /var/log/samba/%m.log > log level = 3 > max log size = 50 > > #============================ Share Definitions > ============================== > > # This one is useful for people to share files > [tmp] > comment = Temporary file space > path = /tmp > read only = no > public = yes > > > Can someone help with this? > > Thanks in advance, > Tod Wiederholt > tod.wiederholt@mckesson.com >There is a couple of things I would do if it were me. - Set the case sensitive to no. Setting it to yes is a not-so-good practice as file names are treated in a case-incensitive manner under Windows. The default is no. - Empty the value of the password server. This parameter is not so useful unless the security is set to either server or domain. If the security is set to user, as in your case, you don't need to use this parameter. I would do these things first just to make sure that they are not the cause of the problem. Hope this helps. Kohei
I have made the configuration changes that you suggested and still no luck, any other thoughts? -----Original Message----- From: Kohei Yoshida [ mailto:kyoshida@mesco.com <mailto:kyoshida@mesco.com> ] Sent: Monday, January 14, 2002 12:30 PM To: Wiederholt, Tod Cc: samba@lists.samba.org Subject: Re: UNIX and SMB uids do not match On Mon, 2002-01-14 at 11:58, Wiederholt, Tod wrote:> To all, > > I am attempting to add a user to my Samba server and after creatingthe> system ID "test" on the server, I create the user in the smbpasswdfile.> To do so, I use "smbpasswd -a test". Once this is complete, I verify > that the uid in the /etc/passwd file and in the /etc/samba/smbpasswd > file are the same: > > test:x:1023:1024::/home/test:/bin/bash > >test:1023:2D5545077D7B7D2AAAD3B435B51404EE:7C53CFA5EA7D0F9B3B968AA0FB51A> 3F5:[U > ]:LCT-3C42EFFE: > > However, when I attempt to connect to the server I receive an error in> the logs: > > Domain=[HBOCD01] NativeOS=[Windows 2000 2195] NativeLanMan=[Windows > 2000 5.0] > sesssetupX:name=[test] > getsmbfilepwent: returning passwd entry for user test, uid 1021 > Error : UNIX and SMB uids in password files do not match for user > 'test'! > NT Password did not match for user 'test' ! Defaulting to Lanman > getsmbfilepwent: returning passwd entry for user test, uid 1021 > Error : UNIX and SMB uids in password files do not match for user > 'test'! > Rejecting user 'test': authentication failed > 32 bit error packet at line 629 cmd=115 (SMBsesssetupX)eclass=c000006d> [Error: > Unknown error (109,49152)] > error string = No such file or directory > > My smb.conf file: > > [global] > > security = user > workgroup = TRANSACTIONS > encrypt passwords = yes > password server = * > server string = Samba Server > case sensitive = yes > preserve case = yes > log file = /var/log/samba/%m.log > log level = 3 > max log size = 50 > > #============================ Share Definitions > ============================== > > # This one is useful for people to share files > [tmp] > comment = Temporary file space > path = /tmp > read only = no > public = yes > > > Can someone help with this? > > Thanks in advance, > Tod Wiederholt > tod.wiederholt@mckesson.com >There is a couple of things I would do if it were me. - Set the case sensitive to no. Setting it to yes is a not-so-good practice as file names are treated in a case-incensitive manner under Windows. The default is no. - Empty the value of the password server. This parameter is not so useful unless the security is set to either server or domain. If the security is set to user, as in your case, you don't need to use this parameter. I would do these things first just to make sure that they are not the cause of the problem. Hope this helps. Kohei -------------- next part -------------- HTML attachment scrubbed and removed
-----Original Message----- From: Kohei Yoshida [mailto:kyoshida@mesco.com] Sent: Monday, January 14, 2002 1:30 PM To: Wiederholt, Tod Cc: samba@lists.samba.org Subject: Re: UNIX and SMB uids do not match On Mon, 2002-01-14 at 11:58, Wiederholt, Tod wrote:> To all, > > I am attempting to add a user to my Samba server and after creating the > system ID "test" on the server, I create the user in the smbpasswd file. > To do so, I use "smbpasswd -a test". Once this is complete, I verify > that the uid in the /etc/passwd file and in the /etc/samba/smbpasswd > file are the same: > > test:x:1023:1024::/home/test:/bin/bash > > test:1023:2D5545077D7B7D2AAAD3B435B51404EE:7C53CFA5EA7D0F9B3B968AA0FB51A > 3F5:[U > ]:LCT-3C42EFFE: > > However, when I attempt to connect to the server I receive an error in > the logs: > > Domain=[HBOCD01] NativeOS=[Windows 2000 2195] NativeLanMan=[Windows > 2000 5.0] > sesssetupX:name=[test] > getsmbfilepwent: returning passwd entry for user test, uid 1021 > Error : UNIX and SMB uids in password files do not match for user > 'test'! > NT Password did not match for user 'test' ! Defaulting to Lanman > getsmbfilepwent: returning passwd entry for user test, uid 1021 > Error : UNIX and SMB uids in password files do not match for user > 'test'! > Rejecting user 'test': authentication failed > 32 bit error packet at line 629 cmd=115 (SMBsesssetupX) eclass=c000006d > [Error: > Unknown error (109,49152)] > error string = No such file or directory > > My smb.conf file: > > [global] > > security = user > workgroup = TRANSACTIONS > encrypt passwords = yes > password server = * > server string = Samba Server > case sensitive = yes > preserve case = yes > log file = /var/log/samba/%m.log > log level = 3 > max log size = 50 > > #============================ Share Definitions > ============================== > > # This one is useful for people to share files > [tmp] > comment = Temporary file space > path = /tmp > read only = no > public = yes > > > Can someone help with this? > > Thanks in advance, > Tod Wiederholt > tod.wiederholt@mckesson.com >There is a couple of things I would do if it were me. - Set the case sensitive to no. Setting it to yes is a not-so-good practice as file names are treated in a case-incensitive manner under Windows. The default is no. - Empty the value of the password server. This parameter is not so useful unless the security is set to either server or domain. If the security is set to user, as in your case, you don't need to use this parameter. I would do these things first just to make sure that they are not the cause of the problem. Hope this helps. Kohei -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Hello Tod,
In the message
getsmbfilepwent: returning passwd entry for user test, uid 1021
the uid 1021 being referred to is being read FROM the smbpasswd file, which
clearly conflicts with what you say you SEE in your /etc/samba/smbpasswd
file - so maybe samba is using a different smbpasswd file than you think...
Try the following; grep you smbpasswd file for the user 'test' and
remove
any entry for this. Note the datestamp on the smbpasswd file you edited.
Now wait a couple of minutes, and RE-ADD the user using the smbpasswd
command, and verify
that the correct user is added to that file. Also stop and start smbd, with
log level = 10 and check to see what location smbd is looking for the
smbpasswd file...
Hope this helps,
Don
-----Original Message-----
From: Wiederholt, Tod [mailto:Tod.Wiederholt@McKesson.com]
Sent: Monday, January 14, 2002 11:59 AM
To: Samba List (E-mail)
Subject: UNIX and SMB uids do not match
To all,
I am attempting to add a user to my Samba server and after creating the
system ID "test" on the server, I create the user in the smbpasswd
file. To
do so, I use "smbpasswd -a test". Once this is complete, I verify
that the
uid in the /etc/passwd file and in the /etc/samba/smbpasswd file are the
same:
test:x:1023:1024::/home/test:/bin/bash
test:1023:2D5545077D7B7D2AAAD3B435B51404EE:7C53CFA5EA7D0F9B3B968AA0FB51A3F5:
[U
]:LCT-3C42EFFE:
However, when I attempt to connect to the server I receive an error in the
logs:
Domain=[HBOCD01] NativeOS=[Windows 2000 2195] NativeLanMan=[Windows 2000
5.0]
sesssetupX:name=[test]
getsmbfilepwent: returning passwd entry for user test, uid 1021
Error : UNIX and SMB uids in password files do not match for user
'test'!
NT Password did not match for user 'test' ! Defaulting to Lanman
getsmbfilepwent: returning passwd entry for user test, uid 1021
Error : UNIX and SMB uids in password files do not match for user
'test'!
Rejecting user 'test': authentication failed
32 bit error packet at line 629 cmd=115 (SMBsesssetupX) eclass=c000006d
[Error:
Unknown error (109,49152)]
error string = No such file or directory
My smb.conf file:
[global]
security = user
workgroup = TRANSACTIONS
encrypt passwords = yes
password server = *
server string = Samba Server
case sensitive = yes
preserve case = yes
log file = /var/log/samba/%m.log
log level = 3
max log size = 50
#============================ Share Definitions
==============================
# This one is useful for people to share files
[tmp]
comment = Temporary file space
path = /tmp
read only = no
public = yes
Can someone help with this?
Thanks in advance,
Tod Wiederholt
tod.wiederholt@mckesson.com
-------------- next part --------------
HTML attachment scrubbed and removed
Hi Tod,
The logs are pretty clear; the user test has a uid of 1021, NOT 1023 as the
smbpasswd file entry you are showing indicates. Looking at the code, it's a
pretty straightfoward reading and parsing of the smbpasswd file that comes
up with the uid that the debug message is reporting. So I would suggest
that you run testparm, and verify WHERE your smbpasswd file is being kept
("smb passwd file") parameter, or ADD that parameter to your smb.conf
file
and point it specifically at the smbpasswd file you believe you are using.
If this doesn't work, remove the test entry, and readd it, to ensuer no typo
or hidden cahracter has slipped in.
[MCCALL,DON (HP-USA,ex1)] Hope this helps,
Don
-----Original Message-----
From: Wiederholt, Tod [mailto:Tod.Wiederholt@McKesson.com]
Sent: Monday, January 14, 2002 1:37 PM
To: 'Kohei Yoshida'
Cc: samba@lists.samba.org
Subject: RE: UNIX and SMB uids do not match
I have made the configuration changes that you suggested and still no luck,
any other thoughts?
-----Original Message-----
From: Kohei Yoshida [ mailto:kyoshida@mesco.com
<mailto:kyoshida@mesco.com>
]
Sent: Monday, January 14, 2002 12:30 PM
To: Wiederholt, Tod
Cc: samba@lists.samba.org
Subject: Re: UNIX and SMB uids do not match
On Mon, 2002-01-14 at 11:58, Wiederholt, Tod wrote: > To all,
>
> I am attempting to add a user to my Samba server and after creating the
> system ID "test" on the server, I create the user in the
smbpasswd file.
> To do so, I use "smbpasswd -a test". Once this is complete, I
verify
> that the uid in the /etc/passwd file and in the /etc/samba/smbpasswd
> file are the same:
>
> test:x:1023:1024::/home/test:/bin/bash
>
> test:1023:2D5545077D7B7D2AAAD3B435B51404EE:7C53CFA5EA7D0F9B3B968AA0FB51A
> 3F5:[U
> ]:LCT-3C42EFFE:
>
> However, when I attempt to connect to the server I receive an error in
> the logs:
>
> Domain=[HBOCD01] NativeOS=[Windows 2000 2195] NativeLanMan=[Windows
> 2000 5.0]
> sesssetupX:name=[test]
> getsmbfilepwent: returning passwd entry for user test, uid 1021
> Error : UNIX and SMB uids in password files do not match for user
> 'test'!
> NT Password did not match for user 'test' ! Defaulting to Lanman
> getsmbfilepwent: returning passwd entry for user test, uid 1021
> Error : UNIX and SMB uids in password files do not match for user
> 'test'!
> Rejecting user 'test': authentication failed
> 32 bit error packet at line 629 cmd=115 (SMBsesssetupX) eclass=c000006d
> [Error:
> Unknown error (109,49152)]
> error string = No such file or directory
>
> My smb.conf file:
>
> [global]
>
> security = user
> workgroup = TRANSACTIONS
> encrypt passwords = yes
> password server = *
> server string = Samba Server
> case sensitive = yes
> preserve case = yes
> log file = /var/log/samba/%m.log
> log level = 3
> max log size = 50
>
> #============================ Share Definitions
> ==============================
>
> # This one is useful for people to share files
> [tmp]
> comment = Temporary file space
> path = /tmp
> read only = no
> public = yes
>
>
> Can someone help with this?
>
> Thanks in advance,
> Tod Wiederholt
> tod.wiederholt@mckesson.com
>
There is a couple of things I would do if it were me.
- Set the case sensitive to no. Setting it to yes is a not-so-good
practice as file names are treated in a case-incensitive manner under
Windows. The default is no.
- Empty the value of the password server. This parameter is not so
useful unless the security is set to either server or domain. If the
security is set to user, as in your case, you don't need to use this
parameter.
I would do these things first just to make sure that they are not the
cause of the problem.
Hope this helps.
Kohei
-------------- next part --------------
HTML attachment scrubbed and removed