Hello all, I was using Samba 2.2.5 on a Linux machine as a PDC and it was working fine. But know I installed FreeBSD 4.7 in this machine and installed Samba 2.2.6pre2. It's still working as a PDC, but I can't add machine trust accounts because FreeBSD doesn't accept $ in its usernames. How should I do now? Thanks in advance. _________________________________________________________________ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com
On Tue, 10 Dec 2002, [iso-8859-1] Jo?o Paulo Just Peixoto wrote:> Hello all, > > I was using Samba 2.2.5 on a Linux machine as a PDC and it was working fine. > But know I installed FreeBSD 4.7 in this machine and installed Samba > 2.2.6pre2. It's still working as a PDC, but I can't add machine trust > accounts because FreeBSD doesn't accept $ in its usernames. How should I do > now?A work-around is: 1. Add the machine account without the trailing '$' 2. Then edit the /etc/passwd (and if you have shadow passwords enabled also the /etc/shadow file) by adding a trailing '$' to the login id. 3. Add your machine to the smbpasswd file by using: smbpasswd -a -m 'machine_name' This should get you past the road block. - John T. -- John H Terpstra Email: jht@samba.org
On 10 Dec 2002 at 17:22, John H Terpstra wrote:> A work-around is: > > 1. Add the machine account without the trailing '$'Let's see if with the new non-perl pw on 5.x there is a possibility to not go through this hassle.> 2. Then edit the /etc/passwd (and if you have shadow passwords enabled > also the /etc/shadow file) by adding a trailing '$' to the login id.Use vipw, add the $. You can make a script to edit the master.passwd and run pwd_mkdb as it is the same as editing using vipw. And with a script, it's automatic.. Bruno Miguel Afonso, Biological Eng. student. brunomiguel at dequim dot ist dot utl dot pt D.E.Q. @ I.S.T. - Portugal "Linux is for Microsoft haters. BSD is for Unix lovers."