Date: Fri, 7 Jul 2000 20:07:04 -0400 (EDT) From: Lanny Baron <lnb@heretic.cybertouch.org> To: Joe.Warner@smed.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Unable to access SAMBA shares via WIN NT Message-ID: <Pine.BSF.4.21.0007071955360.22718-100000@heretic.cybertouch.org> In-Reply-To: <85256915.00672FC0.00@Deimos.smed.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello Joe,
I must assume you are using a win9.x that uses encrypted passwd's. Have
you told smb.conf to use encrypted? Have you tried using the samba gui
from anywhere? I will show you my smb.conf on this box as I have several
samba servers. One thing. Did you setup /usr/local/samba/private/smbpasswd
?
If not, that is going to mess you up everytime. All users should be in the
smbpasswd file. The file must be owned by root, and only writable by root.
To use the samba gui make sure you edit /etc/service as shown:
swat 901/tcp
and in /etc/inetd.conf:
swat stream tcp nowait.400 root /usr/local/samba/bin/swat swat
when you have done the above; ps auxw | grep inetd
then; kill -1 pid of inetd
Note that I did not use port to install samba. I prefer to have the
install of the tar file put all in the same location (/usr/local/samba)
Here is my smb.conf:
# Samba config file created using SWAT
# from wired.cybertouch.org (192.168.0.3)
# Date: 2000/07/05 22:10:58
# Global parameters
[global]
workgroup = FREEBSD
netbios name = HERETIC
server string = FreedomTC's File & Printer Server version %v on %h
interfaces = vr0 xl0
encrypt passwords = Yes
debug level = 2
syslog only = No
log file = /var/log/samba/log.%m
max log size = 50
name resolve order = wins host bcast
time server = Yes
os level = 65
preferred master = Yes
domain master = Yes
wins support = Yes
guest account = pcguest
create mask = 0644
[apps]
comment = Applications Directory
path = /data/shared/programs
write list = @wheel
writeable = Yes
guest ok = Yes
[backups]
comment = Backup Directory
path = /data/backups
writeable = Yes
create mask = 01777
guest ok = Yes
Now you notice that there are _no_ [homes]. That is because I use this
particular box as an application server. However to help you out, I will
show you what the correct settings are for the homes dir on the server
that does logins:
# Samba config file created using SWAT
# from wired.cybertouch.org (192.168.0.3)
# Date: 2000/06/27 16:09:49
# Global parameters
[global]
workgroup = FREEBSD
netbios name = SATAN
server string = Freedom Technologies server %v on host %h
encrypt passwords = Yes
min password length = 0
username map = /usr/local/samba/lib/username.map
debug level = 3
log file = /var/log/samba/log.%U
max log size = 50
name resolve order = wins host bcast
time server = Yes
logon script = netlogin.bat
logon path = \\%L\profiles\%U
logon drive = L
logon home = \\%L\profiles\%U
domain logons = Yes
local master = No
wins server = 192.168.0.1
guest account = pcguest
create mask = 0644
printer driver location = /usr/local/samba/lib/printers.def
[homes]
comment = Home Directories
path = %H
valid users = %S
writeable = Yes
browseable = No
[netlogon]
comment = Netlogon Service
path = /usr/local/samba/netlogon
write list = @wheel
writeable = Yes
locking = No
[profiles]
comment = Users profiles
path = /usr/local/samba/profiles
writeable = Yes
create mask = 01777
force create mode = 01777
directory mask = 01777
inherit permissions = Yes
[programs]
comment = Installed shared applications dir
path = /stg/programs
write list = lnb, @wheel, @staff
writeable = Yes
[pics]
comment = private pics directory
path = /home/lnb/pics
valid users = @wheel
write list = @wheel
That should help you out. If not, you can look at one of the mirrors..like
mine :-) I am official Canadian mirror for Samba.
http://samba.org click on Canada
good luck,
Lanny Baron
On Fri, 7 Jul 2000 Joe.Warner@smed.com wrote:
>
>
> Hi,
>
> I am posting this to FreeBSD-Questions in an act of desperation. I have
> setup and configured SAMBA to run on a FreeBSD workstation (FreeBSD 3.4) on
> our LAN where I work. I believe I have /usr/local/etc/smb.conf configured
> correctly because when I run "testparm", I get the message "Loaded services
> file OK." My workstation running FreeBSD shows up in the right domain on
> our network but when I try to access it, it presents me with a logon. I've
> tried every user name and password that I can think of and nothing works.
> I always get the message, "\\Warner_joe9 is not accessible The account is
> not authorized to login to this station." I thought in order to access a
> FreeBSD workstation from WIN NT, the login and password need to be the same
> as an existing account on the FreeBSD workstation. Also, I don't know if
> this is important or not but when I do "ps aux | more", I can see nmbd
> running but never see smbd running. I have the proper netbios entries for
> smbd and nmbd in my inetd.conf file. Should the smbd daemon be running?
> How come I don't see it? I've tried starting smbd by issuing the following
> as root: /usr/local/sbin/smbd and inetd smbd. The only one that shows up
> when I ps aux | more is inetd smbd but this still doesn't allow me access
> from a WIN NT workstation. I've read every piece of related documentation
> I can think of, exp. The Complete FreeBSD, the SAMBA section in Running
> Linux, the documentation at http://www.samba.org and the man pages and
> still can't get this to work. Here is what my smb.conf looks like:
>
> [global]
> workgroup = SMS_SLC
> guest account = nobody
> keep alive = 30
> printing = bsd
> printcap name = /etc/printcap
> load printers = yes
> print command = /usr/bin/lpr -r -P%p %s
> lpq command = /usr/bin/lpq -P%p
> lprm command = /usr/bin/lprm -p%p %j
> preserve case = yes
> short preserve case = yes
> case sensitive = no
>
> [homes]
> comment = /home/(name of account on FreeBSD workstation is here)
> browseable = yes
> read only = no
> create mode = 0750
>
> [usr]
> comment = /home/(again..name of FreeBSD account)
> browseable = yes
> read only = no
> create mode = 0750
> directory = /home/(name of FreeBSD account)
>
> [cdrom]
> comment = FreeBSD CD-ROM
> path = /cdrom
> read only = yes
> locking = no
>
> [printers]
> comment = All Printers
> browseable = yes
> printable = yes
> public = no
> read only = yes
> create mode = 0700
> directory = /tmp
>
> This is a shortened version of the smb.conf file that I created with Vi. I
> still have the orginal file that I copied as smb.old. Any help with this
> would be greatly appreciated. I've been struggling with this for 2 weeks
> now (trying to find the solution on my own) and I'm just spinning my
> wheels. Thanks. Joe
>
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>
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?Pine.BSF.4.21.0007071955360.22718-100000>
