Solaris 10 - does it samba?
I'm trying to configure the Sun supplied version of Samba (/usr/sfw - v.3.04) and having no luck. I keep getting "access denied" when connecting from a XP workstation. It maps the drive to the file shares but keeps saying access denied when I try to browse them. The smbd and nmbd logs are showing successful connections (no errors). I check the syslog for authentication failures - there is nothing relevant in it. I have my protocol level set to default.(though I tried setting it to NT1) I even tried mapping unix users to samba users. Still no luck. Here's my smb.conf. It's quite simple actually:
[global]
workgroup = WORKGROUPNAME
netbios name = HOSTNAME
server string = Sun Ultra-10 (Samba %v)
interfaces = hme0
bind interfaces only = Yes
security = share
log level = 2
log file = /usr/local/samba/var/smb.log
os level = 10
preferred master = No
local master = No
domain master = No
browse list = No
dns proxy = No
hosts allow = 192.168.0.
[root]
comment = sparc root
path = /
guest ok = Yes
[share]
comment = sparky share
path = /export/home/share
read only = No
guest ok = Yes
[user]
comment = User's files
path = /export/home/user
read only = No
guest ok = Yes
What am I doing wrong?
Thanks in advance! :)
# 10
1) Use grep to verify that swat was added to /etc/services
# grep SWAT /etc/services
swat901/tcp # SWAT for SAMBA
2) Use/usr/sfw/bin/smbpasswd-a my-user-name
to add your users (the same user names as in windows.
3) Verify that samba server & client are running, use:
$ ps -ef | grep mbd
root54710 18:00:26 ?0:00 /usr/sfw/sbin/smbd -D
root55110 18:00:27 ?0:06 /usr/sfw/sbin/nmbd -D
my-user 48635470 12:41:14 ?0:18 /usr/sfw/sbin/smbd -D
my-user 5935 54990 14:43:44 pts/70:00 grep mbd
4) On the Solaris samba host, use:
$ /usr/sfw/bin/smbclient -L My-Solaris-Host-Name
to verify that your user/password (and samba) is working on
your Solaris host/samba server.
5) After trying the proceeding steps, if you still can not access
the samba share files from windows, try modifing the following
smb.conf to match your systems (workgroup, users, IP network, Share names, Share mount points, etc.). The following is a copy of the smb.conf file that I use on a Solaris 10/x86 machine. It works for access from both Windows 2000 and from both Suse 9.2 and Ferdora Core 3 Linux machines that are part of my local network.
#====> SAMBA /etc/sfw/smb.confexample <====
#=========> Global Settings <=============
[global]
# Workgroup = NT-Domain-Name or Workgroup-Name, eg: MY-GROUP
workgroup = MY-GROUP
# The equivalent of the NT Description field
server string = My-Host-name Samba Server
# Security mode.
security = user
# For security: Restricts connections to my local network
hosts allow = 192.168.0. 127.
load printers = yes
log file = /usr/local/samba/var/log.%m
max log size = 50
socket options = TCP_NODELAY
# Configure Samba to use multiple interfaces
interfaces = 192.168.0.49 192.168.0.50
# Browser Control Options:
local master = yes
domain master = auto
preferred master = yes
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
wins support = yes
# Backend to store user information in.
passdb backend = tdbsam
# These scripts are used on a domain controller or stand-alone
# machine to add or delete corresponding unix accounts
add user script = /usr/sbin/useradd %u
add group script = /usr/sbin/groupadd %g
add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
delete user script = /usr/sbin/userdel %u
delete user from group script = /usr/sbin/deluser %u %g
delete group script = /usr/sbin/groupdel %g
#==========> Share Definitions <==========>
[homes]
comment = Home Directories
browseable = no
writable = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
[Share-1]
comment = Share-1
path = /Share-1
valid users = my-user my-2nd-user my-3rd-user
public = no
writable = yes
printable = no
create mask = 0774
[Share-2]
comment = Share-2
path = /Share-2
valid users = my-user my-2nd-user my-3rd-user
public = no
writable = yes
printable = no
create mask = 0774
#<==========> The End <==============>