I'm having trouble getting 2 SAMBA servers set up. When it was all on
mercury, everything was fine. Now I cannot browse the Neighborhood nor
mount printers from mercury.
Attached are 2 config files on my two SAMBA servers. Mercury is intended
to be a print server / name server / Internet gateway / mail server.
Helios is a file server.
Our network is Win95 clients accessing SPARC workstations (mercury &
helios). Mercury is running Solaris 2.5 & helios is running Solaris 2.6.
Both are running SAMBA v1.9.16.p11. I am currently adding a WinNT 4.0
client as well.
I've gone through all the steps in the diagnosis.txt and everything seems
ok.
>From the Win95 & WinNT client nothing shows up in the neighborhood.
>From the WinNt client:
net view \\helios shows all the shares
net view \\mercury gives a System error No 5 has occurred.
Access denied.
the WinNT has SP3 installed. I have Loaded the WinNT registry patch per
the winNT.txt document.
Any help would be greatly appreciated.
-------------- next part --------------
; Configuration file for smbd.
; ===========================================================================;
For the format of this file and comprehensive descriptions of all the
; configuration option, please refer to the man page for smb.conf(5).
;
; The following configuration should suit most systems for basic usage and
; initial testing. It gives all clients access to their home directories and
; allows access to all printers specified in /etc/printcap.
;
; Things you need to check:
; --------------------------
;
; 1: Check the path to your printcap file. If you are using a system that does
; not use printcap (eg., Solaris), create a file containing lines of the
; form
;
; printername|printername|printername|
;
; where each "printername" is the name of a printer you want to
provide
; access to. Then alter the "printcap =" entry to point to the new
file.
;
; If using Solaris, the following command will generate a suitable printcap
; file:
;
; lpc status | grep ":" | sed s/:/\|/ > myprintcap
;
; 2: Make sure the "print command" entry is correct for your system.
This
; command should submit a file (represented by %s) to a printer
; (represented by %p) for printing and should REMOVE the file after
; printing.
;
; One most systems the default will be OK, as long as you get "printing
="
; right.
;
; It is also a good idea to use an absolute path in the print command
; as there is no guarantee the search path will be set correctly.
;
; 3: Make sure the "printing =" option is set correctly for your
system.
; Possible values are "sysv", "bsd" or "aix".
;
; 4: Make sure the "lpq command" entry is correct for your system. The
default
; may not work for you.
;
; 5: Make sure that the user specified in "guest account" exists.
Typically
; this will be a user that cannot log in and has minimal privileges.
; Often the "nobody" account doesn't work (very system
dependant).
;
; 6: You should consider the "security =" option. See a full
description
; in the main documentation and the smb.conf(5) manual page
;
; 7: Look at the "hosts allow" option, unless you want everyone on the
internet
; to be able to access your files.
;
[global]
printing = sysv
printcap name = /usr/local/samba/lib/smbPrinters
load printers = yes
guest account = guest
security = user
; set dead time to 10 min; i.e. if connection inactive for 10 min, disconnect
dead time = 10
; This next option sets a separate log file for each client. Remove
; it if you want a combined log file.
log file = /usr/local/samba/log.%m
; You will need a world readable lock directory and "share modes=yes"
; if you want to support the file sharing modes for multiple users
; of the same files
lock directory = /usr/local/samba/var/locks
share modes = yes
workgroup = SKEES
browse list = yes
wins support = no
preferred master = no
domain master = no
[homes]
comment = Home Directories
browseable = yes
read only = yes
create mode = 0550
[printers]
comment = All Printers
path = /var/spool/samba
print command = /usr/ucb/lpr -P %p %s; rm %s
browseable = yes
printable = yes
public = yes
writable = no
create mode = 0700
[tmp]
comment = Temporary file space
path = /tmp
read only = no
public = yes
create mask = 0777
[soft01]
comment = PC Software
path = /soft01
read only = no
public = yes
create mask = 0770
[soft02]
comment = PC Software
path = /soft02
read only = no
public = yes
create mask = 0770
[home]
comment = Home Directories
path = /export/home
read only = no
public = yes
create mask = 0770
[soft03]
comment = Unix Software
path = /soft03
read only = no
public = yes
create mask = 0770
[license]
comment = PC License
path = /soft01/lotshare
read only = no
public = yes
create mask = 0770
[admin]
comment = Admin
path = /admin
read only = no
public = yes
create mask = 0770
[proj01]
comment = Project 1 Directory
path = /proj01
read only = no
public = yes
create mask = 0770
[proj02]
comment = Project 2 Directory
path = /proj02
read only = no
public = yes
create mask = 0770
[proj03]
comment = Project 3 Directory
path = /proj03
read only = no
public = yes
create mask = 0770
[gis01]
comment = GIS01
path = /gis01
read only = no
public = yes
create mask = 0770
[gis02]
comment = GIS02
path = /gis02
read only = no
public = yes
create mask = 0770
[gis03]
comment = GIS03
path = /gis03
read only = no
public = yes
create mask = 0770
[photo01]
comment = PHOTO 01
path = /photo01
read only = yes
public = yes
create mask = 0770
[photo02]
comment = PHOTO 02
path = /photo02
read only = yes
public = yes
create mask = 0770
[photo03]
comment = PHOTO 03
path = /photo03
read only = yes
public = yes
create mask = 0770
[cdrom]
comment = CDROM
path = /cdrom
read only = yes
public = yes
;
; Other examples.
;
; A private printer, usable only by fred. Spool data will be placed in
fred's
; home directory. Note that fred must have write access to the spool directory,
; wherever it is.
;[fredsprn]
; comment = Fred's Printer
; valid users = fred
; path = /homes/fred
; printer = freds_printer
; public = no
; writable = no
; printable = yes
;
; A private directory, usable only by fred. Note that fred requires write
; access to the directory.
;[fredsdir]
; comment = Fred's Service
; path = /usr/somewhere/private
; valid users = fred
; public = no
; writable = yes
; printable = no
;
; A publicly accessible directory, but read only, except for people in
; the staff group
;[public]
; comment = Public Stuff
; path = /usr/somewhere/public
; public = yes
; writable = no
; printable = no
; write list = @staff
;
; a service which has a different directory for each machine that connects
; this allows you to tailor configurations to incoming machines. You could
; also use the %u option to tailor it by user name.
; The %m gets replaced with the machine name that is connecting.
;[pchome]
; comment = PC Directories
; path = /usr/pc/%m
; public = no
; writeable = yes
;
;
; A publicly accessible directory, read/write to all users. Note that all files
; created in the directory by users will be owned by the default user, so
; any user with access can delete any other user's files. Obviously this
; directory must be writable by the default user. Another user could of course
; be specified, in which case all files would be owned by that user instead.
;[public]
; path = /usr/somewhere/else/public
; public = yes
; only guest = yes
; writable = yes
; printable = no
;
;
; The following two entries demonstrate how to share a directory so that two
; users can place files there that will be owned by the specific users. In this
; setup, the directory should be writable by both users and should have the
; sticky bit set on it to prevent abuse. Obviously this could be extended to
; as many users as required.
;[myshare]
; comment = Mary's and Fred's stuff
; path = /usr/somewhere/shared
; valid users = mary fred
; public = no
; writable = yes
; printable = no
; create mask = 0765
-------------- next part --------------
; Configuration file for smbd.
; ===========================================================================;
For the format of this file and comprehensive descriptions of all the
; configuration option, please refer to the man page for smb.conf(5).
;
; The following configuration should suit most systems for basic usage and
; initial testing. It gives all clients access to their home directories and
; allows access to all printers specified in /etc/printcap.
;
; Things you need to check:
; --------------------------
;
; 1: Check the path to your printcap file. If you are using a system that does
; not use printcap (eg., Solaris), create a file containing lines of the
; form
;
; printername|printername|printername|
;
; where each "printername" is the name of a printer you want to
provide
; access to. Then alter the "printcap =" entry to point to the new
file.
;
; If using Solaris, the following command will generate a suitable printcap
; file:
;
; lpc status | grep ":" | sed s/:/\|/ > myprintcap
;
; 2: Make sure the "print command" entry is correct for your system.
This
; command should submit a file (represented by %s) to a printer
; (represented by %p) for printing and should REMOVE the file after
; printing.
;
; One most systems the default will be OK, as long as you get "printing
="
; right.
;
; It is also a good idea to use an absolute path in the print command
; as there is no guarantee the search path will be set correctly.
;
; 3: Make sure the "printing =" option is set correctly for your
system.
; Possible values are "sysv", "bsd" or "aix".
;
; 4: Make sure the "lpq command" entry is correct for your system. The
default
; may not work for you.
;
; 5: Make sure that the user specified in "guest account" exists.
Typically
; this will be a user that cannot log in and has minimal privileges.
; Often the "nobody" account doesn't work (very system
dependant).
;
; 6: You should consider the "security =" option. See a full
description
; in the main documentation and the smb.conf(5) manual page
;
; 7: Look at the "hosts allow" option, unless you want everyone on the
internet
; to be able to access your files.
;
[global]
printing = sysv
printcap name = /usr/local/samba/lib/smbPrinters
load printers = yes
guest account = guest
security = user
; set dead time to 10 min; i.e. if connection inactive for 10 min, disconnect
dead time = 10
; This next option sets a separate log file for each client. Remove
; it if you want a combined log file.
log file = /usr/local/samba/log.%m
; You will need a world readable lock directory and "share modes=yes"
; if you want to support the file sharing modes for multiple users
; of the same files
lock directory = /usr/local/samba/var/locks
share modes = yes
workgroup = SKEES
browse list = yes
wins support = yes
domain master = yes
preferred master = yes
os level = 65
[homes]
comment = Home Directories
browseable = yes
read only = yes
create mode = 0550
;[printers]
; comment = All Printers
; path = /var/spool/samba
; print command = /usr/ucb/lpr -P %p %s; rm %s
; browseable = yes
; printable = yes
; public = yes
; writable = no
; create mode = 0700
[hplj5simx]
comment = HPLJ5SiMx
path = /var/spool/samba/%p
print command = /usr/ucb/lpr -P %p %s; rm %s
browseable = yes
printable = yes
public = yes
writeable = no
create mode = 0700
[hplj4mplus]
comment = HPLJ4MPlus
path = /var/spool/samba/%p
print command = /usr/ucb/lpr -P %p %s; rm %s
browseable = yes
printable = yes
public = yes
writeable = no
create mode = 0700
[hpdj650c]
comment = HPDJ650c
path = /var/spool/samba/%p
print command = /usr/ucb/lpr -P %p %s; rm %s
browseable = yes
printable = yes
public = yes
writeable = no
create mode = 0700
[tmp]
comment = Temporary file space
path = /tmp
read only = no
public = yes
create mask = 0777
;
; Other examples.
;
; A private printer, usable only by fred. Spool data will be placed in
fred's
; home directory. Note that fred must have write access to the spool directory,
; wherever it is.
;[fredsprn]
; comment = Fred's Printer
; valid users = fred
; path = /homes/fred
; printer = freds_printer
; public = no
; writable = no
; printable = yes
;
; A private directory, usable only by fred. Note that fred requires write
; access to the directory.
;[fredsdir]
; comment = Fred's Service
; path = /usr/somewhere/private
; valid users = fred
; public = no
; writable = yes
; printable = no
;
; A publicly accessible directory, but read only, except for people in
; the staff group
;[public]
; comment = Public Stuff
; path = /usr/somewhere/public
; public = yes
; writable = no
; printable = no
; write list = @staff
;
; a service which has a different directory for each machine that connects
; this allows you to tailor configurations to incoming machines. You could
; also use the %u option to tailor it by user name.
; The %m gets replaced with the machine name that is connecting.
;[pchome]
; comment = PC Directories
; path = /usr/pc/%m
; public = no
; writeable = yes
;
;
; A publicly accessible directory, read/write to all users. Note that all files
; created in the directory by users will be owned by the default user, so
; any user with access can delete any other user's files. Obviously this
; directory must be writable by the default user. Another user could of course
; be specified, in which case all files would be owned by that user instead.
;[public]
; path = /usr/somewhere/else/public
; public = yes
; only guest = yes
; writable = yes
; printable = no
;
;
; The following two entries demonstrate how to share a directory so that two
; users can place files there that will be owned by the specific users. In this
; setup, the directory should be writable by both users and should have the
; sticky bit set on it to prevent abuse. Obviously this could be extended to
; as many users as required.
;[myshare]
; comment = Mary's and Fred's stuff
; path = /usr/somewhere/shared
; valid users = mary fred
; public = no
; writable = yes
; printable = no
; create mask = 0765
-------------- next part --------------
Thomas G. Tri (ttri@skees.com)
Skees Engineering, Inc.
4229 Bardstown Rd., Suite 314
Louisville, KY 40218
502.499.0358
Fax 499.1659