You are not logged in.
Pages: 1
Hi,
I am getting bold trying to make Samba working. It is not the first time I spend a lot of time on it, but right now I am really stuck !
When I try to see my shares from another computer with nautilus, it says "Unable to mount location" (I see my computer and I see my shared folder, I just can't get into). With smb client I get :
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.30]
Server not using user level security and no password supplied.
tree connect failed: NT_STATUS_NO_SUCH_GROUP
(when asked for password, I just hit enter, since I did specify no password in my smb.conf)
Here is my smb.conf :
[global]
workgroup = WORKGROUP
netbios name = %h
server string = Samba Server
security = share
null passwords = yes
hide dot files = yes
hosts allow = 192.168.0. 127. 137.122.
load printers = yes
log level =2
log file = /var/log/samba/%m.log
max log size = 50
[shares]
path = /home/damien/shares
public = yes
browseable = yes
force user = nobody
force group = nogroup
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
writable = no
printable = yes
Samba log (log.nmdb) says :
[2008/06/09 11:44:34, 2] nmbd/nmbd_lmhosts.c:load_lmhosts_file(41)
load_lmhosts_file: Can't open lmhosts file /etc/samba/lmhosts. Error was No such file or directory
Indeed I don't have a lmhosts file, is it compulsory ?
I precise that I did a chmod -R 777 on my shared folder.
Any clue ?
Last edited by Bapman (2008-06-12 01:04:16)
Offline
Hmmm I'm getting really bored with Samba, for all the years I have been using Linux, it has been a pain to configure...
Does someone has a simple smb.conf for sharing a folder without password ?
Last edited by Bapman (2008-06-10 16:49:37)
Offline
I'm connecting to my samba shares via Windows XP so it may be a little different, but for each share I have this:
path = /mnt/Extra/
comment = Extra
browseable = yes
read only = yes
guest ok = yes
Notice it is read-only, but it works without a password. They are all NTFS also. All global options are commented with a ; except for security, workgroup, server string and log file stuff, so not much of a difference there.
Offline
Thanks for the answer but it didn't change anything.
I installed Arch on another computer, I tried to install Samba with public shares following an Ubuntu howto and... same result ! There is something I must be doing wrong every time...
Offline
I finally got it working. So here is my final smb.conf :
[global]
workgroup = MSHOME
netbios name = %h
server string = Samba Server
security = share
hide dot files = yes
passdb backend = tdbsam
dns proxy = no
wins support = no
hosts allow = 192.168.0. 127.
[share]
comment = Public Share
path = /home/bapman/share
read only = no
writable = yes
create mask = 0666
directory mask = 0777
guest ok = yes
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
If it can help someone else...
What I forgot I guess, was to create a Samba account for user nobody. So I did :
sudo smbpasswd -a nobody
and :
sudo smbpasswd -n nobody
so that it has no password.
Also, don't forget to chmod your shared directories !
Offline
Pages: 1