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! :)

[1426 byte] By [ph0enix2002] at [2007-11-26 0:45:56]
# 1
BTW.I'm using that config on Solaris 9 systems running Samba 3.00 through 3.06 and they all work fine.
ph0enix2002 at 2007-7-5 19:41:16 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2
It turns out that only WinXP systems can't connect. My Win 2000 servers connect to the Samba server just fine. Now, that it really weird.
ph0enix2002 at 2007-7-5 19:41:16 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3
Hi,i tried your smb.conf, it works with w2k and win xp, no problems at all. maybe it is only a problem of your xp ?Holger
bauerboehn at 2007-7-5 19:41:16 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 4
I tried it from two different XP SP2 machines (both with Windows Firewall disabled) - same message. I figured I'd give it a shot from a Windows 2003 server (since its guts are a lot like XP's) and it works fine as well. I'm stumped. Perhaps SP2 is what adds the kink.
ph0enix2002 at 2007-7-5 19:41:16 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 5
i have xp with sp2, so not sp2 is the main problem.
bauerboehn at 2007-7-5 19:41:16 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 6
how are you accessing (browsing) the files ?You said, you can see the dir listings, but than acces is denied. Your share is olny read only. Maybe your software tries an open with write acces. What are you using ?
bauerboehn at 2007-7-5 19:41:16 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 7

I can't even list the files from an XP system. I map a drive using the "net use * \\sun\share" command, then I try to list the files using either "dir" or "windows explorer" on the mapped drive. In both cases I get access denied errors. It works fine on Win 2000 and Win 2003 Servers.The XP systems have no problems accessing Samba 3.00 and 3.06 running on Solaris 9 systems.

ph0enix2002 at 2007-7-5 19:41:16 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 8
I'm still not having any luck with this.
ph0enix2002 at 2007-7-5 19:41:16 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 9
HeyAre you able to access your samba from windows?I am trying to get my samba 3.0.10 to access windows. Running a w2k envThanksJoe
bravored at 2007-7-5 19:41:16 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 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 <==============>

BigJimMcD at 2007-7-5 19:41:16 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 11
My solaris isnt attached installed with printers. How do I add printers?Thanks
bravored at 2007-7-5 19:41:16 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 12
In your share [user]comment = User's filespath = /export/home/userread only = Noguest ok = Yeschange the path entry to path = /home/userand likewise for the rest that use /export/home/*and like magic it maps!
fthe_burl at 2007-7-5 19:41:16 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 13
In my pc samba is working but SWAT is not. I have edited /etc/services, /etc/inetd and but still not. Please help me.Regards,Dastegir
Dastegir at 2007-7-5 19:41:16 > top of Java-index,Solaris Operating System,Solaris 10 Features...