You are not logged in.

#1 2010-11-23 20:04:19

glad
Member
From: Norway
Registered: 2005-11-01
Posts: 103
Website

What is wrong with this setup? (samba)

[global]
workgroup = Media
server string = %h server (Samba, Ubuntu)
log file = /var/log/samba/log.%m
max log size = 1000
security = share
wins support = yes
preferred master = no
guest account = thomas


[Disk (1)]
comment = Samba server
path = /home/hybel
browseable = yes
writeable = yes
guest ok = yes
available = yes
public = yes



This config is supposed to give me access from other computers without asking for password? From windows computers this works like it should, but from linux it dosnet. Always asks for passwd and always failt to login.

And i set workgroup to media, but appears on the network as myhost. Why?

Offline

#2 2010-11-23 20:19:12

glad
Member
From: Norway
Registered: 2005-11-01
Posts: 103
Website

Re: What is wrong with this setup? (samba)

No one knows?

Offline

#3 2010-11-24 09:50:43

toffyrn
Member
Registered: 2008-10-07
Posts: 221

Re: What is wrong with this setup? (samba)

Samba can be a bit of a hassle to configure properly.

No idea what it SHOULD look like, but I can post mine. (It is at least working here)

[global]
   workgroup = speido
   server string = toffyrn-net
   security = user
   hosts allow = 192.168.0. 127.
   load printers = yes
   log file = /var/log/samba/%m.log
   max log size = 50
   dns proxy = no 

[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
   guest ok = no
   writable = no
   printable = yes

[tmp]
   comment = Temporary file space
   path = /tmp/tmpshared
   read only = no
   public = yes

[torrents]
   comment = torrents
   path = /srv/deluge
   public = yes
   writable = no
   printable = no

tmp is writable by everyone, torrents is only readable.

Also you would need to open some ports in your firewall.

PS: Your second post is called bumping and discouraged here on the forums...

Lykke til!

Offline

#4 2010-11-24 11:17:05

glad
Member
From: Norway
Registered: 2005-11-01
Posts: 103
Website

Re: What is wrong with this setup? (samba)

I dont know why but it worked perfectly when i added this: local master = no

Anyone here who knows what local master even means? I think the documentetion for samba is a bit crappy, maybe I should write a wiki page with the procedure to get it working with security = share

Do I need to use security = share to have sharing without password? or will public = yes give me the same result ?

Offline

#5 2010-11-24 11:29:59

toffyrn
Member
Registered: 2008-10-07
Posts: 221

Re: What is wrong with this setup? (samba)

I have "security = user" and "public = yes" lets me log in without password...

Offline

#6 2010-11-24 13:43:04

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: What is wrong with this setup? (samba)

@glad,

Is the hostname of the machine on which the samba server is running called "myhost", perchance?

The workgroup is different from the hostname.   If you have a large network, you can set the workgroup to filter out (as in hide/prohibit access to) computers that you don't need.
Your server string in you samba configuration set's how it'll show up on the network.   From what I remember about configuring samba, the %h uses your hostname followed by the rest of it, though it has been years, so I might be a bit off.


Knute

Offline

#7 2010-11-24 22:03:35

glad
Member
From: Norway
Registered: 2005-11-01
Posts: 103
Website

Re: What is wrong with this setup? (samba)

[global]
   security = user
   log file = /var/log/samba/%m.log
   max log size = 50
   browseable = yes
   browseable = true
   guest account = thomas
   public = yes
   netbios name = media
   workgroup = hybel

[tmp]
   comment = Temporary file space
   writable = yes
   read only = no
guest ok = yes
   public = yes
   path = /tmp/tmpshared

[Storage]
writeable = yes
printable = no
path = /home/hybel
read only = no
comment = File storage
guest only = yes
guest ok = yes


I use this config now and it works fine from linux computers. It dont ask for password and appera every time on the network, but from windowa it wont let me connect. Keeps asking for password and username. Why? I dont understand.

Netbios name sets the computer name, and the name it'll apper on the netwoerk as.

Offline

Board footer

Powered by FluxBB