Re: [Samba] copy of smbpasswd

2006-05-25 Thread Tom Haerens
Hi Chami,


I solved my problem too!

We use a cgi script (Changepassword) to allow user to change their 
passwords.

I found this in the Samba mailing list in an old topic:


[Samba] Re: /etc/samba/smbpasswd keeps changing - pulling my hair out


Apparently it has nothing to do with Samba, but with the
CGI script ChangePassword (http://changepassword.sourceforge.net) which
used the string LTC instead of LCT in smbpasswd entries. I edited the
affected smbpasswd entries and changed LTC to LCT, and now it works


It seems Samba 2.2.5 doesn't mind that, Samba 3.0.2 does.


Cheers,
Tom



[EMAIL PROTECTED] wrote on 24/05/2006 07:31:46:

 C.Rathnasinghe wrote:
  Hi Tom
 
  Finally it is solved. I found that problem is with the SID(unmatched 
  SID with your workstations). U have to be bit tricky in this case.
 
 
  after U upgrade run old version and then using your new version net 
  utility give this command
 
  net rpc getsid
 
  * this will set your SID from old version to new version this is 
  locate at secrets.tdb file  samba 2 /etc/samba and update new versions 

  file /pathtonewversion/private.
 
  * your smbpasswd file can use without any problem. simply copy to 
  location specified.
 
  stop older version then start new version
 
  PS. before U do so backup your both secrests.tdb files to store your 
  both SID's 
 
  after long fighting I won the battle.
 
  good luck
 
  chami
 
  Tom Haerens wrote:
 
  Ok, I'll let you know!
  Unfortunally, until now, you're the only one that replied on my 
  message   :-(
 
  Did you use the same SuSE version?
 
 
  Cheers,
  Tom
 
  
 
  [EMAIL PROTECTED] wrote on 23/05/2006 
  05:25:50:
 
   Hi
   I have same problem exactly U got,  even I post earlier to this 
group
   but didn't get any help If U do resolve this Please update me also. 

  thanks.
  
   chami
  
   Tom Haerens wrote:
Hi,
   
   
I have to move our old samba file server to a new machine.
The old samba server was a RedHat8 with samba 2.2.5.  The new one 

  is SLES9
with samba 3.0.2b-3.4 SuSE
   
Is there a way to re-use the old smbpasswd file?
   
In the log-files I can see that the authentication fails when I 
  try to
access a shared folder.
A windows client keeps on asking the login and password.
   
Is it possible to re-use the smbpasswd file?
   
When I create a new smbpasswd file, everything works fine.
But, I want to avoid that everybody has to re-enter his or her 
  password...
   
   
Kind Regards,
Tom
   


  
  
  
  
   
--
   This e-mail message is confidential and for use by the addressee 
only.
   If the message is received by anyone other than the addressee, 
please
   return the message to the sender by replying to it and then delete 
the
   message from your computer. Internet e-mails are not necessarily
   secure.Ministry of Finance  Planning does not accept 
responsibility
   for changes made to this message after it was sent.
  
   Whilst all reasonable care has been taken to avoid the transmission 
of
   viruses, it is the responsibility of the recipient to ensure that 
the
   onward transmission, opening or use of this message and any 
attachments
   will not adversely affect its systems or data. No responsibility is
   accepted by Ministry of Finance  Planning Sri Lanka in this 
regard.
  
   
  

   To unsubscribe from this list go to the following URL and read the
   instructions:  https://lists.samba.org/mailman/listinfo/samba
 
 
 
 
 --
 This e-mail message is confidential and for use by the addressee only.
 If the message is received by anyone other than the addressee, please
 return the message to the sender by replying to it and then delete the
 message from your computer. Internet e-mails are not necessarily 
 secure.Ministry of Finance  Planning does not accept responsibility
 for changes made to this message after it was sent.
 
 Whilst all reasonable care has been taken to avoid the transmission of
 viruses, it is the responsibility of the recipient to ensure that the
 onward transmission, opening or use of this message and any attachments
 will not adversely affect its systems or data. No responsibility is 
 accepted by Ministry of Finance  Planning Sri Lanka in this regard.
 
  

 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/listinfo/samba
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] copy of smbpasswd

2006-05-23 Thread John H Terpstra
On Monday 22 May 2006 22:25, C.Rathnasinghe wrote:
 Hi
 I have same problem exactly U got,  even I post earlier to this group
 but didn't get any help If U do resolve this Please update me also. thanks.

Before asking for help did it is a good idea to check available documentation. 
Did either of you happen to check chapter 8 of the book Samba-3 by Example?

http://www.samba.org/samba/docs/Samba3-ByExample.pdf

This chapter was written to help those who need to migrate, update, or upgrade 
a Samba server. Is this information what you need? If not - file a bug 
report!

- John T.


 chami

 Tom Haerens wrote:
  Hi,
 
 
  I have to move our old samba file server to a new machine.
  The old samba server was a RedHat8 with samba 2.2.5.  The new one is
  SLES9 with samba 3.0.2b-3.4 SuSE
 
  Is there a way to re-use the old smbpasswd file?
 
  In the log-files I can see that the authentication fails when I try to
  access a shared folder.
  A windows client keeps on asking the login and password.
 
  Is it possible to re-use the smbpasswd file?
 
  When I create a new smbpasswd file, everything works fine.
  But, I want to avoid that everybody has to re-enter his or her
  password...
 
 
  Kind Regards,
  Tom

 --
 This e-mail message is confidential and for use by the addressee only.
 If the message is received by anyone other than the addressee, please
 return the message to the sender by replying to it and then delete the
 message from your computer. Internet e-mails are not necessarily
 secure.Ministry of Finance  Planning does not accept responsibility for
 changes made to this message after it was sent.

 Whilst all reasonable care has been taken to avoid the transmission of
 viruses, it is the responsibility of the recipient to ensure that the
 onward transmission, opening or use of this message and any attachments
 will not adversely affect its systems or data. No responsibility is
 accepted by Ministry of Finance  Planning Sri Lanka in this regard.

 --

-- 
John H Terpstra
Samba-Team Member
Phone: +1 (650) 580-8668

Author:
The Official Samba-3 HOWTO  Reference Guide, 2 Ed., ISBN: 0131882228
Samba-3 by Example, 2 Ed., ISBN: 0131882221X
Hardening Linux, ISBN: 0072254971
Other books in production.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] copy of smbpasswd

2006-05-23 Thread C.Rathnasinghe

C.Rathnasinghe wrote:

Hi Tom

Finally it is solved. I found that problem is with the SID(unmatched 
SID with your workstations). U have to be bit tricky in this case.



after U upgrade run old version and then using your new version net 
utility give this command


net rpc getsid

* this will set your SID from old version to new version this is 
locate at secrets.tdb file  samba 2 /etc/samba and update new versions 
file /pathtonewversion/private.


* your smbpasswd file can use without any problem. simply copy to 
location specified.


stop older version then start new version

PS. before U do so backup your both secrests.tdb files to store your 
both SID's 


after long fighting I won the battle.

good luck

chami

Tom Haerens wrote:


Ok, I'll let you know!
Unfortunally, until now, you're the only one that replied on my 
message   :-(


Did you use the same SuSE version?


Cheers,
Tom

 

[EMAIL PROTECTED] wrote on 23/05/2006 
05:25:50:


 Hi
 I have same problem exactly U got,  even I post earlier to this group
 but didn't get any help If U do resolve this Please update me also. 
thanks.


 chami

 Tom Haerens wrote:
  Hi,
 
 
  I have to move our old samba file server to a new machine.
  The old samba server was a RedHat8 with samba 2.2.5.  The new one 
is SLES9

  with samba 3.0.2b-3.4 SuSE
 
  Is there a way to re-use the old smbpasswd file?
 
  In the log-files I can see that the authentication fails when I 
try to

  access a shared folder.
  A windows client keeps on asking the login and password.
 
  Is it possible to re-use the smbpasswd file?
 
  When I create a new smbpasswd file, everything works fine.
  But, I want to avoid that everybody has to re-enter his or her 
password...

 
 
  Kind Regards,
  Tom
 
   
   





 --
 This e-mail message is confidential and for use by the addressee only.
 If the message is received by anyone other than the addressee, please
 return the message to the sender by replying to it and then delete the
 message from your computer. Internet e-mails are not necessarily
 secure.Ministry of Finance  Planning does not accept responsibility
 for changes made to this message after it was sent.

 Whilst all reasonable care has been taken to avoid the transmission of
 viruses, it is the responsibility of the recipient to ensure that the
 onward transmission, opening or use of this message and any attachments
 will not adversely affect its systems or data. No responsibility is
 accepted by Ministry of Finance  Planning Sri Lanka in this regard.

 


 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/listinfo/samba






--
This e-mail message is confidential and for use by the addressee only.
If the message is received by anyone other than the addressee, please
return the message to the sender by replying to it and then delete the
message from your computer. Internet e-mails are not necessarily secure.Ministry of 
Finance  Planning does not accept responsibility for changes made to this 
message after it was sent.

Whilst all reasonable care has been taken to avoid the transmission of
viruses, it is the responsibility of the recipient to ensure that the
onward transmission, opening or use of this message and any attachments
will not adversely affect its systems or data. No responsibility is accepted by 
Ministry of Finance  Planning Sri Lanka in this regard.

 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Re: [Samba] copy of smbpasswd

2006-05-22 Thread C.Rathnasinghe

Hi
I have same problem exactly U got,  even I post earlier to this group 
but didn't get any help If U do resolve this Please update me also. thanks.


chami

Tom Haerens wrote:

Hi,


I have to move our old samba file server to a new machine.
The old samba server was a RedHat8 with samba 2.2.5.  The new one is SLES9 
with samba 3.0.2b-3.4 SuSE


Is there a way to re-use the old smbpasswd file?

In the log-files I can see that the authentication fails when I try to 
access a shared folder.

A windows client keeps on asking the login and password.

Is it possible to re-use the smbpasswd file?

When I create a new smbpasswd file, everything works fine. 
But, I want to avoid that everybody has to re-enter his or her password...



Kind Regards,
Tom

 
  





--
This e-mail message is confidential and for use by the addressee only.
If the message is received by anyone other than the addressee, please
return the message to the sender by replying to it and then delete the
message from your computer. Internet e-mails are not necessarily secure.Ministry of 
Finance  Planning does not accept responsibility for changes made to this 
message after it was sent.

Whilst all reasonable care has been taken to avoid the transmission of
viruses, it is the responsibility of the recipient to ensure that the
onward transmission, opening or use of this message and any attachments
will not adversely affect its systems or data. No responsibility is accepted by 
Ministry of Finance  Planning Sri Lanka in this regard.

 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba