Hi, i've just migrated from nt4 to samba 3.0.10-1.4E.9 with tdbsam, running on Centos 4.4 The net rpc vampire went fairly smoothly. Now that samba is running as the PDC (nt4 machine has been laid to rest) i am having trouble renaming computers in the domain. If i try this from the windows workstation (XP Professional) i get access denied. I use "root" or administrator which is mapped to root as the account. In the samba logs i get the following... [2006/11/09 13:07:00, 0] passdb/pdb_tdb.c:tdb_update_sam(640) Unable to modify passwd TDB! Error: Record does not exist occured while storing the main record (USER_mareed-pc$) [2006/11/09 13:07:17, 0] passdb/pdb_tdb.c:tdb_update_sam(640) Unable to modify passwd TDB! Error: Record does not exist occured while storing the main record (USER_mareed-pc$) [2006/11/09 13:08:48, 1] rpc_server/srv_util.c:get_domain_user_groups(298) Relevant Samba Group Mapping... Domain Admins (S-1-5-21-138219912-1680474845-926709054-512) -> DomainAdmins /etc/group shows..... DomainAdmins:x:507:elinori,root /etc/samba/smbusers # Unix_name = SMB_name1 SMB_name2 ... root = administrator admin Is there something i am missing? What do the log errors mean? Regards, Les
Hi, Les Stott schrieb:> [2006/11/09 13:07:00, 0] passdb/pdb_tdb.c:tdb_update_sam(640) > Unable to modify passwd TDB! Error: Record does not exist occured > while storing the main record (USER_mareed-pc$) [2006/11/09 13:07:17, 0] > passdb/pdb_tdb.c:tdb_update_sam(640) > Unable to modify passwd TDB! Error: Record does not exist occured > while storing the main record (USER_mareed-pc$) [2006/11/09 13:08:48, 1] > rpc_server/srv_util.c:get_domain_user_groups(298)Does the machine account exist as a local unix account? You must create it before, when you don`t do this automatically through "add machine script" in smb.conf. Best regards Marc -- Marc Muehlfeld (Leitung Systemadministration) Zentrum fuer Humangenetik und Laboratoriumsmedizin Dr. Klein und Dr. Rost Lochhamer Str. 29 - D-82152 Martinsried Telefon: +49(0)89/895578-0 - Fax: +49(0)89/895578-78 http://www.medizinische-genetik.de
Hi, Les Stott schrieb:> i do have this in my smb.conf..... > > add machine script = /usr/sbin/useradd -d /dev/null -c "Machine Account" > -g machines -s /bin/false -M %u > > so it should automatically add it on the fly, right?Can you see the account when doing a "getent passwd"? Are there any more information when setting the log level to 10 and try adding the machine to the domain? Best regards Marc -- Marc Muehlfeld (Leitung Systemadministration) Zentrum fuer Humangenetik und Laboratoriumsmedizin Dr. Klein und Dr. Rost Lochhamer Str. 29 - D-82152 Martinsried Telefon: +49(0)89/895578-0 - Fax: +49(0)89/895578-78 http://www.medizinische-genetik.de
hi, renaming machines has been added later (i think 3.0.21 or so, please read the changelog). we?re running SLES10 with samba 3.0.22b from Novell and the rename machine story works. greez Les Stott wrote:> Hi, > > i've just migrated from nt4 to samba 3.0.10-1.4E.9 with tdbsam, running > on Centos 4.4 > > The net rpc vampire went fairly smoothly. > > Now that samba is running as the PDC (nt4 machine has been laid to rest) > i am having trouble renaming computers in the domain. > > If i try this from the windows workstation (XP Professional) i get > access denied. I use "root" or administrator which is mapped to root as > the account. > > In the samba logs i get the following... > > [2006/11/09 13:07:00, 0] passdb/pdb_tdb.c:tdb_update_sam(640) > Unable to modify passwd TDB! Error: Record does not exist occured while > storing the main record (USER_mareed-pc$) > [2006/11/09 13:07:17, 0] passdb/pdb_tdb.c:tdb_update_sam(640) > Unable to modify passwd TDB! Error: Record does not exist occured while > storing the main record (USER_mareed-pc$) > [2006/11/09 13:08:48, 1] rpc_server/srv_util.c:get_domain_user_groups(298) > > Relevant Samba Group Mapping... > > Domain Admins (S-1-5-21-138219912-1680474845-926709054-512) -> DomainAdmins > > /etc/group shows..... > DomainAdmins:x:507:elinori,root > > /etc/samba/smbusers > # Unix_name = SMB_name1 SMB_name2 ... > root = administrator admin > > > Is there something i am missing? What do the log errors mean? > > Regards, > > Les > >-- Michael Gasch Max Planck Institute for Evolutionary Anthropology Department of Human Evolution (IT Staff) Deutscher Platz 6 D-04103 Leipzig Germany Phone: 49 (0)341 - 3550 137 49 (0)341 - 3550 374 Fax: 49 (0)341 - 3550 399
In my setup, the solution for this issue was the "rename user script" parameter. Set it up and the problem should go. Daniel> > De: Michael Gasch <gasch@eva.mpg.de> > Assunto: Re: [Samba] Trouble Renaming Computer > Cc: Samba <samba@lists.samba.org> > Data: Tue, 14 Nov 2006 12:55:35 +0100 > Para: Les Stott <les@cyberpro.com.au> > > hi, > > renaming machines has been added later (i think > 3.0.21 or so, please > read the changelog). we?re running SLES10 with samba > 3.0.22b from Novell > and the rename machine story works. > > greez > > Les Stott wrote: > > Hi, > > > > i've just migrated from nt4 to samba 3.0.10-1.4E.9 > with tdbsam, running > > on Centos 4.4 > > > > The net rpc vampire went fairly smoothly. > > > > Now that samba is running as the PDC (nt4 machine > has been laid to rest) > > i am having trouble renaming computers in the > domain. > > > > If i try this from the windows workstation (XP > Professional) i get > > access denied. I use "root" or administrator which > is mapped to root as > > the account. > > > > In the samba logs i get the following... > > > > [2006/11/09 13:07:00, 0] > passdb/pdb_tdb.c:tdb_update_sam(640) > > Unable to modify passwd TDB! Error: Record does > not exist occured while > > storing the main record (USER_mareed-pc$) > > [2006/11/09 13:07:17, 0] > passdb/pdb_tdb.c:tdb_update_sam(640) > > Unable to modify passwd TDB! Error: Record does > not exist occured while > > storing the main record (USER_mareed-pc$) > > [2006/11/09 13:08:48, 1] > rpc_server/srv_util.c:get_domain_user_groups(298) > > > > Relevant Samba Group Mapping... > > > > Domain Admins > (S-1-5-21-138219912-1680474845-926709054-512) -> > DomainAdmins > > > > /etc/group shows..... > > DomainAdmins:x:507:elinori,root > > > > /etc/samba/smbusers > > # Unix_name = SMB_name1 SMB_name2 ... > > root = administrator admin > > > > > > Is there something i am missing? What do the log > errors mean? > > > > Regards, > > > > Les > > > > > > -- > Michael Gasch > Max Planck Institute for Evolutionary Anthropology > Department of Human Evolution (IT Staff) > Deutscher Platz 6 > D-04103 Leipzig > Germany > > Phone: 49 (0)341 - 3550 137 > 49 (0)341 - 3550 374 > > Fax: 49 (0)341 - 3550 399 > > > > _______________________________________________ > samba mailing list > samba@lists.samba.org > https://lists.samba.org/mailman/listinfo/samba >"Tudo o que sei ? que n?o sei de nada" (S?crates) _______________________________________________________ Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora! http://br.mobile.yahoo.com/mailalertas/