problems with smbpasswd and freebsd

Melissa Thrush mmt4q at ee.virginia.edu
Thu Dec 2 15:47:52 GMT 1999


Tim,

I don't believe Olivier is correct.  You DO NOT put a $ at then end of the workstation name
when
using the smbpasswd -a -m command.

For an example take a look at:

http://socrates.mps.ohio-state.edu/~ccunning/samba.html

Under the Add Machine Accounts section you'll see:

Now you need to add a few accounts to your computer. In your /etc/passwd (and /etc/shadow if
you use shadow passwords) create a user account for each Windows client that will be
connecting to your samba server. Each username must be followed by a $, the shell, home
directory, password, and all that don't matter, you just need the machine name and the UID.
For example, my /etc/passwd contains:


machine_1$:x:56:230:Welk:/dev/null:/
machine_2$:x:57:230:Hendrix:/dev/null:/

and my /etc/shadow:


machine_1$:NP:6445::::::
machine_2$:NP:6445::::::

Now you'll need to create samba accounts for these machines. Go to your samba bin directory
and run

smbpasswd -a -m machine_1

for each machine. DO NOT put the $ at the end, the program will do that for you. Do this for
each Windows client that will connect to your machine. At this point as well, it would be a
good idea to test out your setup. Run the program testparm in the samba bin directory. It
should give no errors, and list the shares available.

I followed this example and it works fine in at my location but I'm using NIS so my entries
are in /var/yp/passwd and /var/yp/shadow.

Hope this helps,

Melissa

Olivier Wegria wrote:

>         don't you forget the $ in /usr/local/samba/bin/smbpasswd -a -m workstation_name$
>
>         Olivier
>
> -----Message d'origine-----
> De:     Tim Radigan [SMTP:rad2921 at cup.edu]
> Date:   jeudi 2 decembre 1999 16:08
> A:      Multiple recipients of list SAMBA-NTDOM
> Objet:  problems with smbpasswd and freebsd
>
> hi.. i'm new to this mailing list.. so if my answer has been answered before
> please dont get mad..
>
> but.. my problem arises when i try to add the workstation_name$ to
> /etc/passwd and then i run /usr/local/samba/bin/smbpasswd -a -m
> workstation_name
>
> for some reason i always get the error "user not in system password file..
> but i have added it to /etc/passwd  .. i don't know what the exact problem
> is.. but i've gone through the Samba Online documents.. and i'm trying to
> have my NT Workstation to connect to my FreeBSD server using the latest
> version of samba.. the problem i get is the: "This machine account for this
> computer either does not exist or is not accessable."
>
> and samba won't recognize the added user i added in /etc/passwd.. if anyone
> has any suggestions please help.. thank you very much..
>
> Tim Radigan

--
Melissa Thrush
Dept. of Electrical Engineering
University of Virginia
Thornton Hall - C213
Phone: 804-924-6072
Fax:   804-924-8818




More information about the samba-ntdom mailing list