I am having a problem with the Samba server that I run. Simply, new users added to the system cannot log on to the PC's that are controlled from the Samba server's domain. Users that are already on the system and have been working for some time seem to be unaffected. I suspect that the problem may well be related to the 'minor' problem we experienced with the server the other day - the system disk crashed and burned, so we had to rebuild the system from scratch. I had however got copies of all of the password and shadow files, secrets.tdb etc which were all duly copied back into place on the new server. The server is up and running fine (i.e. file and print sharing is working 100% for those who already had a username/password on the system), however users that have been added since the rebuild cannot log onto domain controlled PC's at all, receiving the message 'The system could not log you on...' Do I need to recreate the secrets.tdb file and then rejoin all of the PC's to the domain? Or is there something else that I have missed that is causing this problem? This is unfortunately rather urgent, so if anyone does have a solution to the problem, could you please let me know asap? Regards Andy Dr. Andy Dawson A.J.Dawson@Bradford.ac.uk http://www.mossie.org http://www.museum-explorer.org.uk Never attribute to malice that which is adequately explained by stupidity.
Marian Mlcoch, Ing
2003-May-19 11:34 UTC
[Samba] New users cannot log on, current users okay
I mean that you not copy all neccessary files to your new samba conf before it start. You must stop server and owerwrite all conf files that is necessary to conf identical server ID resp. machine ID. (files on /etc/samba and /var/cache/samba) with old backup. ----- Original Message ----- From: "A.J.Dawson" <A.J.Dawson@Bradford.ac.uk> To: <samba@lists.samba.org> Sent: Monday, May 19, 2003 1:13 PM Subject: [Samba] New users cannot log on, current users okay> I am having a problem with the Samba server that I run. Simply, new users > added to the system cannot log on to the PC's that are controlled from the > Samba server's domain. Users that are already on the system and have been > working for some time seem to be unaffected. > > I suspect that the problem may well be related to the 'minor' problem we > experienced with the server the other day - the system disk crashed and > burned, so we had to rebuild the system from scratch. > > I had however got copies of all of the password and shadow files, > secrets.tdb etc which were all duly copied back into place on the new > server. > > The server is up and running fine (i.e. file and print sharing is working > 100% for those who already had a username/password on the system), however > users that have been added since the rebuild cannot log onto domain > controlled PC's at all, receiving the message 'The system could not log > you on...' > > Do I need to recreate the secrets.tdb file and then rejoin all of the PC's > to the domain? Or is there something else that I have missed that is > causing this problem? This is unfortunately rather urgent, so if anyone > does have a solution to the problem, could you please let me know asap? > > Regards > Andy > > Dr. Andy Dawson > A.J.Dawson@Bradford.ac.uk > http://www.mossie.org > http://www.museum-explorer.org.uk > > Never attribute to malice that which is adequately explained bystupidity.> > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba
I did add users to the smbpasswd database (doing grep -i newuser /usr/local/samba/private/smbpasswd turned them up fine) and changed their password, still no joy. I did eventauuly get it all working by stopping the Samba server, removing the secrets.tdb file, restarting Samba and then rejoining the domain controlled computers to the domain. Luckily I have only about a dozen machines that are domain controlled, so it wasnt too much of a problem! Regards Andy On Tue, 20 May 2003, Ow Mun Heng wrote:> Hi Marian, > > Just curious, files in /var/cache/samba, what are they used for? > > I've re-install my Distro before and just copied all the files in > /etc/samba and it worked. > > Hi Andy, > > Is the file /etc/samba/private/smbpasswd updated with the new users > password? I'm a newbie at this but here are my 2 cents for whatever 2 cents > are worth. > > 1. Did you add the new users into the smbpasswd database? > 2. smbpasswd -a newuser (to add new users) > 3. smbpasswd newuser (to change the samba password of the new users) > > > > Cheers, > Mun Heng, Ow > H/M Engineering > Western Digital M'sia > DID : 03-7870 5168 > > > -----Original Message----- > From: Marian Mlcoch, Ing [mailto:mm@tsmp.sk] > Sent: Monday, May 19, 2003 7:35 PM > To: A.J.Dawson; samba@lists.samba.org > Subject: Re: [Samba] New users cannot log on, current users okay > > > I mean that you not copy all neccessary files to your new samba conf before > it start. > You must stop server and owerwrite all conf files that is necessary to conf > identical server ID > resp. machine ID. (files on /etc/samba and /var/cache/samba) with old > backup. > > > ----- Original Message ----- > From: "A.J.Dawson" <A.J.Dawson@Bradford.ac.uk> > To: <samba@lists.samba.org> > Sent: Monday, May 19, 2003 1:13 PM > Subject: [Samba] New users cannot log on, current users okay > > > > I am having a problem with the Samba server that I run. Simply, new users > > added to the system cannot log on to the PC's that are controlled from the > > Samba server's domain. Users that are already on the system and have been > > working for some time seem to be unaffected. > > > > I suspect that the problem may well be related to the 'minor' problem we > > experienced with the server the other day - the system disk crashed and > > burned, so we had to rebuild the system from scratch. > > > > I had however got copies of all of the password and shadow files, > > secrets.tdb etc which were all duly copied back into place on the new > > server. > > > > The server is up and running fine (i.e. file and print sharing is working > > 100% for those who already had a username/password on the system), however > > users that have been added since the rebuild cannot log onto domain > > controlled PC's at all, receiving the message 'The system could not log > > you on...' > > > > Do I need to recreate the secrets.tdb file and then rejoin all of the PC's > > to the domain? Or is there something else that I have missed that is > > causing this problem? This is unfortunately rather urgent, so if anyone > > does have a solution to the problem, could you please let me know asap? > > > > Regards > > Andy > > > > Dr. Andy Dawson > > A.J.Dawson@Bradford.ac.uk > > http://www.mossie.org > > http://www.museum-explorer.org.uk > > > > Never attribute to malice that which is adequately explained by > stupidity. > > > > > > > > > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: http://lists.samba.org/mailman/listinfo/samba > >Dr. Andy Dawson A.J.Dawson@Bradford.ac.uk http://www.mossie.org http://www.museum-explorer.org.uk Never attribute to malice that which is adequately explained by stupidity.