Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Apr 2001 11:44:37 -0500
From:      Andrew Hesford <ajh3@chmod.ath.cx>
To:        Andy Myers <acmyers@cfl.rr.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Samba
Message-ID:  <20010407114437.B58031@cec.wustl.edu>
In-Reply-To: <001a01c0bf80$17d9c240$15fea8c0@casper>; from acmyers@cfl.rr.com on Sat, Apr 07, 2001 at 12:30:43PM -0400
References:  <001a01c0bf80$17d9c240$15fea8c0@casper>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Apr 07, 2001 at 12:30:43PM -0400, Andy Myers wrote:
>    Hi all.
>    
>    I just set up Samba, and I'm trying to connect to my freebsd box from
>    my win2k box.   The freebsd box shows up in my workgroup, but when I
>    try to connect I get a "The account in not authorized to log in from
>    this station" error.
>    
>    Does that error ring any bells?

You didn't build an smbpasswd file, did you? You need to have users and
passwords in smbpasswd in order for Samba to allow you to log in, by
default.

See the manpages for smbpasswd(8) and smbpasswd(5) to see how to build
those.

NOTE: I imagine Win2K allows you to specify the username as well as the
password to connect with? Win98 doesn't give you a username choice, and
this can be a problem: it just sends your current username to Samba. In
order to work around this, you need to do one of two things on the
network:

1. Create an account on the windows box with the same name as a FreeBSD
user, who has been added to smbpasswd.

2. Create a username map file on the Samba box, so that Samba knows how
to map Win98 users to UNIX ones. The format of an entry in the username
map is such:

	<unix-user> = <win-user-1> [<win-user-2> ...]

Each UNIX user should be on its own line. Then with this file created
(call it anything you want), add an entry to smb.conf:

	username map = <username map file>

Like I said, this may not be a concern for Win2k, but it's good to keep
in the back of your mind as a source of problems. Furthermore, a map
might be good if Windows asks for a username/password every time you try
to connect.

-- 
Andrew Hesford
ajh3@chmod.ath.cx

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010407114437.B58031>