View previous topic :: View next topic |
Author |
Message |
archvile432 n00b

Joined: 07 Apr 2005 Posts: 36
|
Posted: Thu Sep 15, 2005 9:09 pm Post subject: samba problem |
|
|
I'm having problems getting my computer to share files over my home network, all I did was edit the config file, not sure if i have to do anything else. the error I'm getting is:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.14a]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
This is when I try smbclient -L localhost.
Any suggestions would be great. Thank you.
And here is my smb.conf:
Code: | [global]
# Replace MYWORKGROUPNAME with your workgroup/domain
workgroup = workgroup
# Of course this has no REAL purpose other than letting
# everyone knows it's not Windows!
# %v prints the version of Samba we are using.
server string = linux
# We are going to use cups, so we are going to put it in here ;-)
#printcap name = cups
#printing = cups
#load printers = yes
# We want a log file and we do not want it to get bigger than 50kb.
log file = /var/log/samba/log.%m
max log size = 50
# We are going to set some options for our interfaces...
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
# This is a good idea, what we are doing is binding the
# samba server to our local network.
# For example, if eth0 is our local network device
interfaces = lo eth0
bind interfaces only = yes
# Now we are going to specify who we allow, we are afterall
# very security conscience, since this configuration does
# not use passwords!
hosts allow = 127.0.0.1 192.168.1.0/24
hosts deny = 0.0.0.0/0
# Other options for this are USER, DOMAIN, ADS, and SERVER
# The default is user
security = share
# No passwords, so we're going to use a guest account!
guest account = dssloan
guest ok = yes
# We now will implement the on access virus scanner.
# NOTE: By putting this in our [Global] section, we enable
# scanning of ALL shares, you could optionally move
# these to a specific share and only scan it.
# For Samba 3.x. This enables ClamAV on access scanning.
vfs object = vscan-clamav
vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
# Now we setup our print drivers information!
#[print$]
#comment = Printer Drivers
#path = /etc/samba/printer # this path holds the driver structure
#guest ok = yes
#browseable = yes
#read only = yes
# Modify this to "username,root" if you don't want root to
# be the only printer admin)
#write list = root
# Now we'll setup a printer to share, while the name is arbitrary
# it should be consistent throughout Samba and CUPS!
#[HPDeskJet930C]
#comment = HP DeskJet 930C Network Printer
#printable = yes
#path = /var/spool/samba
#public = yes
#guest ok = yes
# Modify this to "username,root" if you don't want root to
# be the only printer admin)
#printer admin = root
# Now we setup our printers share. This should be
# browseable, printable, public.
#[printers]
#comment = All Printers
#browseable = no
#printable = yes
#writable = no
#public = yes
#guest ok = yes
#path = /var/spool/samba
# Modify this to "username,root" if you don't want root to
# be the only printer admin)
#printer admin = root
# We create a new share that we can read/write to from anywhere
# This is kind of like a public temp share, anyone can do what
# they want here.
[public]
comment = Public Files
browseable = yes
public = yes
create mode = 0766
guest ok = yes
path = /home/dssloan |
|
|
Back to top |
|
 |
jmbsvicetto Moderator


Joined: 27 Apr 2005 Posts: 4735 Location: Angra do Heroísmo (PT)
|
Posted: Fri Sep 16, 2005 1:01 am Post subject: |
|
|
Hi.
Try to replace your workgroup name with the following and then restart Samba.
Code: | workgroup = WORKGROUP
# /etc/init.d/samba restart |
Does it work? _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
 |
idic n00b

Joined: 09 Oct 2005 Posts: 3
|
Posted: Sun Oct 09, 2005 6:12 pm Post subject: |
|
|
I have been working on this for a bit now and found the problem (for me) to be with clamd. my error log reads:
Code: |
[2005/10/09 11:59:42, 0] smbd/vfs.c:vfs_init_custom(259)
Can't find a vfs module [vscan-clamav]
[2005/10/09 11:59:42, 0] smbd/vfs.c:smbd_vfs_init(322)
smbd_vfs_init: vfs_init_custom failed for vscan-clamav
[2005/10/09 11:59:42, 0] smbd/service.c:make_connection_snum(524)
vfs_init failed for service IPC$
|
if I stop the vfs object from loading I am able to see my shares.
... still working on how to load clam properly.
[UPDATE] ah ... looks like i compiled samba with -ova . Recompiling now. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|