You are not logged in.
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
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
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
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 = 0755Edit, 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
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
well... I have some windows users on my network, I guess they dont have /etc/fstab ![]()
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
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
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
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
it just doesn't want work... (sleep 30)
“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson
Offline
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