Re: [Samba] [Ubuntu 10.04] Share not visible from XP?

2010-07-30 Thread Moray Henderson (ICT)
Quoting Gilles (gilles.gana...@free.fr):
 BTW, how can I check that Samba does use /etc/samba/smb.conf as its
 configuration file?

smbd -b lists the parameters Samba was built with - CONFIGFILE is in
there somewhere.  If not set otherwise in the init script or command
line, that is what it is using.


Moray.
To err is human.  To purr, feline


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] [Ubuntu 10.04] Share not visible from XP?

2010-07-30 Thread Gilles
On Fri, 30 Jul 2010 09:57:37 +0100, Moray Henderson (ICT)
moray.hender...@ict.om.org wrote:
smbd -b lists the parameters Samba was built with - CONFIGFILE is in
there somewhere.  If not set otherwise in the init script or command
line, that is what it is using.

Thanks for the tip.

# smbd -b | grep -i configfile
   CONFIGFILE: /etc/samba/smb.conf

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] [Ubuntu 10.04] Share not visible from XP?

2010-07-29 Thread Marcello Romani

Gilles ha scritto:

On Wed, 28 Jul 2010 17:44:49 +0200, Nico De Ranter n...@sonycom.com
wrote:

I believe testparm will skip any attribute with default values.


Thanks for the tip. That's not the cause of the issue then :-/

At this point, I can finally get XP to show shared folders if I first
try to connect to them blindly through Run  \\srv\share.

There were a few things I noticed along the way:

- restart smbd works, but restart nmbd doesn't. OTOH,
/etc/init.d/smbd restart works... and /etc/init.d/nmbd restart as
well. Go figure


A samba init script should take care of restarting both services IMHO, 
because they're really supposed to go together. Therefore it's not 
strange that they ported to upstart only the main init.d script (the 
one referring to smbd). That's all IMHO, of course.




- apparently, we must remove package libpam-smbpass, and install
smbfs and winbind


AFAIKT, smbfs is needed only if you want to mount samba shares, i.e. for 
using the linux system as a samba *client*, not server. I'm not 100% 
sure, though.
Regarding winbind, I find it strange that it didn't get installed along 
with the rest of samba...




- /etc/nsswitch.conf requires adding wins to hosts

- I added the following to a share, with no idea if they're really
needed:
[share]
[...]
available = yes
public = yes
writable = yes

Thank you.



Don't know about available param, but public and writable shouldn't 
affect visibility of the server in windows neighborhood.


--
Marcello Romani
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] [Ubuntu 10.04] Share not visible from XP?

2010-07-29 Thread Gilles
On Thu, 29 Jul 2010 08:55:16 +0200, Marcello Romani
mrom...@ottotecnica.com wrote:
A samba init script should take care of restarting both services IMHO, 
because they're really supposed to go together. Therefore it's not 
strange that they ported to upstart only the main init.d script (the 
one referring to smbd). That's all IMHO, of course.

That's also what I thought, but /etc/init.d/ contains two separate
scripts (smbd and nmbd; no trace of samba, as specified in the
Ubuntu documentation www.tinyurl.com/ubuntu-samba-doc), and since
since I couldn't see the shares from Windows, I figured I might have
to launch both separately.

/etc/init.d/smbd doesn't seem to launch nmbd, but I'm no shell expert:

http://pastebin.com/fJB89Uc8

AFAIKT, smbfs is needed only if you want to mount samba shares, i.e. for 
using the linux system as a samba *client*, not server. I'm not 100% 
sure, though.
Regarding winbind, I find it strange that it didn't get installed along 
with the rest of samba...

The problem is that I couldn't find an up-to-date documentation that
would say precisely what needs to be installed in Ubuntu and show a
very basic smb.conf that would work. Docs either assume people will
just append their stuff to the big default smb.conf... and somehow
figure out what packages need to be installed.

Don't know about available param, but public and writable shouldn't 
affect visibility of the server in windows neighborhood.

I added those because I saw them in some documentation... but at this
point, I'm clueless at what packages are really needed, and what needs
to be done in smb.conf to share a writable folder.

Actually, I'm seeing something funny... but this is for another
thread.

Thank you all for your help.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] [Ubuntu 10.04] Share not visible from XP?

2010-07-29 Thread Gilles
On Wed, 28 Jul 2010 18:20:36 +0200, Christian PERRIER
bubu...@debian.org wrote:
I advice against messing up with browsing parameters without knwoing
exactly what you're doing...

Better increase the log level (try log level = 3) and log at
/var/log/samba/log.nmbd

Thanks for the tip.

It is. This is the Ubuntu package and It Works(tm)..:-)

Apparently, not that well ;-)
http://ubuntuforums.org/showthread.php?t=1468111

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] [Ubuntu 10.04] Share not visible from XP?

2010-07-29 Thread Marcello Romani

Gilles ha scritto:

On Thu, 29 Jul 2010 08:55:16 +0200, Marcello Romani
mrom...@ottotecnica.com wrote:
A samba init script should take care of restarting both services IMHO, 
because they're really supposed to go together. Therefore it's not 
strange that they ported to upstart only the main init.d script (the 
one referring to smbd). That's all IMHO, of course.


That's also what I thought, but /etc/init.d/ contains two separate
scripts (smbd and nmbd; no trace of samba, as specified in the
Ubuntu documentation www.tinyurl.com/ubuntu-samba-doc), and since
since I couldn't see the shares from Windows, I figured I might have
to launch both separately.

/etc/init.d/smbd doesn't seem to launch nmbd, but I'm no shell expert:

http://pastebin.com/fJB89Uc8


Yes, it seems to care only about the process name it's been given, smbd 
in this case. I havent studied upstart so it might also be possible that 
somewhere in its configuration it's specified that smbd goes along with 
nmbd. But that's just useless speculation...


Tha strange thing is, on my Ubuntu 9.10 desktop machine I have 
/etc/init.d/samba

Go figure...



AFAIKT, smbfs is needed only if you want to mount samba shares, i.e. for 
using the linux system as a samba *client*, not server. I'm not 100% 
sure, though.
Regarding winbind, I find it strange that it didn't get installed along 
with the rest of samba...


The problem is that I couldn't find an up-to-date documentation that
would say precisely what needs to be installed in Ubuntu and show a
very basic smb.conf that would work. Docs either assume people will
just append their stuff to the big default smb.conf... and somehow
figure out what packages need to be installed.


I usually do something similar to aptitude search samba and install what 
seems to be the main package, which hopefully will pull all the 
required dependencies. Then I install the -doc package, which tipically 
contains the up-to-date docs.

But I'm sure you already know that :-)



Don't know about available param, but public and writable shouldn't 
affect visibility of the server in windows neighborhood.


I added those because I saw them in some documentation... but at this
point, I'm clueless at what packages are really needed, and what needs
to be done in smb.conf to share a writable folder.


maybe add

guest ok = yes



Actually, I'm seeing something funny... but this is for another
thread.

Thank you all for your help.



Well I think I'll stop here as I don't have ubuntu server at hand. I 
hope I've been of some help. Good luck.


--
Marcello Romani
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] [Ubuntu 10.04] Share not visible from XP?

2010-07-29 Thread Gilles
On Thu, 29 Jul 2010 11:30:20 +0200, Marcello Romani
mrom...@ottotecnica.com wrote:
Yes, it seems to care only about the process name it's been given, smbd 
in this case. I havent studied upstart so it might also be possible that 
somewhere in its configuration it's specified that smbd goes along with 
nmbd. But that's just useless speculation...

Tha strange thing is, on my Ubuntu 9.10 desktop machine I have 
/etc/init.d/samba
Go figure...

As to why whoever is in charge (if any...) of the Samba packages for
Ubuntu decide it was a good idea to do this...

Updating the official documentation on the Ubuntu site should be a
requirement when making any such change.

Thanks a lot for your help.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] [Ubuntu 10.04] Share not visible from XP?

2010-07-29 Thread Christian PERRIER
Quoting Gilles (gilles.gana...@free.fr):

 It is. This is the Ubuntu package and It Works(tm)..:-)
 
 Apparently, not that well ;-)
 http://ubuntuforums.org/showthread.php?t=1468111


Ah, this upstart thing*that* is a Ubuntu change to the Debian
package. Not my responsibility, then..:-) (at least until we adopt
upstrat in Debian)


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] [Ubuntu 10.04] Share not visible from XP?

2010-07-29 Thread Gilles
On Thu, 29 Jul 2010 06:49:44 -0400, Christian PERRIER
bubu...@debian.org wrote:
Ah, this upstart thing*that* is a Ubuntu change to the Debian
package. Not my responsibility, then..:-) (at least until we adopt
upstrat in Debian)

So what's the correct way on Ubuntu 10.04 to (re)start Samba,
including smbd and nmbd?

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] [Ubuntu 10.04] Share not visible from XP?

2010-07-29 Thread Adam Stirk
The correct way to restart the smbd and nmbd in Ubuntu 10.04 is

sudo service smbd restart
sudo service nmbd restart

-Original Message-
From: samba-boun...@lists.samba.org
[mailto:samba-boun...@lists.samba.org] On Behalf Of Gilles
Sent: 29 July 2010 12:09
To: samba@lists.samba.org
Subject: Re: [Samba] [Ubuntu 10.04] Share not visible from XP?

On Thu, 29 Jul 2010 06:49:44 -0400, Christian PERRIER
bubu...@debian.org wrote:
Ah, this upstart thing*that* is a Ubuntu change to the Debian 
package. Not my responsibility, then..:-) (at least until we adopt 
upstrat in Debian)

So what's the correct way on Ubuntu 10.04 to (re)start Samba, including
smbd and nmbd?

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] [Ubuntu 10.04] Share not visible from XP?

2010-07-29 Thread Gilles
On Thu, 29 Jul 2010 12:23:41 +0100, Adam Stirk
adam.st...@brantano.co.uk wrote:
The correct way to restart the smbd and nmbd in Ubuntu 10.04 is

sudo service smbd restart
sudo service nmbd restart

Thanks Adam. I read somewhere on the Net that calling restart on a
non-running process triggers an error. Can you confirm?

Also, does the order in which we (re)start smbd and nmbd matter?

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] [Ubuntu 10.04] Share not visible from XP?

2010-07-29 Thread Helmut Hullen
Hallo, Gilles,

Du meintest am 29.07.10:

 So what's the correct way on Ubuntu 10.04 to (re)start Samba,
 including smbd and nmbd?

If the daemons run and only need to re-read the smb.conf:

killall -HUP smbd
killall -HUP nmbd

on Linux machines.
I know - there are some Unix machines beyond Linux where killall does  
work in a slightly other way than on Linux.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] [Ubuntu 10.04] Share not visible from XP?

2010-07-29 Thread Leonardo Carneiro
On Thu, Jul 29, 2010 at 8:48 AM, Helmut Hullen hul...@t-online.de wrote:
 Hallo, Gilles,

 Du meintest am 29.07.10:

 So what's the correct way on Ubuntu 10.04 to (re)start Samba,
 including smbd and nmbd?

 If the daemons run and only need to re-read the smb.conf:

        killall -HUP smbd
        killall -HUP nmbd

 on Linux machines.

I think that on ubuntu you could user just /etc/init.d/samba reload
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] [Ubuntu 10.04] Share not visible from XP?

2010-07-29 Thread Gilles
On Thu, 29 Jul 2010 08:58:23 -0300, Leonardo Carneiro
chesterma...@gmail.com wrote:
I think that on ubuntu you could user just /etc/init.d/samba reload

Right... but that was until recently, while the latest Samba package
is different ;-)


# /etc/init.d/samba restart
-su: /etc/init.d/samba: No such file or directory

# /etc/init.d/nmbd restart
Rather than invoking init scripts through /etc/init.d, use the
service(8)
utility, e.g. service nmbd restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart
nmbd
nmbd start/running, process 1932

# /etc/init.d/smbd restart
Rather than invoking init scripts through /etc/init.d, use the
service(8)
utility, e.g. service smbd restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart
smbd
smbd start/running, process 1941


So it looks like the right way is 

# restart nmbd
nmbd start/running, process 1951
# restart smbd
smbd start/running, process 1955

It'd be easier to add restart samba which would take care of both
smbd and nmbd.

Thank you.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] [Ubuntu 10.04] Share not visible from XP?

2010-07-29 Thread Leonardo Carneiro
On Thu, Jul 29, 2010 at 9:07 AM, Gilles gilles.gana...@free.fr wrote:
 On Thu, 29 Jul 2010 08:58:23 -0300, Leonardo Carneiro
 chesterma...@gmail.com wrote:
I think that on ubuntu you could user just /etc/init.d/samba reload

 Right... but that was until recently, while the latest Samba package
 is different ;-)

 
 # /etc/init.d/samba restart
 -su: /etc/init.d/samba: No such file or directory
 
 # /etc/init.d/nmbd restart
 Rather than invoking init scripts through /etc/init.d, use the
 service(8)
 utility, e.g. service nmbd restart

 Since the script you are attempting to invoke has been converted to an
 Upstart job, you may also use the restart(8) utility, e.g. restart
 nmbd
 nmbd start/running, process 1932
 
 # /etc/init.d/smbd restart
 Rather than invoking init scripts through /etc/init.d, use the
 service(8)
 utility, e.g. service smbd restart

 Since the script you are attempting to invoke has been converted to an
 Upstart job, you may also use the restart(8) utility, e.g. restart
 smbd
 smbd start/running, process 1941
 

 So it looks like the right way is

 # restart nmbd
 nmbd start/running, process 1951
 # restart smbd
 smbd start/running, process 1955

 It'd be easier to add restart samba which would take care of both
 smbd and nmbd.

 Thank you.

 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/options/samba


UU, tks for the info Gilles, i was not aware of this change at all.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

[Samba] [Ubuntu 10.04] Share not visible from XP?

2010-07-28 Thread Gilles
Hello

I waited 15mn in case it was due to some browsing issue, but the
directory I shared on a Ubuntu server still doesn't show up in the XP
Net'hood, with no error when starting smbd or in
/var/log/samba/log.smbd.

Here's the smb.conf I wrote:

===
# cat /etc/samba/smb.conf
[global]
;Checked: Same wg on XP
workgroup = WORKGROUP
server string = Samba Server %v
;Checked: nobody.nogroup exists
guest account = nobody

[share]
comment = Ubuntu File Server Share
path = /srv/samba
browsable = yes
guest ok = yes ;access will be permitted as the default guest user 
read only = no
create mask = 0755
===

Any idea what I did wrong?

Thank you for any hint.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] [Ubuntu 10.04] Share not visible from XP?

2010-07-28 Thread Chris Gonnerman

On 07/28/2010 07:28 AM, Gilles wrote:

I waited 15mn in case it was due to some browsing issue, but the
directory I shared on a Ubuntu server still doesn't show up in the XP
Net'hood, with no error when starting smbd or in
/var/log/samba/log.smbd.
   
Are you expecting it to appear in the My Network Places list?  Windows 
has an eccentric, unpredictable schedule for adding items there.


Go to Start, Run, and enter

\\name-of-server\share

then hit OK.  Of course, you should substitute the actual name of the 
server.  If it opens a window (with whatever is in /srv/samba visible in 
it), you're good.


If that doesn't work, try

\\name-of-server

and let us know what you see.

-- Chris.

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] [Ubuntu 10.04] Share not visible from XP?

2010-07-28 Thread Gilles
On Wed, 28 Jul 2010 14:28:57 +0200, Gilles gilles.gana...@free.fr
wrote:
Here's the smb.conf I wrote:

Also tried this, running restart smbd after each addition, to no
avail:
===
# cat /etc/samba/smb.conf
[global]
workgroup = WORKGROUP
server string = Samba Server %v
guest account = nobody
dns proxy = no

wins support = yes
remote announce = 192.168.0.255
security = user

[share]
comment = Ubuntu File Server Share
path = /srv/samba
browsable = yes
guest ok = yes ;access will be permitted as the default guest user 
read only = no
create mask = 0755
===

I don't have a firewall installed, and can succesfully connect to the
server through SSH and HTTP. Could it be some other security issue?

FWIW, I originally didn't run  smbpasswd -a nobody, but running it
makes no difference.

BTW, how can I check that Samba does use /etc/samba/smb.conf as its
configuration file?

Thank you.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] [Ubuntu 10.04] Share not visible from XP?

2010-07-28 Thread Gilles
On Wed, 28 Jul 2010 07:42:34 -0500, Chris Gonnerman
ch...@newcenturycomputers.net wrote:
Go to Start, Run, and enter

\\name-of-server\share

then hit OK.  Of course, you should substitute the actual name of the 
server.  If it opens a window (with whatever is in /srv/samba visible in 
it), you're good.

If that doesn't work, try

\\name-of-server

and let us know what you see.

Thanks Chris. Both return The network path was not found.

Fact is, XP can't PING ubuntu and C:\net view doesn't list the
Ubuntu host, although Samba is running WINS:

===
# cat smb.conf
[global]
workgroup = WORKGROUP
server string = Samba Server %v
guest account = nobody
dns proxy = no

netbios name = UBUNTU
wins support = yes
remote announce = 192.168.0.255
security = user
;encrypt passwords = yes
;smb passwd file = /etc/samba/smbpasswd

[share]
comment = Ubuntu File Server Share
path = /srv/samba
browsable = yes
guest ok = yes ;access will be permitted as the default guest user 
read only = no
create mask = 0755
===

Am I correct in understanding that as long as ...
1. /etc/passd contains nobody, /etc/group contains nogroup
2. /srv/samba/ is owned by nobody.nogroup

... the above smb.conf should display this share in Network
Neighborhood and let any user read/write to the directory by using
nobody.nogroup as user?

How does a Samba host advertise its NetBIOS name to the LAN?

Thank you.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] [Ubuntu 10.04] Share not visible from XP?

2010-07-28 Thread Marcello Romani

Gilles ha scritto:

On Wed, 28 Jul 2010 07:42:34 -0500, Chris Gonnerman
ch...@newcenturycomputers.net wrote:

Go to Start, Run, and enter

\\name-of-server\share

then hit OK.  Of course, you should substitute the actual name of the 
server.  If it opens a window (with whatever is in /srv/samba visible in 
it), you're good.


If that doesn't work, try

\\name-of-server

and let us know what you see.


Thanks Chris. Both return The network path was not found.

Fact is, XP can't PING ubuntu and C:\net view doesn't list the


Try pinging the ubuntu server via ip address. If that works, then try to 
connect to the share by using the ip address instead of the hostname, e.g.:


\\ip-addr-of-server\share

If the ping from xp to the ubuntu server doesn't work either way (by 
specifying the server hosntname or its ip address) then I think you 
should check your network before struggling with samba config.


Just my 2 cents, HTH.

--
Marcello Romani
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] [Ubuntu 10.04] Share not visible from XP?

2010-07-28 Thread Marcello Romani

Gilles Ganault ha scritto:

At 15:16 28/07/2010, you wrote:
Try pinging the ubuntu server via ip address. If that works, then try 
to connect to the share by using the ip address instead of the 
hostname, e.g.:


\\ip-addr-of-server\share


Thanks for the help. I can connect through its IP address (I could 
already work with SSH and HTTP), but it doesn't work with the NetBIOS name:


\\ubuntu\share - The network path was not found.

If you know Ubuntu 10.04, could there be some security that prevents 
Samba from working?




My servers are pure debian, so no I don't know of Ubuntu specific tweaks.
I'd try to enable wins in samba and raise its os level (though it should 
already be higher than xp), but it could also be that xp refuses to 
revert to netbios name resolution (i.e. broadcast). I've seen this 
behaviour once, but can't remember right now what it was exactly...


HTH

P.S.: try to respond to the list, or you'll lose potential help :)

--
Marcello Romani
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] [Ubuntu 10.04] Share not visible from XP?

2010-07-28 Thread Gilles
On Wed, 28 Jul 2010 17:03:43 +0200, Marcello Romani
mrom...@ottotecnica.com wrote:
My servers are pure debian, so no I don't know of Ubuntu specific tweaks.
I'd try to enable wins in samba and raise its os level (though it should 
already be higher than xp), but it could also be that xp refuses to 
revert to netbios name resolution (i.e. broadcast). I've seen this 
behaviour once, but can't remember right now what it was exactly...

Thanks everyone for the help, in the mailing list and through e-mail, 

To make sure I get the basic covered... is there a reason why
testparm -s skips some lines from smb.conf?

==
# cat /etc/samba/smb.conf
[global]
workgroup = WORKGROUP

[homes]
guest ok = no
read only = no
==
# testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
Processing section [homes]
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]

[homes]
read only = No
==

P.S.: try to respond to the list, or you'll lose potential help :)

It's because e-mail is immediate, while posts show in Gmane's NTTP
servers after a good 15mn wait :-)

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] [Ubuntu 10.04] Share not visible from XP?

2010-07-28 Thread Nico De Ranter

I believe testparm will skip any attribute with default values.

Nico

On Wed, 2010-07-28 at 17:38 +0200, Gilles wrote:
 On Wed, 28 Jul 2010 17:03:43 +0200, Marcello Romani
 mrom...@ottotecnica.com wrote:
 My servers are pure debian, so no I don't know of Ubuntu specific tweaks.
 I'd try to enable wins in samba and raise its os level (though it should 
 already be higher than xp), but it could also be that xp refuses to 
 revert to netbios name resolution (i.e. broadcast). I've seen this 
 behaviour once, but can't remember right now what it was exactly...
 
 Thanks everyone for the help, in the mailing list and through e-mail, 
 
 To make sure I get the basic covered... is there a reason why
 testparm -s skips some lines from smb.conf?
 
 ==
 # cat /etc/samba/smb.conf
 [global]
 workgroup = WORKGROUP
 
 [homes]
 guest ok = no
 read only = no
 ==
 # testparm -s
 Load smb config files from /etc/samba/smb.conf
 rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
 Processing section [homes]
 Loaded services file OK.
 Server role: ROLE_STANDALONE
 [global]
 
 [homes]
 read only = No
 ==
 
 P.S.: try to respond to the list, or you'll lose potential help :)
 
 It's because e-mail is immediate, while posts show in Gmane's NTTP
 servers after a good 15mn wait :-)
 


-- 
With kind regards

Nico De Ranter
Senior System Administrator
Techsoft Centre

Technology and Software Centre Europe
The Corporate Village - Da Vincilaan 7-D1 - B-1935 Zaventem - Belgium

Phone:+32 (0)2 700 8641
Fax:  +32 (0)2 700 8622
E-mail:nico.deran...@eu.sony.com

A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 - RPR Brussels
Fortis - BIC GEBABEBB - IBAN BE41293037680010




The information contained in this message or any of its attachments may be 
confidential and is intended for the exclusive use of the addressee(s).  Any 
disclosure, reproduction, distribution or other dissemination or use of this 
communication is strictly prohibited without the express permission of the 
sender.  The views expressed in this email are those of the individual and not 
necessarily those of Sony or Sony affiliated companies.  Sony email is for 
business use only.

This email and any response may be monitored by Sony to be in compliance with 
Sony's global policies and standards


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] [Ubuntu 10.04] Share not visible from XP?

2010-07-28 Thread Gilles
On Wed, 28 Jul 2010 17:44:49 +0200, Nico De Ranter n...@sonycom.com
wrote:
I believe testparm will skip any attribute with default values.

Thanks for the tip. That's not the cause of the issue then :-/

At this point, I can finally get XP to show shared folders if I first
try to connect to them blindly through Run  \\srv\share.

There were a few things I noticed along the way:

- restart smbd works, but restart nmbd doesn't. OTOH,
/etc/init.d/smbd restart works... and /etc/init.d/nmbd restart as
well. Go figure

- apparently, we must remove package libpam-smbpass, and install
smbfs and winbind

- /etc/nsswitch.conf requires adding wins to hosts

- I added the following to a share, with no idea if they're really
needed:
[share]
[...]
available = yes
public = yes
writable = yes

Thank you.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] [Ubuntu 10.04] Share not visible from XP?

2010-07-28 Thread Christian PERRIER
Quoting Gilles (gilles.gana...@free.fr):
 Also tried this, running restart smbd after each addition, to no
 avail:

You apparently have a *browsing* problem, so it's likely that nmbd is
more the problem.

 ===
 # cat /etc/samba/smb.conf
 [global]
 workgroup = WORKGROUP
 server string = Samba Server %v
 guest account = nobody
 dns proxy = no
 
 wins support = yes
 remote announce = 192.168.0.255

I advice against messing up with browsing parameters without knwoing
exactly what you're doing...

Better increase the log level (try log level = 3) and log at
/var/log/samba/log.nmbd

 BTW, how can I check that Samba does use /etc/samba/smb.conf as its
 configuration file?


It is. This is the Ubuntu package and It Works(tm)..:-)

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba