You are not logged in.

#1 2010-02-21 12:13:27

scar
Member
From: Hungary
Registered: 2009-10-01
Posts: 449

samba is missing something ( or I do )

on archx86_64, samba 3.4.5-1.1 - system is up to date

on my server i have a samba fileshare
samba is in my rc.conf daemons list, it starts as i want at bootup, but:

the filshare is invisible from nautilus or from a terminal with smbtree
(yes, i use users having a samba password for smbtree)

it fails to list a visible share only at bootup,
and if I restart samba manually, 30 seconds later it becomes
visible with smbtree and from nautilus too

here is my smb.conf:

#======================= Global Settings =====================================
[global]

   workgroup = WORKGROUP

   server string = Samba Server

   security = user

   log file = /var/log/samba/%m.log

   max log size = 50

   dns proxy = no

#============================ Share Definitions ==============================


[archlinux]
   comment = My Arch Fileserver
   path = /path/to/archshare
   valid users = user1 user2
   public = yes
   writable = yes
   browseable = yes
   printable = no
   create mask = 0765

# where path and permissions are ok, users were set with smbpasswd -a user1, etc and have a valid samba password


any ideas?

Last edited by scar (2010-02-21 12:14:01)


“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson

Offline

#2 2010-02-21 13:20:18

Sin.citadel
Member
Registered: 2008-01-22
Posts: 267

Re: samba is missing something ( or I do )

is samba at the end of the list in DAEMONS in rc.conf file? Also, does the share work after opening it specifically in nautilus using smb://<ip address>/archlinux

Offline

#3 2010-02-21 13:39:17

scar
Member
From: Hungary
Registered: 2009-10-01
Posts: 449

Re: samba is missing something ( or I do )

yes, yere is my daemons list:

DAEMONS=(syslog-ng !network netfs crond sensors sshd hal fam networkmanager clamav cups avahi-daemon gdm samba)

and yes, it works, mounts, and does everything, but it is not visible from nautilus
( i can access it even from nautilus with smb://my.servers.ip.address/ --- that lists all the available shares)
but if i click on network in nautilus ( with a client or with the server, it is the same ) it does not even show the workgroup...
and certainly not the machines

it has to do something with my smb.conf, I'm sure that is'm missing something


“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson

Offline

#4 2010-02-21 16:32:58

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,732
Website

Re: samba is missing something ( or I do )

Hmm... never heard of that problem myself.  Your smb.conf looks okay - here is my smb.conf if it helps you.

[global]
   workgroup = share
   server string = arch server
   security = user
   hosts allow = 192.168.1. 127.
   log file = /var/log/samba/%m.log
   max log size = 50
   socket options = TCP_NODELAY

[nas share]
   comment = common files
   path = /media/nas
   valid users = nasuser
   force user = nasuser
   force group = nasuser
   writable = yes
   create mask = 0755

Edit, why not just mount the share via an /etc/fstab entry to /media/mountpoint or do so via a script?

Last edited by graysky (2010-02-21 16:34:40)

Offline

#5 2010-02-21 16:56:08

Sin.citadel
Member
Registered: 2008-01-22
Posts: 267

Re: samba is missing something ( or I do )

yes, it is a much better option to simply mount the share to a mount point (smbmount or /etc/fstab entry), but if it helps, try the setting below, maybe it might help.

[global]
domain master = Yes
local master = Yes
preferred master = Yes

Offline

#6 2010-02-21 17:46:13

scar
Member
From: Hungary
Registered: 2009-10-01
Posts: 449

Re: samba is missing something ( or I do )

well... I have some windows users on my network, I guess they dont have /etc/fstab smile

Sin.citadel: I've tried your solution, same result  -  no smbtree output after booting up the system,
but there is the right smbtree output after restarting the samba service

strange...


“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson

Offline

#7 2010-02-21 18:07:58

Sin.citadel
Member
Registered: 2008-01-22
Posts: 267

Re: samba is missing something ( or I do )

for windows users, simply point them to the link \\<ip address>\share and create a shortcut to that link to the desktop (easier for the users to remember). as a possible workaround for your problem, that the samba service needs to be restarted to work correctly, try adding /etc/rc.d/samba restart to /etc/rc.local (dont remove samba from /etc/rc.conf)

Offline

#8 2010-02-21 18:18:58

scar
Member
From: Hungary
Registered: 2009-10-01
Posts: 449

Re: samba is missing something ( or I do )

ok, so grab yourself a coffee and listen

I know how to mount automatically a samba share with windows, even with a script... ( with net use xyz )
The problem is, that it does not even start... ugly little beast

Yes, I've tried the rc.local method, and as result:
I had no keyboard input anymore ( even on a fresh install )
Funny, eh?


“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson

Offline

#9 2010-02-22 09:38:36

Sin.citadel
Member
Registered: 2008-01-22
Posts: 267

Re: samba is missing something ( or I do )

do you mean that you couldnt get to the login prompt? try adding sleep 10 before the samba restart in rc.local, maybe the sudden restart just after starting the service is causing it to get stuck.

Offline

#10 2010-03-03 20:07:35

scar
Member
From: Hungary
Registered: 2009-10-01
Posts: 449

Re: samba is missing something ( or I do )

it just doesn't want work... (sleep 30)


“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson

Offline

#11 2010-03-03 20:21:33

dschrute
Member
From: NJ, USA
Registered: 2007-04-09
Posts: 183

Re: samba is missing something ( or I do )

testparm may show if there's any issues with your smb.conf :
http://www.samba.org/samba/docs/man/man … arm.1.html

EDIT - I really need to read posts more carefully...I thought that samba was *not* starting on boot.

Anyway, I would look at name resolution, and also check all samba logs for anything funny.

Last edited by dschrute (2010-03-03 20:28:44)

Offline

Board footer

Powered by FluxBB