Re: [gentoo-user] Samba and PAM: missing /lib64/security/pam_smbpass.so

2018-06-15 Thread John Covici
On Fri, 15 Jun 2018 10:02:45 -0400,
Stefan G. Weichinger wrote:
> 
> 
> While I am at my upgrade, I also see that a PAM library is missing now:
> 
> PAM unable to dlopen(/lib64/security/pam_smbpass.so):
> /lib64/security/pam_smbpass.so: cannot open shared object file: No such
> file or directory
> 
> net-fs/samba has been compiled with USE="pam", does someone know where
> to get that library from?
> 
> # equery f samba | grep smbpa
> 
> /usr/bin/smbpasswd
> /usr/lib64/samba/libsmbpasswdparser-samba4.so
> /usr/share/man/man5/smbpasswd.5.bz2
> /usr/share/man/man8/smbpasswd.8.bz2
> 
> -> not included right now
> 

My samba is working and there is no such file.  I have glibc-2.26-r7.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici wb2una
 cov...@ccs.covici.com



[gentoo-user] Samba and PAM: missing /lib64/security/pam_smbpass.so

2018-06-15 Thread Stefan G. Weichinger


While I am at my upgrade, I also see that a PAM library is missing now:

PAM unable to dlopen(/lib64/security/pam_smbpass.so):
/lib64/security/pam_smbpass.so: cannot open shared object file: No such
file or directory

net-fs/samba has been compiled with USE="pam", does someone know where
to get that library from?

# equery f samba | grep smbpa

/usr/bin/smbpasswd
/usr/lib64/samba/libsmbpasswdparser-samba4.so
/usr/share/man/man5/smbpasswd.5.bz2
/usr/share/man/man8/smbpasswd.8.bz2

-> not included right now



Re: [gentoo-user] Samba patching?

2017-05-29 Thread Stefan G. Weichinger
Am 2017-05-29 um 22:36 schrieb Mart Raudsepp:
> Ühel kenal päeval, E, 29.05.2017 kell 22:12, kirjutas Stefan G.
> Weichinger:
>> how do we gentoo-users handle CVE-2017-7494 ?
> 
> You upgrade to the version including the fix. 4.5.10, that is.
> https://bugs.gentoo.org/show_bug.cgi?id=CVE-2017-7494

thanks for the pointer




Re: [gentoo-user] Samba patching?

2017-05-29 Thread Mart Raudsepp
Ühel kenal päeval, E, 29.05.2017 kell 22:12, kirjutas Stefan G.
Weichinger:
> how do we gentoo-users handle CVE-2017-7494 ?

You upgrade to the version including the fix. 4.5.10, that is.
https://bugs.gentoo.org/show_bug.cgi?id=CVE-2017-7494




[gentoo-user] Samba patching?

2017-05-29 Thread Stefan G. Weichinger

how do we gentoo-users handle CVE-2017-7494 ?



Re: [gentoo-user] samba as AD DC on gentoo

2017-01-05 Thread Stefan G. Weichinger
Am 2017-01-05 um 07:42 schrieb J. Roeleveld:
>> I am still using using samba3 for my NAS.
>> Samba4 has been planned for a while, but with it wanting it's own LDAP and
>> tree layout, I have a few more things to organise.
>>
>> Other projects keep getting a higher priority.
> 
> Scratch that.
> I am actually using Samba 4.2.11, but using the same config as I did with 
> Samba-3.

You don't need to change your priorities: as I found out yesterday night
samba-4.x is not yet ready to provide AD-DC services on gentoo.

I found out while researching another issue related to smbclient and
german umlauts (popping up when I run backups with amanda).

I wrote to the samba- and the amanda-users-ml, and bgo:

https://bugs.gentoo.org/show_bug.cgi?id=593486

tl;dr ::

* samba in portage is quite old, 4.2.x is EOL upstream (4.6.rc1 released
already upstream)

* samba in portage does not yet provide the bundled heimdal version that
upstream samba works with (in terms of AD-DC services, other stuff works
with mit-krb5 as well).

* there's a test ebuild which uses that internal heimdal-version, see
Comment 9 in the mentioned bug.

But to me that is too unstable and risky to move a whole Windows domain
to already.



Re: [gentoo-user] samba as AD DC on gentoo

2017-01-04 Thread J. Roeleveld
On Thursday, January 5, 2017 6:04:28 AM CET J. Roeleveld wrote:
> On January 4, 2017 10:48:12 PM GMT+01:00, "Stefan G. Weichinger" 
 wrote:
> >Do people here run samba-4.x AD DCs on gentoo?
> >
> >If yes, pls let me know of any traps or so.
> >Yes, I read the wiki ;-)
> >
> >I currently prepare the migration of an old NT4-based domain (on a
> >samba-PDC, gentoo) to AD (other physical box, gentoo as well).
> >
> >Did something similar last week (but with debian involved) and learned
> >a
> >whole lot.
> >
> >As there is no step back as soon as the Windows clients talked to the
> >AD-DC I prefer to know as much as I can in advance.
> >
> >Thanks, regards, Stefan
> 
> I am still using using samba3 for my NAS.
> Samba4 has been planned for a while, but with it wanting it's own LDAP and
> tree layout, I have a few more things to organise.
> 
> Other projects keep getting a higher priority.

Scratch that.
I am actually using Samba 4.2.11, but using the same config as I did with 
Samba-3.

--
Joost



Re: [gentoo-user] samba as AD DC on gentoo

2017-01-04 Thread J. Roeleveld
On January 4, 2017 10:48:12 PM GMT+01:00, "Stefan G. Weichinger" 
 wrote:
>
>Do people here run samba-4.x AD DCs on gentoo?
>
>If yes, pls let me know of any traps or so.
>Yes, I read the wiki ;-)
>
>I currently prepare the migration of an old NT4-based domain (on a
>samba-PDC, gentoo) to AD (other physical box, gentoo as well).
>
>Did something similar last week (but with debian involved) and learned
>a
>whole lot.
>
>As there is no step back as soon as the Windows clients talked to the
>AD-DC I prefer to know as much as I can in advance.
>
>Thanks, regards, Stefan

I am still using using samba3 for my NAS.
Samba4 has been planned for a while, but with it wanting it's own LDAP and tree 
layout, I have a few more things to organise.

Other projects keep getting a higher priority.

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



[gentoo-user] samba as AD DC on gentoo

2017-01-04 Thread Stefan G. Weichinger

Do people here run samba-4.x AD DCs on gentoo?

If yes, pls let me know of any traps or so.
Yes, I read the wiki ;-)

I currently prepare the migration of an old NT4-based domain (on a
samba-PDC, gentoo) to AD (other physical box, gentoo as well).

Did something similar last week (but with debian involved) and learned a
whole lot.

As there is no step back as soon as the Windows clients talked to the
AD-DC I prefer to know as much as I can in advance.

Thanks, regards, Stefan





[gentoo-user] Samba 4.2.5 failing to build

2015-10-30 Thread Andrew Lowe
Hi all,
The subject says it all, Samba 4.2.5 is failing to build. I've got to
do some more indepth research, ie googling, but this email is to see if
anyone has any ideas off the top of their head.

I've got FEATURES="keeptemp keepwork candy" set in make.conf so when I
first did the emerge, the linking failed at [2749/2894], with another
150 files to go. I then reran the emerge and now it fails with:

Traceback (most recent call last):
  File
"/var/tmp/portage/net-fs/samba-4.2.5/work/samba-4.2.5/buildtools/bin/waf",
line 75, in 
import Scripting
  File
"/var/tmp/portage/net-fs/samba-4.2.5/work/samba-4.2.5/buildtools/wafadmin/Scripting.py",
line 146
except Utils.WafError, e:

 If anyone has any thoughts, ideas, fixes, it would be appreciated. I'm
now off to do some grunt work and try to fix this. If I can't fix it,
I'll be back with more detailed config info.

Regards,
Andrew



[gentoo-user] Samba shares gone from from Dolphin after update.

2014-12-12 Thread Fernando Rodriguez
Hello,

I just got a kde update and after rebooting my samba shares are gone from 
Dolphin (under Network). Originally I had to enable the samba use flag for kde-
base/kdebase-kioslaves to get this feature and it's still set. Does anyone 
know how to re-enable it?

-- 
Fernando Rodriguez


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] samba and window 7 NTFS

2014-12-07 Thread Marc Joliet
Am Fri, 5 Dec 2014 23:16:37 +
schrieb Mick michaelkintz...@gmail.com:

 On Friday 05 Dec 2014 16:11:26 Matti Nykyri wrote:
   On Dec 4, 2014, at 22:21, Neil Bothwick n...@digimed.co.uk wrote:
   
   On Thu, 04 Dec 2014 19:15:07 +, thegeezer wrote:
   In order to format the USB stick to NTFS I need this option in kernel
   as well, am I correct?
   
   yes
   
   You're probably better off not using the in-kernel NTFS and using ntfs-3g
   instead, which also includes mkfs.ntfs. You can't format a filesystem
   with just a kernel driver.
  
  Same opinoin here. The in-kernel driver is only good for reading files and
  directories. If anything else is needed use ntfs3g.
 
 This is right, ntfs-3g is a safe way of accessing NTFS from Linux.
 
 Just mentioned in passing that the ntfs in-kernel driver is really good for 
 recovering corrupted NTFS partitions.  I tried the same with ntfs-3g and it 
 couldn't read it.  The kernel driver had no problem doing so.  YMMV.

In that vein: a couple of years ago I rescued data from a neighbours Windows 7
drive with ddrescue and, because ddrescue was stuck at the last 0.x percent,
ntfsck, which was part of the ntfsprogs package at the time, and (I think) was
already being developed as part of ntfs3g.

I was pleasantly surprised that it worked.

-- 
Marc Joliet
--
People who think they know everything really annoy those of us who know we
don't - Bjarne Stroustrup


signature.asc
Description: PGP signature


Re: [gentoo-user] samba and window 7 NTFS

2014-12-07 Thread Marc Stürmer

Am 06.12.2014 um 00:16 schrieb Mick:


Same opinoin here. The in-kernel driver is only good for reading files and
directories. If anything else is needed use ntfs3g.


This is right, ntfs-3g is a safe way of accessing NTFS from Linux.


Actually, while there is a NTFS-kernel driver, this driver is mostly 
stable only for reading files, but not writing files.


If you need to use NTFS on a regular basis under Linux, you want to use 
the FUSE ntfs-3g. It is far more advanced and far more stable than the 
kernel driver.




Re: [gentoo-user] samba and window 7 NTFS

2014-12-05 Thread Matti Nykyri
 On Dec 4, 2014, at 22:21, Neil Bothwick n...@digimed.co.uk wrote:
 
 On Thu, 04 Dec 2014 19:15:07 +, thegeezer wrote:
 
 In order to format the USB stick to NTFS I need this option in kernel
 as well, am I correct?
 yes
 
 You're probably better off not using the in-kernel NTFS and using ntfs-3g
 instead, which also includes mkfs.ntfs. You can't format a filesystem
 with just a kernel driver.

Same opinoin here. The in-kernel driver is only good for reading files and 
directories. If anything else is needed use ntfs3g.

-- 
-Matti


Re: [gentoo-user] samba and window 7 NTFS

2014-12-05 Thread Mick
On Friday 05 Dec 2014 16:11:26 Matti Nykyri wrote:
  On Dec 4, 2014, at 22:21, Neil Bothwick n...@digimed.co.uk wrote:
  
  On Thu, 04 Dec 2014 19:15:07 +, thegeezer wrote:
  In order to format the USB stick to NTFS I need this option in kernel
  as well, am I correct?
  
  yes
  
  You're probably better off not using the in-kernel NTFS and using ntfs-3g
  instead, which also includes mkfs.ntfs. You can't format a filesystem
  with just a kernel driver.
 
 Same opinoin here. The in-kernel driver is only good for reading files and
 directories. If anything else is needed use ntfs3g.

This is right, ntfs-3g is a safe way of accessing NTFS from Linux.

Just mentioned in passing that the ntfs in-kernel driver is really good for 
recovering corrupted NTFS partitions.  I tried the same with ntfs-3g and it 
couldn't read it.  The kernel driver had no problem doing so.  YMMV.

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


[gentoo-user] samba and window 7 NTFS

2014-12-04 Thread Joseph

I just installed windows 7 in VB and would like to mount windows 7 shares 
(folder) via samba on Linux.
I think, I need to enable CONFIG_NTFS_FS in kernel?

In order to format the USB stick to NTFS I need this option in kernel as well, 
am I correct?

--
Joseph



Re: [gentoo-user] samba and window 7 NTFS

2014-12-04 Thread thegeezer
On 04/12/14 18:49, Joseph wrote:
 I just installed windows 7 in VB and would like to mount windows 7
 shares (folder) via samba on Linux.
 I think, I need to enable CONFIG_NTFS_FS in kernel?
no just cifs

 In order to format the USB stick to NTFS I need this option in kernel
 as well, am I correct?

yes



Re: [gentoo-user] samba and window 7 NTFS

2014-12-04 Thread Joseph

On 12/04/14 19:15, thegeezer wrote:

On 04/12/14 18:49, Joseph wrote:

I just installed windows 7 in VB and would like to mount windows 7
shares (folder) via samba on Linux.
I think, I need to enable CONFIG_NTFS_FS in kernel?

no just cifs


In order to format the USB stick to NTFS I need this option in kernel
as well, am I correct?


yes


You are correct, but I think I only need NTFS in Kernel if I want to mount USB 
stick on Linux amd read/wrote to it.
I got around and used VB Windows 7 to format USB to NTFS and transfer the files 
from Linux to UBS via shared folder.

--
Joseph



Re: [gentoo-user] samba and window 7 NTFS

2014-12-04 Thread J. Roeleveld
On 4 December 2014 19:49:35 CET, Joseph syscon...@gmail.com wrote:
I just installed windows 7 in VB and would like to mount windows 7
shares (folder) via samba on Linux.
I think, I need to enable CONFIG_NTFS_FS in kernel?


No. CIFS and install Samba.

In order to format the USB stick to NTFS I need this option in kernel
as well, am I correct?

No. Fuse support and install ntfs3g.

--
Joost

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] samba and window 7 NTFS

2014-12-04 Thread Neil Bothwick
On Thu, 04 Dec 2014 19:15:07 +, thegeezer wrote:

  In order to format the USB stick to NTFS I need this option in kernel
  as well, am I correct?
   
 yes
 

You're probably better off not using the in-kernel NTFS and using ntfs-3g
instead, which also includes mkfs.ntfs. You can't format a filesystem
with just a kernel driver.

-- 
Neil Bothwick

Suicidal twin kills sister by mistake!


pgpGilGcqwjlm.pgp
Description: OpenPGP digital signature


[gentoo-user] Samba wants to downgrade my python....

2012-09-16 Thread Andrew Lowe

Hi all,
	I've got a media server that I'm in the process of installing Samba on. 
When I do:


emerge -NuD --pretend samba

I get a list of stuff that portage wants to install, including Python, 
V2.7.3, even though the machine already has V3.2.3 installed. I've also 
stripped down the USE variables to basically server and that's all and 
still for some reason portage wants to bring in Python - the older 
version, V2. I've even added a -python to packages.use and it still 
wants python, V2. I've had a look at the USE variables for the packages 
that follow Python in the emerge list and they either don't want python 
or already have -python set.


	Having a play around with equery also didn't reveal anything. Does 
anyone have any ideas as to what's causing old Python to be brought in? 
I haven't posted the whole emerge --info stuff yet as hopefully 
someone has come across this problem before.


Any thoughts greatly appreciated,

Andrew



Re: [gentoo-user] Samba wants to downgrade my python....

2012-09-16 Thread Randolph Maaßen
On Sep 16, 2012 1:05 PM, Andrew Lowe a...@wht.com.au wrote:

 Hi all,
 I've got a media server that I'm in the process of installing
Samba on. When I do:

 emerge -NuD --pretend samba

 I get a list of stuff that portage wants to install, including Python,
V2.7.3, even though the machine already has V3.2.3 installed. I've also
stripped down the USE variables to basically server and that's all and
still for some reason portage wants to bring in Python - the older version,
V2. I've even added a -python to packages.use and it still wants python,
V2. I've had a look at the USE variables for the packages that follow
Python in the emerge list and they either don't want python or already have
-python set.

 Having a play around with equery also didn't reveal anything.
Does anyone have any ideas as to what's causing old Python to be brought
in? I haven't posted the whole emerge --info stuff yet as hopefully
someone has come across this problem before.

 Any thoughts greatly appreciated,

 Andrew


Hi, when you are dealing with python always remember that the API has
changed between version 2 and 3 so python 3 can't handle python 2 scripts.

So what I think emerge is doing here is installing python 2.7 beside 3.2.

When you add the verbose flag to the emerge command, you will probably see
something like [ NS ] or [ uS ] at the beginning of the python line. The S
stands for new slot, so both version will be installedbecause samba or one
of it's dependency is using python 2 scripts.

Mit freundlichen Grüßen / Best Regards

Randolph Maaßen


Re: [gentoo-user] Samba wants to downgrade my python....

2012-09-16 Thread Alan McKinnon
On Sun, 16 Sep 2012 18:59:33 +0800
Andrew Lowe a...@wht.com.au wrote:

 Hi all,
   I've got a media server that I'm in the process of installing
 Samba on. When I do:
 
 emerge -NuD --pretend samba
 
 I get a list of stuff that portage wants to install, including
 Python, V2.7.3, even though the machine already has V3.2.3 installed.
 I've also stripped down the USE variables to basically server and
 that's all and still for some reason portage wants to bring in Python
 - the older version, V2. I've even added a -python to packages.use
 and it still wants python, V2. I've had a look at the USE variables
 for the packages that follow Python in the emerge list and they
 either don't want python or already have -python set.
 
   Having a play around with equery also didn't reveal anything.
 Does anyone have any ideas as to what's causing old Python to be
 brought in? I haven't posted the whole emerge --info stuff yet as
 hopefully someone has come across this problem before.
 
   Any thoughts greatly appreciated,
 
   Andrew
 

Python is slotted (see gentoo docs for more info on SLOTS).

Samba is not downgrading python, it is asking for python-2.7 to be
installed alongside python-3.2 (so you will then have both).

Just accept what portage says and let it do it;s thing - there are many
packages out there that are not ported to python-3 yet so you almost
certainly are going to need python-2.7 at some point anyway.

-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Samba wants to downgrade my python....

2012-09-16 Thread Neil Bothwick
On Sun, 16 Sep 2012 18:59:33 +0800, Andrew Lowe wrote:

 I've had a look at the USE variables for the packages 
 that follow Python in the emerge list and they either don't want python 
 or already have -python set.

You've already had a reply about the slotted nature of python, but you
also need to understand that USE flags are not dependency lists. USE
flags cover optional features, if a package has an option python module,
bindings or scripts, a USE flag may determine whether they are installed.
But if a package needs python2, no amount of fudging with USE flags will
change that fact.


-- 
Neil Bothwick

Programmer (n): A red-eyed, mumbling mammal capable of conversing
with inanimate objects.


signature.asc
Description: PGP signature


Re: [gentoo-user] Samba wants to downgrade my python....

2012-09-16 Thread Marc Joliet
Am Sun, 16 Sep 2012 18:59:33 +0800
schrieb Andrew Lowe a...@wht.com.au:

 Hi all,

Hi,

   I've got a media server that I'm in the process of installing Samba on. 
 When I do:
 
 emerge -NuD --pretend samba
 
 I get a list of stuff that portage wants to install, including Python, 
 V2.7.3, even though the machine already has V3.2.3 installed. I've also 
 stripped down the USE variables to basically server and that's all and 
 still for some reason portage wants to bring in Python - the older 
 version, V2. I've even added a -python to packages.use and it still 
 wants python, V2. I've had a look at the USE variables for the packages 
 that follow Python in the emerge list and they either don't want python 
 or already have -python set.
 
   Having a play around with equery also didn't reveal anything. Does 
 anyone have any ideas as to what's causing old Python to be brought in? 
 I haven't posted the whole emerge --info stuff yet as hopefully 
 someone has come across this problem before.

First of all: Python 2 and 3 are (partly) incompatible versions of the language.
They can be installed in parallel in different slots (the emerge output will
have contained NS at one point, for New Slot). So you are not so much
downgrading python as installing an older version in addition to the current
version. Although older and newer are misleading, since they have both been
under active development in parallel since Python 3 was released.

Second: you can use the -t (or --tree) option of emerge to get a tree view
of the dependencies, so that you can see what exactly is pulling in
python-2.7.3. But it sounds like some dependency of samba has a hard dependency
on Python 2, so you probably cannot control it.

   Any thoughts greatly appreciated,
 
   Andrew

HTH
-- 
Marc Joliet
--
People who think they know everything really annoy those of us who know we
don't - Bjarne Stroustrup


signature.asc
Description: PGP signature


Re: [gentoo-user] Samba wants to downgrade my python....

2012-09-16 Thread Andrew Lowe

On 09/16/12 19:19, Randolph Maaßen wrote:

On Sep 16, 2012 1:05 PM, Andrew Lowe a...@wht.com.au
mailto:a...@wht.com.au wrote:
 
  Hi all,
  I've got a media server that I'm in the process of installing
Samba on. When I do:
 
  emerge -NuD --pretend samba
 
  I get a list of stuff that portage wants to install, including
Python, V2.7.3, even though the machine already has V3.2.3 installed.
I've also stripped down the USE variables to basically server and
that's all and still for some reason portage wants to bring in Python -
the older version, V2. I've even added a -python to packages.use and
it still wants python, V2. I've had a look at the USE variables for the
packages that follow Python in the emerge list and they either don't
want python or already have -python set.
 
  Having a play around with equery also didn't reveal anything.
Does anyone have any ideas as to what's causing old Python to be brought
in? I haven't posted the whole emerge --info stuff yet as hopefully
someone has come across this problem before.
 
  Any thoughts greatly appreciated,
 
  Andrew
 

Hi, when you are dealing with python always remember that the API has
changed between version 2 and 3 so python 3 can't handle python 2 scripts.

So what I think emerge is doing here is installing python 2.7 beside 3.2.

When you add the verbose flag to the emerge command, you will probably
see something like [ NS ] or [ uS ] at the beginning of the python line.
The S stands for new slot, so both version will be installedbecause
samba or one of it's dependency is using python 2 scripts.


Randolph,
	You have guessed correctly, I get NS. But to me, the question is why do 
I even need python at all for something that is a file sharing daemon? 
I've turned off CUPS etc etc, I just want file sharing to the M$ world, 
not all the other fluff. I suppose I'll have to have a look at the 
ebuild to try and work out why this thingy wants Python, any python, in 
the first place.


Andrew




Re: [gentoo-user] Samba wants to downgrade my python....

2012-09-16 Thread Neil Bothwick
On Sun, 16 Sep 2012 19:32:11 +0800, Andrew Lowe wrote:

 I suppose I'll have to have a look at the 
 ebuild to try and work out why this thingy wants Python, any python, in 
 the first place.

Portage is written in Python, which raises the question of why you didn't
have python:2 installed in the first place. The samba ebuild doesn't
include a dependency on python, so you'll need to do and emerge -t to see
which packages do pull it in, but I suspect it is required by an eclass
inherited by one of the ebuilds.

If so, Samba itself does not need Python to do it's job, but portage
needs Python in order to install Samba. that would make it a build
dependency which could be uninstalled after Samba was merged, but I'd be
nervous about removing Python from any Gentoo system that uses portage.

-- 
Neil Bothwick

Top Oxymorons Number 47: Act naturally


signature.asc
Description: PGP signature


Re: [gentoo-user] Samba wants to downgrade my python....

2012-09-16 Thread Andrew Lowe

On 09/16/12 19:53, Neil Bothwick wrote:

On Sun, 16 Sep 2012 19:32:11 +0800, Andrew Lowe wrote:


I suppose I'll have to have a look at the
ebuild to try and work out why this thingy wants Python, any python, in
the first place.


Portage is written in Python, which raises the question of why you didn't
have python:2 installed in the first place. The samba ebuild doesn't
include a dependency on python, so you'll need to do and emerge -t to see
which packages do pull it in, but I suspect it is required by an eclass
inherited by one of the ebuilds.

If so, Samba itself does not need Python to do it's job, but portage
needs Python in order to install Samba. that would make it a build
dependency which could be uninstalled after Samba was merged, but I'd be
nervous about removing Python from any Gentoo system that uses portage.


Neil,
	Looks like you've hit the nail on the head. The media machine has just 
had a new install of Gentoo done and according to eselect python list, 
I only have V3.2. Nothing has been removed, just a few things added so 
it looks like the default install only does V3.2. Looks like I'll have 
to put up with it, the compile time on the little machine is a killer, 
and let the install happen.


Thanks for the feedback everyone,

Andrew



Re: [gentoo-user] Samba wants to downgrade my python....

2012-09-16 Thread Kerin Millar

Andrew Lowe wrote:

On 09/16/12 19:53, Neil Bothwick wrote:

On Sun, 16 Sep 2012 19:32:11 +0800, Andrew Lowe wrote:


I suppose I'll have to have a look at the
ebuild to try and work out why this thingy wants Python, any python, in
the first place.


Portage is written in Python, which raises the question of why you didn't
have python:2 installed in the first place. The samba ebuild doesn't
include a dependency on python, so you'll need to do and emerge -t to see
which packages do pull it in, but I suspect it is required by an eclass
inherited by one of the ebuilds.

If so, Samba itself does not need Python to do it's job, but portage
needs Python in order to install Samba. that would make it a build
dependency which could be uninstalled after Samba was merged, but I'd be
nervous about removing Python from any Gentoo system that uses portage.


Neil,
Looks like you've hit the nail on the head. The media machine has just
had a new install of Gentoo done and according to eselect python list,
I only have V3.2. Nothing has been removed, just a few things added so
it looks like the default install only does V3.2. Looks like I'll have
to put up with it, the compile time on the little machine is a killer,
and let the install happen.


Portage works with either instance of python and its ebuild has 
python2 and python3 USE flags. Alas, the build system of 
sys-libs/talloc seems to require python:2.6 or python:2.7. I would 
suggest adding dev-lang/python:2.7 to the world file so as to protect it 
from being reaped by emerge --depclean, only to be required again for 
future builds.


Incidentally, one of the first things I do on a Gentoo system is mask 
=dev-lang/python-3.0 and rebuild affected packages against python-2.7. 
I have yet to find a single instance where having both installed is 
helpful. Even major applications such as Django still don't support Py3k.


Regarding the increase in compilation time, you could get a head start 
by grabbing a binary package from tinderbox.dev.gentoo.org.


Cheers,

--Kerin



[gentoo-user] Samba/Iconv

2010-11-29 Thread SpaceCake
Hi,

I have some problem with accessing samba shares from my gentoo box. I'm not
sure if the issue above is related to this, but do you have any idea how can
I avoid these annoying error messages?

/var/log/messages:Nov 29 11:07:53 brutal net:   init_iconv: Attempting to
replace with conversion from ASCII to ASCII
/var/log/messages:Nov 29 11:07:53 brutal net:   init_iconv: Conversion from
UTF-16LE to 1255 not supported
/var/log/messages:Nov 29 11:07:53 brutal net:   init_iconv: Attempting to
replace with conversion from UTF-16LE to ASCII
/var/log/messages:Nov 29 11:07:53 brutal net:   init_iconv: Conversion from
UTF-8 to 1255 not supported
/var/log/messages:Nov 29 11:07:53 brutal net:   init_iconv: Attempting to
replace with conversion from ASCII to ASCII
/var/log/messages:Nov 29 11:07:53 brutal net:   init_iconv: Conversion from
UTF-8 to 1255 not supported
/var/log/messages:Nov 29 11:07:53 brutal net:   init_iconv: Attempting to
replace with conversion from ASCII to ASCII
/var/log/messages:Nov 29 11:07:53 brutal net:   init_iconv: Conversion from
1255 to UTF-16LE not supported
/var/log/messages:Nov 29 11:07:53 brutal net:   init_iconv: Attempting to
replace with conversion from ASCII to UTF-16LE
/var/log/messages:Nov 29 11:07:53 brutal net:   init_iconv: Conversion from
1255 to UTF-8 not supported
/var/log/messages:Nov 29 11:07:53 brutal net:   init_iconv: Attempting to
replace with conversion from ASCII to ASCII
brutal ~ #

I was searching google for hours but I can't find a solution

Thank you
Laszlo


Re: [gentoo-user] samba no connect from windows

2010-11-15 Thread Adam Carter
On Sat, Nov 13, 2010 at 11:04 AM, Harry Putnam rea...@newsguy.com wrote:

 This samba problem (windows machines cannot connect to gentoo server)
 seems to have followed a recent update including samba.

 qlop shows: Mon Nov  1 05:10:33 2010  net-fs/samba-3.5.6

 Usually I've found I might need to redo passwords with smbpasswd.

 This time, that is not sufficient.


Did you miss this?

LOG: postinst
The default passdb backend has been changed to 'tdbsam' in samba 3.4!
That breaks existing setups using the 'smbpasswd' backend without
explicit declaration!
Please use 'passdb backend = smbpasswd' if you would like to stick to the
'smbpasswd' backend or convert your smbpasswd entries using e.g.
'pdbedit -i smbpasswd -e tdbsam'.
For further information make sure to read the release notes at
http://samba.org/samba/history/samba-3.4.9.html and
http://samba.org/samba/history/samba-3.4.0.html


[gentoo-user] samba no connect from windows

2010-11-12 Thread Harry Putnam
This samba problem (windows machines cannot connect to gentoo server)
seems to have followed a recent update including samba.

qlop shows: Mon Nov  1 05:10:33 2010  net-fs/samba-3.5.6

Usually I've found I might need to redo passwords with smbpasswd.

This time, that is not sufficient.

Looking at the logs... which I might add seem ungodly full more or
less useless gunk I'm not seeing anything that appears to be an
error or rejected connection... in fact it appears to be saying the
connection was successful but I'm by no means competent to determine that.   

I've included a snippet below, but let me say that I first restarted
samba, then rm'ed all log* files under /var/log/samba.

Then went to a windows machine and attempted to connect.

Came back to gentoo and scanned thru the logs.  3 were from that
attempt judging by name or ip.  

This snippet starts from the very top of the newly created log and
appears to be showing the connection succeeding?:

[2010/11/12 17:32:11.898234,  3] smbd/process.c:1485(process_smb)
  Transaction 0 of length 108 (0 toread)
[2010/11/12 17:32:11.899792,  3] libsmb/ntlmssp.c:65(debug_ntlmssp_flags)
  Got NTLMSSP neg_flags=0xe2088297
[2010/11/12 17:32:11.901339,  3] libsmb/ntlmssp.c:747(ntlmssp_server_auth)
  Got user=[harry] domain=[m2] workstation=[M2] len1=24 len2=260
[2010/11/12 17:32:11.901585,  3] smbd/map_username.c:188(map_username)
  Mapped user harry to reader
[2010/11/12 17:32:11.901709,  3] auth/auth.c:216(check_ntlm_password)
  check_ntlm_password:  Checking password for unmapped user [m2]\[har...@[m2] 
with the new password interface
[2010/11/12 17:32:11.901757,  3] auth/auth.c:219(check_ntlm_password)
  check_ntlm_password:  mapped user is: [reader]\[read...@[m2]
[2010/11/12 17:32:11.901820,  3] smbd/sec_ctx.c:210(push_sec_ctx)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2010/11/12 17:32:11.901869,  3] smbd/uid.c:429(push_conn_ctx)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0

[...]  Many lines skipped here

[2010/11/12 17:32:11.905698,  3] smbd/sec_ctx.c:418(pop_sec_ctx)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1
[2010/11/12 17:32:11.905762,  3] smbd/sec_ctx.c:418(pop_sec_ctx)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2010/11/12 17:32:11.905804,  3] auth/auth.c:265(check_ntlm_password)
  check_ntlm_password: sam authentication for user [harry] succeeded
[2010/11/12 17:32:11.905841,  3] smbd/sec_ctx.c:210(push_sec_ctx)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2010/11/12 17:32:11.905875,  3] smbd/uid.c:429(push_conn_ctx)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2010/11/12 17:32:11.905904,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2010/11/12 17:32:11.905960,  3] smbd/sec_ctx.c:418(pop_sec_ctx)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2010/11/12 17:32:11.905996,  2] auth/auth.c:304(check_ntlm_password)
  check_ntlm_password:  authentication for user [harry] - [reader] - [reader] 
succeeded
[2010/11/12 17:32:11.906055,  3] smbd/sec_ctx.c:210(push_sec_ctx)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2010/11/12 17:32:11.906135,  3] smbd/uid.c:429(push_conn_ctx)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0


[...] gobs more skipped... then this appears when the windows dialog
  finally gives up the ghost.


[2010/11/12 17:58:55.756748,  3]
smbd/connection.c:31(yield_connection)
  Yielding connection to
[2010/11/12 17:58:55.756821,  3]
smbd/connection.c:42(yield_connection)
  deleting connection record returned NT_STATUS_NOT_FOUND
[2010/11/12 17:58:55.757047,  3] smbd/server.c:902(exit_server_common)
  Server exit (normal exit)





Re: [gentoo-user] samba no connect from windows

2010-11-12 Thread Stroller

On 13/11/2010, at 12:04am, Harry Putnam wrote:

 This samba problem (windows machines cannot connect to gentoo server)
 seems to have followed a recent update including samba.
 
 qlop shows: Mon Nov  1 05:10:33 2010  net-fs/samba-3.5.6
 
 Usually I've found I might need to redo passwords with smbpasswd.
 
 This time, that is not sufficient.
 
 Looking at the logs...
 
 I've included a snippet below, but let me say that I first restarted
 samba, then rm'ed all log* files under /var/log/samba.

You haven't demonstrated you can connect using a Linux machine and the Samba 
command line tools. Connecting using the same machine (to localhost) should be 
sufficient, however it's probably better to connect from a 2nd Linux box. You 
haven't shown us using `ps` that smbd and nmdb are running, nor have you posted 
the output of `netstat` (appropriately grepped - e.g. `netstat -aep | grep -e 
samba -e smb -e nmb`). When you `/etc/init.d/samba restart` does Samba start 
and stop cleanly?

I also suggest you try the Windows command line tools, `net use` c. When you 
connect using the Windows GUI tools you need to be *really* verbose about which 
specific icons and buttons you clicked on. Mounting a network share as a drive 
allows you to specify a username for the share / connection, whereas Start  
Run and typing \\server\share may not (and may use a different username, 
attempting to connect as guest).

These articles demonstrate how to use `nmblookup` and `smbclient` for 
troubleshooting purposes:
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/install.html#id2553540
http://tinyurl.com/2kpojq - scroll down to List Shares Available on the Server
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/diagnosis.html
http://tinyurl.com/32sq32g
http://oreilly.com/catalog/samba/chapter/book/ch09_02.html
http://tinyurl.com/2dn3w9r
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch12_:_Samba_Security_and_Troubleshooting
http://tinyurl.com/pkqfz
http://www.samba.org/samba/docs/Samba24Hc13.pdf (PDF)
http://tinyurl.com/35v6kqz (PDF)

Three of these articles are top google hits for troubleshooting samba. I have 
used the first two links personally to debug Samba within the last 4 weeks.

The reason I have replied to your last two posts saying you haven't 
demonstrated that ... is not personal. My thought process before replying was 
this guy hasn't given us enough information ... I'll ignore this post ... 
well, that's no help to him - having told us so little he'll be waiting forever 
for help  ... hmmmn, I wonder if it's the same guy. And it was you. Sorry 
about that.

The information you have given us is scant, and without more we're left 
guessing around the same as you are. I'm pretty much rehashing the famous essay 
How to ask questions the smart way here, but I'm trying to be more terse and 
less patronising. Sorry if I fail at that latter.

But in my experience, if you make the effort to google, follow the obvious 
solutions and *document fully* that you've followed them (this last part is 
VERY important) in your post to the mailing list then 8 times out of 10 you'll 
solve your own problem without needing to post, and a further 9th time out of 
10 someone will quickly be able to give you a one-line answer showing your 
error.

My experience is that when you take the time to do the documenting stage of 
this - tediously re-doing everything you did before and copying and pasting it 
into an email, making sure you methodology is pristine and clear, then it 
forces your mental processes to slow down. It's frustrating to have to repeat 
things you've already tried and it takes an hour or two, but 8 times out of 10 
the slower pace of re-doing your troubleshooting leads you to discover the 
problem for yourself. 

You should not to be trying to *tell* us you have a problem, you should be 
trying to *prove* to us that you have a problem.

Samba is frikkin' nasty to troubleshoot, it's boring and it's inconvenient, and 
I agree that it seems more so than most other services. I don't really know why 
this is. I too find the logfiles pants. Particularly when it comes to Samba I 
find a real reluctance to sit down, roll my sleeves up and get on with what 
I've just suggested you do, but there's no way to know more without doing so. 

Stroller.




Re: [gentoo-user] Samba freakiness; why isn't it reading MY /etc/samba/smb.conf file?

2010-07-02 Thread Greg Fitzgerald
On Mon, Jun 21, 2010 at 04:44:58 -0500, Michael Sullivan wrote:
 I just rebooted the computer to make sure this wasn't some weird RAM
 remnant, but the computer booted up:
 
 carter ~ # /etc/init.d/samba status
  * status:  started
 carter ~ # cat /etc/samba/smb.conf
 [global] 
 workgroup = MYGROUP 
 security = user 
 encrypt passwords = yes 
 guest account = guest
 wins support = yes
 local master = yes 
 os level = 99 
 domain master = yes 
 preferred master = yes
 hosts allow = 192.168.1. 127.
 interfaces = eth0
 
 [tmp] 
 path=/tmp 
 writeable=yes
 
 [homes]
 path=/samba/michael
 valid users=michael
 writable=yes
 carter ~ # testparm 
 Load smb config files from /etc/samba/smb.conf
 rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
 Processing section [tmp]
 Processing section [homes]
 Loaded services file OK.
 Server role: ROLE_STANDALONE
 Press enter to see a dump of your service definitions
 
 [global]
   workgroup = MYGROUP
   interfaces = eth0
   guest account = guest
   os level = 99
   preferred master = Yes
   domain master = Yes
   wins support = Yes
   hosts allow = 192.168.1., 127.
 
 [tmp]
   path = /tmp
   read only = No
 
 [homes]
   path = /samba/michael
   valid users = michael
   read only = No
 
 At the top there you see that Samba IS started.  Under that you see MY
 smb.conf, and at the bottom you see the smb.conf that's being loaded.
 Nothing really in the logs that would suggest what's going on here:
 
 carter ~ # cat /var/log/samba/*
 cat: /var/log/samba/cores: Is a directory
 [2010/06/21 16:39:34,  0] nmbd/nmbd.c:854(main)
   nmbd version 3.4.6 started.
   Copyright Andrew Tridgell and the Samba Team 1992-2009
 [2010/06/21 16:39:34,  0] nmbd/asyncdns.c:155(start_async_dns)
   started asyncdns process 20980
 [2010/06/21 16:39:34,  0]
 nmbd/nmbd_become_dmb.c:337(become_domain_master_browser_wins)
   become_domain_master_browser_wins:
   Attempting to become domain master browser on workgroup MYGROUP,
 subnet UNICAST_SUBNET.
 [2010/06/21 16:39:34,  0]
 nmbd/nmbd_become_dmb.c:351(become_domain_master_browser_wins)
   become_domain_master_browser_wins: querying WINS server from IP
 192.168.1.2 for domain master browser name MYGROUP1b on workgroup
 MYGROUP
 [2010/06/21 16:39:40,  0]
 nmbd/nmbd_become_dmb.c:110(become_domain_master_stage2)
   *
   
   Samba server CARTER is now a domain master browser for workgroup
 MYGROUP on subnet UNICAST_SUBNET
   
   *
 [2010/06/21 16:39:40,  0]
 nmbd/nmbd_become_dmb.c:292(become_domain_master_browser_bcast)
   become_domain_master_browser_bcast:
   Attempting to become domain master browser on workgroup MYGROUP on
 subnet 192.168.1.2
 [2010/06/21 16:39:40,  0]
 nmbd/nmbd_become_dmb.c:305(become_domain_master_browser_bcast)
   become_domain_master_browser_bcast: querying subnet 192.168.1.2 for
 domain master browser on workgroup MYGROUP
 [2010/06/21 16:39:48,  0]
 nmbd/nmbd_become_dmb.c:110(become_domain_master_stage2)
   *
   
   Samba server CARTER is now a domain master browser for workgroup
 MYGROUP on subnet 192.168.1.2
   
   *
 [2010/06/21 16:39:56,  0]
 nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
   *
   
   Samba name server CARTER is now a local master browser for workgroup
 MYGROUP on subnet 192.168.1.2
   
   *
 [2010/06/21 16:39:33,  0] smbd/server.c:1073(main)
   smbd version 3.4.6 started.
   Copyright Andrew Tridgell and the Samba Team 1992-2009
 [2010/06/21 16:39:33,  0] printing/print_cups.c:103(cups_connect)
   Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No such
 file or directory
 [2010/06/21 16:39:33,  0] printing/print_cups.c:103(cups_connect)
   Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No such
 file or directory
 [2010/06/21 16:39:34,  0] smbd/server.c:457(smbd_open_one_socket)
   smbd_open_once_socket: open_socket_in: Address already in use
 [2010/06/21 16:39:34,  0] smbd/server.c:457(smbd_open_one_socket)
   smbd_open_once_socket: open_socket_in: Address already in use
 
 
 

I recently ran into what appears to be the same issue on OpenBSD. For
some reason commenting out the interfaces setting did it for me. I got a
feeling there maybe a bug, but I haven't had time to look into it more.

-- 
Best Regards,
Greg Fitzgerald


pgp34Xjtb50oR.pgp
Description: PGP signature


[gentoo-user] Samba freakiness; why isn't it reading MY /etc/samba/smb.conf file?

2010-06-21 Thread Michael Sullivan
I just rebooted the computer to make sure this wasn't some weird RAM
remnant, but the computer booted up:

carter ~ # /etc/init.d/samba status
 * status:  started
carter ~ # cat /etc/samba/smb.conf
[global] 
workgroup = MYGROUP 
security = user 
encrypt passwords = yes 
guest account = guest
wins support = yes
local master = yes 
os level = 99 
domain master = yes 
preferred master = yes
hosts allow = 192.168.1. 127.
interfaces = eth0

[tmp] 
path=/tmp 
writeable=yes

[homes]
path=/samba/michael
valid users=michael
writable=yes
carter ~ # testparm 
Load smb config files from /etc/samba/smb.conf
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
Processing section [tmp]
Processing section [homes]
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
workgroup = MYGROUP
interfaces = eth0
guest account = guest
os level = 99
preferred master = Yes
domain master = Yes
wins support = Yes
hosts allow = 192.168.1., 127.

[tmp]
path = /tmp
read only = No

[homes]
path = /samba/michael
valid users = michael
read only = No

At the top there you see that Samba IS started.  Under that you see MY
smb.conf, and at the bottom you see the smb.conf that's being loaded.
Nothing really in the logs that would suggest what's going on here:

carter ~ # cat /var/log/samba/*
cat: /var/log/samba/cores: Is a directory
[2010/06/21 16:39:34,  0] nmbd/nmbd.c:854(main)
  nmbd version 3.4.6 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2009
[2010/06/21 16:39:34,  0] nmbd/asyncdns.c:155(start_async_dns)
  started asyncdns process 20980
[2010/06/21 16:39:34,  0]
nmbd/nmbd_become_dmb.c:337(become_domain_master_browser_wins)
  become_domain_master_browser_wins:
  Attempting to become domain master browser on workgroup MYGROUP,
subnet UNICAST_SUBNET.
[2010/06/21 16:39:34,  0]
nmbd/nmbd_become_dmb.c:351(become_domain_master_browser_wins)
  become_domain_master_browser_wins: querying WINS server from IP
192.168.1.2 for domain master browser name MYGROUP1b on workgroup
MYGROUP
[2010/06/21 16:39:40,  0]
nmbd/nmbd_become_dmb.c:110(become_domain_master_stage2)
  *
  
  Samba server CARTER is now a domain master browser for workgroup
MYGROUP on subnet UNICAST_SUBNET
  
  *
[2010/06/21 16:39:40,  0]
nmbd/nmbd_become_dmb.c:292(become_domain_master_browser_bcast)
  become_domain_master_browser_bcast:
  Attempting to become domain master browser on workgroup MYGROUP on
subnet 192.168.1.2
[2010/06/21 16:39:40,  0]
nmbd/nmbd_become_dmb.c:305(become_domain_master_browser_bcast)
  become_domain_master_browser_bcast: querying subnet 192.168.1.2 for
domain master browser on workgroup MYGROUP
[2010/06/21 16:39:48,  0]
nmbd/nmbd_become_dmb.c:110(become_domain_master_stage2)
  *
  
  Samba server CARTER is now a domain master browser for workgroup
MYGROUP on subnet 192.168.1.2
  
  *
[2010/06/21 16:39:56,  0]
nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
  *
  
  Samba name server CARTER is now a local master browser for workgroup
MYGROUP on subnet 192.168.1.2
  
  *
[2010/06/21 16:39:33,  0] smbd/server.c:1073(main)
  smbd version 3.4.6 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2009
[2010/06/21 16:39:33,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No such
file or directory
[2010/06/21 16:39:33,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No such
file or directory
[2010/06/21 16:39:34,  0] smbd/server.c:457(smbd_open_one_socket)
  smbd_open_once_socket: open_socket_in: Address already in use
[2010/06/21 16:39:34,  0] smbd/server.c:457(smbd_open_one_socket)
  smbd_open_once_socket: open_socket_in: Address already in use





Re: [gentoo-user] Samba freakiness; why isn't it reading MY /etc/samba/smb.conf file?

2010-06-21 Thread Alan McKinnon
On Monday 21 June 2010 23:44:58 Michael Sullivan wrote:
 I just rebooted the computer to make sure this wasn't some weird RAM
 remnant, but the computer booted up:

Everything below is correct. What makes you think its wrong?

testparm does not dump a config file, it tells you what setting are IN EFFECT.

writeable=yes and read only = No are exactly the same thing. You used the 
former, samba uses the latter internally and translated it.

There is no problem here.




 
 carter ~ # /etc/init.d/samba status
  * status:  started
 carter ~ # cat /etc/samba/smb.conf
 [global]
 workgroup = MYGROUP
 security = user
 encrypt passwords = yes
 guest account = guest
 wins support = yes
 local master = yes
 os level = 99
 domain master = yes
 preferred master = yes
 hosts allow = 192.168.1. 127.
 interfaces = eth0
 
 [tmp]
 path=/tmp
 writeable=yes
 
 [homes]
 path=/samba/michael
 valid users=michael
 writable=yes
 carter ~ # testparm
 Load smb config files from /etc/samba/smb.conf
 rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
 Processing section [tmp]
 Processing section [homes]
 Loaded services file OK.
 Server role: ROLE_STANDALONE
 Press enter to see a dump of your service definitions
 
 [global]
   workgroup = MYGROUP
   interfaces = eth0
   guest account = guest
   os level = 99
   preferred master = Yes
   domain master = Yes
   wins support = Yes
   hosts allow = 192.168.1., 127.
 
 [tmp]
   path = /tmp
   read only = No
 
 [homes]
   path = /samba/michael
   valid users = michael
   read only = No
 
 At the top there you see that Samba IS started.  Under that you see MY
 smb.conf, and at the bottom you see the smb.conf that's being loaded.
 Nothing really in the logs that would suggest what's going on here:
 
 carter ~ # cat /var/log/samba/*
 cat: /var/log/samba/cores: Is a directory
 [2010/06/21 16:39:34,  0] nmbd/nmbd.c:854(main)
   nmbd version 3.4.6 started.
   Copyright Andrew Tridgell and the Samba Team 1992-2009
 [2010/06/21 16:39:34,  0] nmbd/asyncdns.c:155(start_async_dns)
   started asyncdns process 20980
 [2010/06/21 16:39:34,  0]
 nmbd/nmbd_become_dmb.c:337(become_domain_master_browser_wins)
   become_domain_master_browser_wins:
   Attempting to become domain master browser on workgroup MYGROUP,
 subnet UNICAST_SUBNET.
 [2010/06/21 16:39:34,  0]
 nmbd/nmbd_become_dmb.c:351(become_domain_master_browser_wins)
   become_domain_master_browser_wins: querying WINS server from IP
 192.168.1.2 for domain master browser name MYGROUP1b on workgroup
 MYGROUP
 [2010/06/21 16:39:40,  0]
 nmbd/nmbd_become_dmb.c:110(become_domain_master_stage2)
   *
 
   Samba server CARTER is now a domain master browser for workgroup
 MYGROUP on subnet UNICAST_SUBNET
 
   *
 [2010/06/21 16:39:40,  0]
 nmbd/nmbd_become_dmb.c:292(become_domain_master_browser_bcast)
   become_domain_master_browser_bcast:
   Attempting to become domain master browser on workgroup MYGROUP on
 subnet 192.168.1.2
 [2010/06/21 16:39:40,  0]
 nmbd/nmbd_become_dmb.c:305(become_domain_master_browser_bcast)
   become_domain_master_browser_bcast: querying subnet 192.168.1.2 for
 domain master browser on workgroup MYGROUP
 [2010/06/21 16:39:48,  0]
 nmbd/nmbd_become_dmb.c:110(become_domain_master_stage2)
   *
 
   Samba server CARTER is now a domain master browser for workgroup
 MYGROUP on subnet 192.168.1.2
 
   *
 [2010/06/21 16:39:56,  0]
 nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
   *
 
   Samba name server CARTER is now a local master browser for workgroup
 MYGROUP on subnet 192.168.1.2
 
   *
 [2010/06/21 16:39:33,  0] smbd/server.c:1073(main)
   smbd version 3.4.6 started.
   Copyright Andrew Tridgell and the Samba Team 1992-2009
 [2010/06/21 16:39:33,  0] printing/print_cups.c:103(cups_connect)
   Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No such
 file or directory
 [2010/06/21 16:39:33,  0] printing/print_cups.c:103(cups_connect)
   Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No such
 file or directory
 [2010/06/21 16:39:34,  0] smbd/server.c:457(smbd_open_one_socket)
   smbd_open_once_socket: open_socket_in: Address already in use
 [2010/06/21 16:39:34,  0] smbd/server.c:457(smbd_open_one_socket)
   smbd_open_once_socket: open_socket_in: Address already in use

-- 
alan dot mckinnon at gmail dot com



[gentoo-user] samba vs. cifs

2010-05-05 Thread KH

Hi List,

I just ran in a problem:

net-fs/mount-cifs (net-fs/mount-cifs is blocking net-fs/samba-3.4.6)

Somba is pulled in by the samba use-flag. The PC only is client to a 
server running samba. Do I need samba for this anymore? More specific 
(don't want to hear moo): Will I be able to mount a samba partition 
without setting the samba use flag and after unmerging samba?


Regards
kh



Re: [gentoo-user] samba vs. cifs

2010-05-05 Thread Neil Bothwick
On Wed, 05 May 2010 18:42:09 +0200, KH wrote:

 net-fs/mount-cifs (net-fs/mount-cifs is blocking net-fs/samba-3.4.6)

mount.cifs is now provided by Samba.

 Somba is pulled in by the samba use-flag. The PC only is client to a 
 server running samba. Do I need samba for this anymore? More specific 
 (don't want to hear moo): Will I be able to mount a samba partition 
 without setting the samba use flag and after unmerging samba?

Samba is the server. The client tools used to be a separate package but
it now looks like you should emerge samba with USE=-server smbclient.


-- 
Neil Bothwick

Home is where you hang your @.


signature.asc
Description: PGP signature


Re: [gentoo-user] samba vs. cifs

2010-05-05 Thread Matt Harrison
On Wed, May 05, 2010 at 06:42:09PM +0200, KH wrote:
 Hi List,
 
 I just ran in a problem:
 
 net-fs/mount-cifs (net-fs/mount-cifs is blocking net-fs/samba-3.4.6)
 
 Somba is pulled in by the samba use-flag. The PC only is client to a 
 server running samba. Do I need samba for this anymore? More specific 
 (don't want to hear moo): Will I be able to mount a samba partition 
 without setting the samba use flag and after unmerging samba?
 
 Regards
 kh

I just enable cifs in the kernel and install the mount-cifs script. That lets 
me mount
remote shares with no trouble at all.

HTH

Matt


pgpqcohV21EdH.pgp
Description: PGP signature


Re: [gentoo-user] samba vs. cifs

2010-05-05 Thread David W Noon
On Wed, 05 May 2010 23:20:01 +0200, Matt Harrison wrote about Re:
[gentoo-user] samba vs. cifs:

On Wed, May 05, 2010 at 06:42:09PM +0200, KH wrote:
[snip]
 specific (don't want to hear moo): Will I be able to mount a samba
 partition without setting the samba use flag and after unmerging
 samba?
 
 Regards
 kh

I just enable cifs in the kernel and install the mount-cifs script.
That lets me mount remote shares with no trouble at all.

I don't even install the mount-cifs script.  I simply put the share
definition in /etc/fstab on the client, and then use the vanilla mount
command.  E.g.,

//192.168.0.2/backups/usr/local/remote_backupscifs
noauto,noexec,noatime,nodiratime,user=root,pass=eetoot  0 0

[The above should be on 1 line.]

Note that my real password for root is not eetoot; that is simply a
fake password I set up for Samba shares.

Whenever I need to transfer a backup archive to the server, I simply
issue:
   mount /usr/local/remote_backups
and then copy the data across.
-- 
Regards,

Dave  [RLU #314465]
==
dwn...@ntlworld.com (David W Noon)
==


signature.asc
Description: PGP signature


[gentoo-user] Samba-3.3.7

2009-09-02 Thread Alan McKinnon
samab-3.3.7 just hit the tree.

To prevent a spate of I get these blockers mails, herewith a short 
howot. Hopefully it will get read.

Samba-3.3.7 is a meta package that installs -libs, -client and -server 
packages instead of one huge monolothic samba package. Recent portage is smart 
enough to figure out what to do, except it can't deal with the blocker on 
cifs-mount.

You don't need cifs-mount, that now comes with samba-client. Do this:

emerge -avC cifs-mount
emerge samba

There's lots of USE flags to play with :-)


-- 
alan dot mckinnon at gmail dot com



[gentoo-user] Samba core dumping after update

2008-05-29 Thread Matt Harrison

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Well I seem to have another problem after updating samba on my
fileserver, on starting /etc/init.d/samba I now get this:

~ * samba - start: smbd ...
/lib/rcscripts/sh/rc-daemon.sh: line 231: 15228 Aborted
(core dumped) /sbin/start-stop-daemon '--start' '--quiet' '--exec'
'/usr/sbin/smbd' '--' '-D'



~ * samba - start: nmbd ...
/lib/rcscripts/sh/rc-daemon.sh: line 231: 15232 Aborted
(core dumped) /sbin/start-stop-daemon '--start' '--quiet' '--exec'
'/usr/sbin/nmbd' '--' '-D'



~ * Error: starting services (see system logs)
~ * samba - stop: smbd ...


~ * samba - stop: nmbd ...


System logs give me this:

May 29 20:40:26 exodus smbd[15228]: [2008/05/29 20:40:26, 0]
lib/fault.c:fault_report(41)
May 29 20:40:26 exodus smbd[15228]:
===
May 29 20:40:26 exodus smbd[15228]: [2008/05/29 20:40:26, 0]
lib/fault.c:fault_report(42)
May 29 20:40:26 exodus smbd[15228]:   INTERNAL ERROR: Signal 11 in pid
15228 (3.0.28)
May 29 20:40:26 exodus smbd[15228]:   Please read the Trouble-Shooting
section of the Samba3-HOWTO
May 29 20:40:26 exodus smbd[15228]: [2008/05/29 20:40:26, 0]
lib/fault.c:fault_report(44)
May 29 20:40:26 exodus smbd[15228]:
May 29 20:40:26 exodus smbd[15228]:   From:
http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
May 29 20:40:26 exodus smbd[15228]: [2008/05/29 20:40:26, 0]
lib/fault.c:fault_report(45)
May 29 20:40:26 exodus smbd[15228]:
===
May 29 20:40:26 exodus smbd[15228]: [2008/05/29 20:40:26, 0]
lib/util.c:smb_panic(1633)
May 29 20:40:26 exodus smbd[15228]:   PANIC (pid 15228): internal error
May 29 20:40:26 exodus smbd[15228]: [2008/05/29 20:40:26, 0]
lib/util.c:log_stack_trace(1737)
May 29 20:40:26 exodus smbd[15228]:   BACKTRACE: 17 stack frames:
May 29 20:40:26 exodus smbd[15228]:#0
/usr/sbin/smbd(log_stack_trace+0x2e) [0x80219e1e]
May 29 20:40:26 exodus smbd[15228]:#1 /usr/sbin/smbd(smb_panic+0x5e)
[0x80219f4e]
May 29 20:40:26 exodus smbd[15228]:#2 /usr/sbin/smbd [0x802049b0]
May 29 20:40:26 exodus smbd[15228]:#3 [0xb7f59420]
May 29 20:40:26 exodus smbd[15228]:#4 /lib/libc.so.6 [0xb7dbc3d1]
May 29 20:40:26 exodus smbd[15228]:#5 /lib/libc.so.6(iconv+0x6c)
[0xb7dbb9fc]
May 29 20:40:26 exodus smbd[15228]:#6 /usr/sbin/smbd [0x802280d1]
May 29 20:40:26 exodus smbd[15228]:#7 /usr/sbin/smbd(smb_iconv+0x51)
[0x80227671]
May 29 20:40:26 exodus smbd[15228]:#8 /usr/sbin/smbd [0x8020195f]
May 29 20:40:26 exodus smbd[15228]:#9
/usr/sbin/smbd(convert_string+0x2a9) [0x80202019]
May 29 20:40:26 exodus smbd[15228]:#10
/usr/sbin/smbd(init_doschar_table+0x92) [0x80215902]
May 29 20:40:26 exodus smbd[15228]:#11
/usr/sbin/smbd(init_iconv+0x11d) [0x802009cd]
May 29 20:40:26 exodus smbd[15228]:#12 /usr/sbin/smbd(lp_load+0xe05)
[0x80059df5]
May 29 20:40:26 exodus smbd[15228]:#13
/usr/sbin/smbd(reload_services+0xb0) [0x802d17c0]
May 29 20:40:26 exodus smbd[15228]:#14 /usr/sbin/smbd(main+0x523)
[0x802d2bb3]
May 29 20:40:26 exodus smbd[15228]:#15
/lib/libc.so.6(__libc_start_main+0xdc) [0xb7dbafdc]
May 29 20:40:26 exodus smbd[15228]:#16 /usr/sbin/smbd [0x8004eba1]
May 29 20:40:26 exodus smbd[15228]: [2008/05/29 20:40:26, 0]
lib/fault.c:dump_core(181)
May 29 20:40:26 exodus smbd[15228]:   dumping core in
/var/log/samba/cores/smbd
May 29 20:40:26 exodus smbd[15228]:


I've run revdep-rebuild and check everything I can think of but samba
just refuses to start. It was working fine 20 mins ago before the update :(

Any help greatly appreciated as I'm pretty stuck without samba

Thanks in advance

- --
Matt Harrison
[EMAIL PROTECTED]
http://blog.genestate.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)

iEYEARECAAYFAkg/Bw4ACgkQxNZfa+YAUWEGlwCgkhUZdQNa5CFciEd2Z2ntnXkZ
BcIAnjNpq9O/IiuMRmZWvS/m/C/FKbBy
=i+5g
-END PGP SIGNATURE-
--
gentoo-user@lists.gentoo.org mailing list



[SOLVED] Re: [gentoo-user] Samba core dumping after update

2008-05-29 Thread Matt Harrison

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Matt Harrison wrote:
| Well I seem to have another problem after updating samba on my
| fileserver, on starting /etc/init.d/samba I now get this:
|
| ~ * samba - start: smbd ...
| /lib/rcscripts/sh/rc-daemon.sh: line 231: 15228 Aborted
| (core dumped) /sbin/start-stop-daemon '--start' '--quiet' '--exec'
| '/usr/sbin/smbd' '--' '-D'
|
|
|
| ~ * samba - start: nmbd ...
| /lib/rcscripts/sh/rc-daemon.sh: line 231: 15232 Aborted
| (core dumped) /sbin/start-stop-daemon '--start' '--quiet' '--exec'
| '/usr/sbin/nmbd' '--' '-D'
|
|
|
| ~ * Error: starting services (see system logs)
| ~ * samba - stop: smbd ...
|
|
| ~ * samba - stop: nmbd ...
|
|
| System logs give me this:
|
| May 29 20:40:26 exodus smbd[15228]: [2008/05/29 20:40:26, 0]
| lib/fault.c:fault_report(41)
| May 29 20:40:26 exodus smbd[15228]:
| ===
| May 29 20:40:26 exodus smbd[15228]: [2008/05/29 20:40:26, 0]
| lib/fault.c:fault_report(42)
| May 29 20:40:26 exodus smbd[15228]:   INTERNAL ERROR: Signal 11 in pid
| 15228 (3.0.28)
| May 29 20:40:26 exodus smbd[15228]:   Please read the Trouble-Shooting
| section of the Samba3-HOWTO
| May 29 20:40:26 exodus smbd[15228]: [2008/05/29 20:40:26, 0]
| lib/fault.c:fault_report(44)
| May 29 20:40:26 exodus smbd[15228]:
| May 29 20:40:26 exodus smbd[15228]:   From:
| http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
| May 29 20:40:26 exodus smbd[15228]: [2008/05/29 20:40:26, 0]
| lib/fault.c:fault_report(45)
| May 29 20:40:26 exodus smbd[15228]:
| ===
| May 29 20:40:26 exodus smbd[15228]: [2008/05/29 20:40:26, 0]
| lib/util.c:smb_panic(1633)
| May 29 20:40:26 exodus smbd[15228]:   PANIC (pid 15228): internal error
| May 29 20:40:26 exodus smbd[15228]: [2008/05/29 20:40:26, 0]
| lib/util.c:log_stack_trace(1737)
| May 29 20:40:26 exodus smbd[15228]:   BACKTRACE: 17 stack frames:
| May 29 20:40:26 exodus smbd[15228]:#0
| /usr/sbin/smbd(log_stack_trace+0x2e) [0x80219e1e]
| May 29 20:40:26 exodus smbd[15228]:#1 /usr/sbin/smbd(smb_panic+0x5e)
| [0x80219f4e]
| May 29 20:40:26 exodus smbd[15228]:#2 /usr/sbin/smbd [0x802049b0]
| May 29 20:40:26 exodus smbd[15228]:#3 [0xb7f59420]
| May 29 20:40:26 exodus smbd[15228]:#4 /lib/libc.so.6 [0xb7dbc3d1]
| May 29 20:40:26 exodus smbd[15228]:#5 /lib/libc.so.6(iconv+0x6c)
| [0xb7dbb9fc]
| May 29 20:40:26 exodus smbd[15228]:#6 /usr/sbin/smbd [0x802280d1]
| May 29 20:40:26 exodus smbd[15228]:#7 /usr/sbin/smbd(smb_iconv+0x51)
| [0x80227671]
| May 29 20:40:26 exodus smbd[15228]:#8 /usr/sbin/smbd [0x8020195f]
| May 29 20:40:26 exodus smbd[15228]:#9
| /usr/sbin/smbd(convert_string+0x2a9) [0x80202019]
| May 29 20:40:26 exodus smbd[15228]:#10
| /usr/sbin/smbd(init_doschar_table+0x92) [0x80215902]
| May 29 20:40:26 exodus smbd[15228]:#11
| /usr/sbin/smbd(init_iconv+0x11d) [0x802009cd]
| May 29 20:40:26 exodus smbd[15228]:#12 /usr/sbin/smbd(lp_load+0xe05)
| [0x80059df5]
| May 29 20:40:26 exodus smbd[15228]:#13
| /usr/sbin/smbd(reload_services+0xb0) [0x802d17c0]
| May 29 20:40:26 exodus smbd[15228]:#14 /usr/sbin/smbd(main+0x523)
| [0x802d2bb3]
| May 29 20:40:26 exodus smbd[15228]:#15
| /lib/libc.so.6(__libc_start_main+0xdc) [0xb7dbafdc]
| May 29 20:40:26 exodus smbd[15228]:#16 /usr/sbin/smbd [0x8004eba1]
| May 29 20:40:26 exodus smbd[15228]: [2008/05/29 20:40:26, 0]
| lib/fault.c:dump_core(181)
| May 29 20:40:26 exodus smbd[15228]:   dumping core in
| /var/log/samba/cores/smbd
| May 29 20:40:26 exodus smbd[15228]:
|
|
| I've run revdep-rebuild and check everything I can think of but samba
| just refuses to start. It was working fine 20 mins ago before the
update :(
|
| Any help greatly appreciated as I'm pretty stuck without samba
|
| Thanks in advance
|

Well i stuck strace on all the samba related binaries and found that it
was dumping just after reading /usr/lib/gconv/IBM850.so so I tried an
update of glibc and that seems to have fixed it. Strange that portage
didn't pull the latest glibc in as a dependancy.

- --
Matt Harrison
[EMAIL PROTECTED]
http://blog.genestate.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)

iEYEARECAAYFAkg/DDIACgkQxNZfa+YAUWGVFwCg3sc9O6iWvFpk58WGCmLVIIBW
cLAAn0c3kTShy33UZaBgmVzan7ggDIZs
=laMn
-END PGP SIGNATURE-
--
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Samba build problem after system update

2008-04-20 Thread Mateusz A. Mierzwiński

Hi!

I have problem with installing/updating couple apps after system update. 
After upgrading I've done revdep-rebuild (as usual) and everything is 
ok. I've try to emerge autoconfig but error also occurred. What should I 
do with this? Any suggestions?



* samba-3.0.28a.tar.gz RMD160 SHA1 SHA256 size ;-) ...   
[ ok ]
* checking ebuild checksums ;-) 
...  [ ok ]
* checking auxfile checksums ;-) 
... [ ok ]
* checking miscfile checksums ;-) 
...[ ok ]
* checking samba-3.0.28a.tar.gz ;-) 
...  [ ok ]

 Unpacking source...
 Unpacking samba-3.0.28a.tar.gz to 
/var/tmp/portage/net-fs/samba-3.0.28a/work
* Applying 3.0.26a-lazyldflags.patch 
... [ ok ]
* Applying 3.0.26a-invalid-free-fix.patch 
...[ ok ]
* Applying 3.0.28-libcap_detection.patch 
... [ ok ]
* Applying 3.0.28-fix_broken_readdir_detection.patch 
... [ ok ]
* Running autoconf -I. -Ilib/replace 
... [ !! ]


* Failed Running autoconf !
*
* Include in your bugreport the contents of:
*
*   /var/tmp/portage/net-fs/samba-3.0.28a/temp/autoconf-22578.out

*
* ERROR: net-fs/samba-3.0.28a failed.
* Call stack:
*   ebuild.sh, line   49:  Called src_unpack
* environment, line 3625:  Called eautoconf '-I.' 
'-Ilib/replace'
* environment, line 1276:  Called autotools_run_tool 
'autoconf' '-I.' '-Ilib/replace'

* environment, line  572:  Called die
* The specific snippet of code:
*   die Failed Running $1 !;
*  The die message:
*   Failed Running autoconf !
*
* If you need support, post the topmost build error, and the call stack 
if relevant.
* A complete build log is located at 
'/var/tmp/portage/net-fs/samba-3.0.28a/temp/build.log'.
* The ebuild environment file is located at 
'/var/tmp/portage/net-fs/samba-3.0.28a/temp/environment'.



Greet's
Mateusz M.

PS: Environment is not hardned, x86_64 architecture on Intel Core 2 Quad 
CPU.

--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Samba basics

2007-11-23 Thread Mick
On Thursday 22 November 2007, dexter wrote:
 Mick pisze:
  Thanks Stroller,
 
  On Thursday 22 November 2007, Stroller wrote:
  On 22 Nov 2007, at 08:43, Mick wrote:
  ...
 
  My experience is that stuff like this is not completely-obvious-to-
  newcomers in Samba, and I wouldn't rely on it working just like you
  might expect.
 
  Hmm, I know what you mean!  :)
 
  You might consider posting on the Samba mailing lists,
  which are quite busy.
 
  Thanks, I'll look into it.
 
  The Windows file manager still displays the
  (Linux) user home directory and a file called printers.  Is there a
  way of
  removing these two items from the Windows client view?
 
  The easy way to do this is to remove the [homes]  [printers]
  sections of your smb.conf (NOT smb.cfg, on my system), but of course
  that also prevents access to them.
 
  Is there a way to do this selectively for different users?  Some cannot
  be trusted to even look after their own linux home directories and
  leaving them visible will give rise to unnecessary queries.

 I remember that there is an option to include selective config files
 based on conditions - it's been some time since my last samba
 installation (a complex one) but it looked something like this

 include /etc/samba/hostname.cfg

 It's just of the to of my head, but You should get the idea, in the
 example above, if a host with certain hostname was connecting to samba
 server, a specific file was included.
 Unfortunatelly I don't remeber exact syntax, and tons of other things -
 I just suggest looking in this direction

Thank you all, I have most of it working now.  Commenting out [homes] made the 
users' home directories disappear.  The funny thing is that although I have 
commented out [printers], it is still visible in Windows Explorer.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


[gentoo-user] Samba basics

2007-11-22 Thread Mick
Hi All,

This should be easy to answer, but I have had zero experience with Samba so 
far and can't readily find the answer:

I have set up a Samba server for a small office and used 'browseable No' 
extensively in the smb.cfg file, to remove a lot of otherwise visible to the 
Windows clients directories.

This has worked but not enough:  The Windows file manager still displays the 
(Linux) user home directory and a file called printers.  Is there a way of 
removing these two items from the Windows client view?

These are the few relevant excerpts from the smb.cfg file:

# Date: 2007-09-22
[global]
workgroup = Hydrodynamiki
printing = cups
printcap name = cups
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = No
add machine script = /usr/sbin/useradd  -c 
Machine -d /var/lib/nobody -s /bin/false %m$
domain master = No
usershare max shares = 100

[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes

[users]
comment = All users
path = /home/
inherit acls = yes
veto files = /aquota.user/groups/shares/
valid users = geoz
browsable = No
case sensitive = no
strict locking = no
msdfs proxy = no

[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Samba basics

2007-11-22 Thread Stroller


On 22 Nov 2007, at 08:43, Mick wrote:

...
I have set up a Samba server for a small office and used  
'browseable No'
extensively in the smb.cfg file, to remove a lot of otherwise  
visible to the

Windows clients directories.


My experience is that stuff like this is not completely-obvious-to- 
newcomers in Samba, and I wouldn't rely on it working just like you  
might expect. You might consider posting on the Samba mailing lists,  
which are quite busy.



The Windows file manager still displays the
(Linux) user home directory and a file called printers.  Is there a  
way of

removing these two items from the Windows client view?


The easy way to do this is to remove the [homes]  [printers]  
sections of your smb.conf (NOT smb.cfg, on my system), but of course  
that also prevents access to them.


Stroller
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Samba basics

2007-11-22 Thread Mick
Thanks Stroller,

On Thursday 22 November 2007, Stroller wrote:
 On 22 Nov 2007, at 08:43, Mick wrote:
  ...

 My experience is that stuff like this is not completely-obvious-to-
 newcomers in Samba, and I wouldn't rely on it working just like you
 might expect. 

Hmm, I know what you mean!  :)

 You might consider posting on the Samba mailing lists, 
 which are quite busy.

Thanks, I'll look into it.

  The Windows file manager still displays the
  (Linux) user home directory and a file called printers.  Is there a
  way of
  removing these two items from the Windows client view?

 The easy way to do this is to remove the [homes]  [printers]
 sections of your smb.conf (NOT smb.cfg, on my system), but of course
 that also prevents access to them.

Is there a way to do this selectively for different users?  Some cannot be 
trusted to even look after their own linux home directories and leaving them 
visible will give rise to unnecessary queries.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Samba basics

2007-11-22 Thread Daniel da Veiga
On Nov 22, 2007 2:46 PM, Mick [EMAIL PROTECTED] wrote:
 Thanks Stroller,

 On Thursday 22 November 2007, Stroller wrote:
  On 22 Nov 2007, at 08:43, Mick wrote:
   ...

  My experience is that stuff like this is not completely-obvious-to-
  newcomers in Samba, and I wouldn't rely on it working just like you
  might expect.

 Hmm, I know what you mean!  :)

  You might consider posting on the Samba mailing lists,
  which are quite busy.

 Thanks, I'll look into it.

   The Windows file manager still displays the
   (Linux) user home directory and a file called printers.  Is there a
   way of
   removing these two items from the Windows client view?
 
  The easy way to do this is to remove the [homes]  [printers]
  sections of your smb.conf (NOT smb.cfg, on my system), but of course
  that also prevents access to them.

 Is there a way to do this selectively for different users?  Some cannot be
 trusted to even look after their own linux home directories and leaving them
 visible will give rise to unnecessary queries.

What I'll suggest is not directly related to your Samba config
problem. It is something I found very useful while setting up my own
samba server. I guess there's even a USE flag for it. Its SWAT, its a
web based management program to control Samba settings. It is very
useful and user-friendly.

You should give it a try.

-- 
Daniel da Veiga

Filosofia de TI: Programadores de verdade consideram o conceito o que
você vê é o que você tem tão ruim em editores de texto quanto em
mulheres. Não, o programador de verdade quer um editor de texto do
estilo você pediu, você levou - complicado, indecifrável, poderoso,
impiedoso, perigoso.
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Samba basics

2007-11-22 Thread Dan Farrell
On Thu, 22 Nov 2007 16:06:37 -0200
Daniel da Veiga [EMAIL PROTECTED] wrote:

 SWAT, its a
 web based management program to control Samba settings. It is very
 useful and user-friendly.
 
 You should give it a try.

++!  I am a config file editor generally, but samba is one of the 2
things I don't configure manually (the other being cups).  swat is much
easier.  
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Samba basics

2007-11-22 Thread dexter



Mick pisze:

Thanks Stroller,

On Thursday 22 November 2007, Stroller wrote:
  

On 22 Nov 2007, at 08:43, Mick wrote:


...
  


  

My experience is that stuff like this is not completely-obvious-to-
newcomers in Samba, and I wouldn't rely on it working just like you
might expect. 



Hmm, I know what you mean!  :)

  
You might consider posting on the Samba mailing lists, 
which are quite busy.



Thanks, I'll look into it.

  

The Windows file manager still displays the
(Linux) user home directory and a file called printers.  Is there a
way of
removing these two items from the Windows client view?
  

The easy way to do this is to remove the [homes]  [printers]
sections of your smb.conf (NOT smb.cfg, on my system), but of course
that also prevents access to them.



Is there a way to do this selectively for different users?  Some cannot be 
trusted to even look after their own linux home directories and leaving them 
visible will give rise to unnecessary queries.
  


I remember that there is an option to include selective config files 
based on conditions - it's been some time since my last samba 
installation (a complex one) but it looked something like this


include /etc/samba/hostname.cfg

It's just of the to of my head, but You should get the idea, in the 
example above, if a host with certain hostname was connecting to samba 
server, a specific file was included.
Unfortunatelly I don't remeber exact syntax, and tons of other things - 
I just suggest looking in this direction


regards
dexter
--
[EMAIL PROTECTED] mailing list



[gentoo-user] samba doesn't map to guest account

2007-05-08 Thread gummnmi-live
Hi list,

now after 6 hours non-stop trying to solve this issue I decided to contact the 
list!
I actually just want to mount an samba share as guest via mount -t cifs ..., 
but I alway get a mount error 13 = Permission denied.

I tried the following (and many else)

  mount -t cifs //172.16.0.3/ebooks /mnt/ebooks -o guest
  mount -t cifs //172.16.0.3/ebooks /mnt/ebooks -o 
user=someuser,password=somepass

(both also with the sec options none,ntlm,ntlmi,ntlmv2,ntlmv2i or smbfs instead 
of cifs) and always got mount error 13 = Permission denied. I just wanted 
samba to map me to the guest-account but it wouldn't


I then tried

  mount -t cifs //172.16.0.3/ebooks /mnt/ebooks -o 
user=realuser,password=realpass

(where realuser is a privileged user that really exists) and it worked!!


I also tried

  mount -t cifs //172.16.0.3/upload /mnt/ebooks -o guest

(where 'upload' has a force user/group option set. Look below in smb.conf) and 
it worked!! Yes, it mapped me to the right account!!


But no matter what I did SAMBA-WON'T-MAP-MY-ACCOUNT-TO-GUEST on other shares 
than upload!!!


Btw: I can connect with a windows-client and I can connect with smbclient and 
it works like a charm - which makes me much more confused ?:-(



Greetz,

M i c h a e l




CLIENT-SIDE:
gentoo 2.6.20-gentoo-r7
mount.cifs version: 1.10-3.0.24


SERVER-SIDE:
gentoo 2.6.19-gentoo-r5
samba v3.0.24

--- smb.conf ---
[global]
workgroup = GALLIA
netbios name = Asterix
server string = Asterix
log file = /var/log/samba/log.%m
log level = 3 passdb:10 auth:1 winbind:2
max log size = 50
hosts allow = 172.16.0. 192.168.
guest account = smbguest
map to guest = bad user
security = user
encrypt passwords = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no
hide dot files = no
domain master = no
domain logons = no
preferred master = no
oplocks = no
display charset = UTF-8
unix charset = UTF-8

[ebooks]
comment = eBook Directory
path = /samba/ebooks
public = yes
writeable = no
write list = @smbroot
force group = +smbroot
directory mask = 0775
create mask = 0664

[upload]
comment = Upload Directory
path = /samba/upload
public = yes
writeable = yes
force user = smbguest
force group = smbguest
directory mask = 0775
create mask = 0664

-- 



   
-
Kennt man wirklich jeden über 3 Ecken? Die Antworten gibt's bei Yahoo! Clever.

[gentoo-user] Samba ebuild problem

2006-12-16 Thread David Corbin
I'm getting this when I emerge samba. Is this an outright bug, or something 
wrong on 'my side'?

---snip---
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man 
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc 
--localstatedir=/var/lib --with-fhs --sysconfdir=/etc/samba 
--localstatedir=/var --with-configdir=/etc/samba --with-libdir=/usr/lib/samba 
--with-swatdir=/usr/share/doc/samba-3.0.14a-r2/swat 
--with-piddir=/var/run/samba --with-lockdir=/var/cache/samba 
--with-logfilebase=/var/log/samba --with-privatedir=/var/lib/samba/private 
--enable-static --enable-shared --with-smbmount --with-automount 
--with-libsmbclient --without-spinlocks --with-syslog --with-idmap 
--without-ldapsam --without-acl-support --enable-cups --without-krb5 
--without-ldap --with-python --with-readline --without-winbind --with-pam 
--with-pam_smbpass --without-quotas --without-sys-quotas --with-expsam=xml, 
--with-manpages-langs=en --build=i686-pc-linux-gnu
SAMBA VERSION: 3.0.14a
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ISO C89... none needed
./configure: line 3210: syntax error near unexpected token `;'
./configure: line 3210: `;'

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/samba-3.0.14a-r2/work/samba-3.0.14a/source/config.log

!!! ERROR: net-fs/samba-3.0.14a-r2 failed.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Samba ebuild problem

2006-12-16 Thread Boyd Stephen Smith Jr.
On Saturday 16 December 2006 06:44, David Corbin 
[EMAIL PROTECTED] wrote about '[gentoo-user] Samba ebuild 
problem':
 I'm getting this when I emerge samba. Is this an outright bug, or
 something wrong on 'my side'?

 ./configure: line 3210: syntax error near unexpected token `;'
 ./configure: line 3210: `;'

Looks like the configure script was generated incorrectly.  If you are 
using confcache, delete your cache and try again, if that still doesn't 
work, disable confcache and try again.  If you aren't using confcache, 
search for and, as needed, file a bug on b.g.o.

-- 
If there's one thing we've established over the years,
it's that the vast majority of our users don't have the slightest
clue what's best for them in terms of package stability.
-- Gentoo Developer Ciaran McCreesh


pgpqoySwQOnPi.pgp
Description: PGP signature


[gentoo-user] Samba and Hebrew File Names

2006-11-16 Thread David Harel

Hi,


I never could make Linux box use MS-XP files (NTFS) over samba when the 
file names are Hebrew.


open attempts of such file names results in failure (-1) and errno set 
to NOENT (standard message: No such file or directory).


My last attempt is with: 
http://www.iglu.org.il/faq/index.cgi?_recurse=1file=74#file_77


Unfortunately the command make_unicodemap is missing from the package 
(samba 3.0.20b is what I currently have)


I tried the mount with options codepage=cp862,iocharset=iso8859-8

and I have kernel configurations 2.6.17 with:

NLS_CODEPAGE_437

NLS_CODEPAGE_862

NLS_ISO8859_8

NLS_ISO8859_1 (only God knows why I keep this one)

NLS_UTF8

I don't know what more I can do (I'm loosing it).

--
Regards.

David Harel,

==

Home office +972 77 4422234
Fax:+972 77 4422234
Cellular:   +972 54 4534502
Snail Mail: Amuka
   D.N Merom Hagalil
   13802
   Israel
Email:  [EMAIL PROTECTED]


--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Samba and Hebrew File Names

2006-11-16 Thread Justin Frisch
Am Donnerstag 16 November 2006 21:34 schrieb David Harel:
 Hi,


 I never could make Linux box use MS-XP files (NTFS) over samba when the
 file names are Hebrew.

Heya,

I just tested this out really quick and encountered the same problem.  However 
I was able to mount everything without any problems using cifs instead of 
smbfs.  If you have that in your kernel then you can try it.

mount -t cifs -o user=username if required //system/mount /mount here

With WinXP on the otherside (or any newer samba also) you should not need to 
specify anything other than that above, however to get a better idea of what 
you can do with this you can check out the man page for mount.cifs. 
(man:/mount.cifs under konqueror or man mount.cifs from the commandline.)

Hope that helps you out in your quest.

Justin T
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] [samba] No write to linux shares

2006-08-25 Thread reader
I've posted this here because I know the advice on the samba list will
be to update to samba-3.0.23b  from previous posts there, however it
appears there is no ebuild for that in todays sync and I'm not
conversant enough with doing my own to update that way.

Further I'm guessing several people here are running samba-3.0.23a
without this write problem... so rather than argue with developers on
samba list who will just tell me to update and see if problem is still
there, I'm asking for help here from any savvy samba users running the
current build available on portage.

I'm able to see and navigate to the linux shares from a winxp box, but
not able to write to the share.  I've defined the share to have write
abiltity like this in smb.conf:

 [smWinBk]
   comment = 
   valid users = reader Harry
   path = /anex2/win_bk/
   writeable = yes
   guest ok = yes


The log from an attempt to write to the above share shows there is no
write priviledge:

(I'm not sure where the log actually starts for this attempt but will
include a few lines showing the Write=no- (Samba logs are basically
unintelligable far as I can tell))

The line  of note is marked off with asterisks and I've included one
before and after.  Following the write info line, and dozens of lines
further along we finally see the denial, also marked off with
asterisks. 

I've opened a text file named AlienSkin.txt and attempted to alter its
contents using a winxp editor and working from a winxp box.

Can anyone here tell me what might be causing the write failure?  I
see no evidence of authentication or password problems so guessing
that isn't an issue here.



[2006/08/25 11:04:42, 3] smbd/dosmode.c:unix_mode(147)
  unix_mode(AlienSkin.txt) returning 0744

***
[2006/08/25 11:04:42, 2] smbd/open.c:open_file(352)
  Harry opened file AlienSkin.txt read=Yes write=No (numopen=1)
***

[2006/08/25 11:04:42, 3] smbd/oplock_linux.c:linux_set_kernel_oplock(167)
  linux_set_kernel_oplock: got kernel oplock on file AlienSkin.txt, dev = 308, 
inode = 3989, file_id = 1

 [...] snipped about 65 lines

[2006/08/25 11:04:48, 3] smbd/dosmode.c:unix_mode(147)
  unix_mode(AlienSkin.txt) returning 0744

*
[2006/08/25 11:04:48, 3] smbd/open.c:open_file(278)
  Error opening file AlienSkin.txt (Permission denied) (local_flags=2) (flags=2)
[2006/08/25 11:04:48, 3] smbd/error.c:unix_error_packet(90)
  unix_error_packet: error string = Permission denied


[2006/08/25 11:04:48, 3] smbd/error.c:error_packet(146)
  error packet at smbd/trans2.c(2682) cmd=162 (SMBntcreateX) 
NT_STATUS_ACCESS_DENIED





-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] [samba] No write to linux shares

2006-08-25 Thread Ryan Tandy

[EMAIL PROTECTED] wrote:

 [smWinBk]
   comment = 
   valid users = reader Harry
   path = /anex2/win_bk/
   writeable = yes
   guest ok = yes


Are you being logged in as a guest for some reason?  Try with guest ok 
= no and see if anything changes.  Don't forget to double check the 
local (unix) permissions on the share folder too.

--
gentoo-user@gentoo.org mailing list



[gentoo-user] samba log hell

2006-08-11 Thread reader
I'm having a time getting samba working after having it working for
mnths.  I did do a major update world.  At the end when adjusting
files under /etc/  I rejected the new smb.conf keeping my old config
which is still in place.

It seems something has suddenly chagned whereby I cannot access any
linux shares from windows.

Attempting to get some details of the failure from the logs seem
fruitless since the log output is literally huge and nothing stands
out with big letters `error'.

I'm just not prepared to understand 670 lines of output for one
connection attempt.

And that is with `log level' cranked down to 3.

The following area seems to be important but even this small chunk
defies understanding far as I can see:

The `Sid' lines seem to be telling something but who knows what.  Then
finally it shows a ACCESS_DENIED.

reader and Harry are the only two authorized users
What provoked this piece of log is an attempt from machine `harvey' to
login to samba share on machine `reader'.  The incoming user is also
`reader'.

[...]
[2006/08/11 13:38:11, 3] lib/util_sid.c:string_to_sid(223)
  string_to_sid: Sid reader does not start with 'S-'.
[2006/08/11 13:38:11, 3] lib/util_sid.c:string_to_sid(223)
  string_to_sid: Sid Harry does not start with 'S-'.
[2006/08/11 13:38:11, 3] smbd/sec_ctx.c:push_sec_ctx(208)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2006/08/11 13:38:11, 3] smbd/uid.c:push_conn_ctx(345)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2006/08/11 13:38:11, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2006/08/11 13:38:11, 3] smbd/sec_ctx.c:pop_sec_ctx(339)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2006/08/11 13:38:11, 3] smbd/sec_ctx.c:push_sec_ctx(208)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2006/08/11 13:38:11, 3] smbd/uid.c:push_conn_ctx(345)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2006/08/11 13:38:11, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2006/08/11 13:38:11, 3] smbd/sec_ctx.c:pop_sec_ctx(339)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2006/08/11 13:38:11, 2] smbd/service.c:make_connection_snum(571)
  user 'reader' (from session setup) not permitted to access this share 
(smReader)
[2006/08/11 13:38:11, 3] smbd/error.c:error_packet(146)
  error packet at smbd/reply.c(676) cmd=117 (SMBtconX) NT_STATUS_ACCESS_DENIED
[2006/08/11 13:38:11, 3] smbd/process.c:process_smb(1110)
  Transaction 4 of length 43
[2006/08/11 13:38:11, 3] smbd/process.c:switch_message(914)
  switch message SMBulogoffX (pid 4834) conn 0x0
[2006/08/11 13:38:11, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2006/08/11 13:38:11, 3] smbd/reply.c:reply_ulogoffX(1618)
  ulogoffX vuid=101
[2006/08/11 13:38:11, 3] smbd/process.c:timeout_processing(1359)
  timeout_processing: End of file from client (client has disconnected).
[2006/08/11 13:38:11, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2006/08/11 13:38:11, 3] smbd/connection.c:yield_connection(69)
  Yielding connection to 
[2006/08/11 13:38:11, 3] smbd/server.c:exit_server_common(675)
  Server exit (normal exit)
[2006/08/11 13:38:11, 3] auth/auth.c:check_ntlm_password(221)
  check_ntlm_password:  Checking password for unmapped user [EMAIL PROTECTED] 
with the new password interface

[...]

Then about 60 more lines and I see:

[2006/08/11 14:05:19, 3] auth/auth.c:check_ntlm_password(270)
  check_ntlm_password: sam authentication for user [reader] succeeded

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] samba log hell

2006-08-11 Thread Richard Fish

On 8/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

I'm having a time getting samba working after having it working for
mnths.  I did do a major update world.  At the end when adjusting
files under /etc/  I rejected the new smb.conf keeping my old config
which is still in place.


That was probably a mistake...my experience with the samba ebuild is
that it doesn't want to install it's own private copy of the
configuration, but a modified version of the existing config.  So it
is usually an indicator that something important has changed in the
configuration.


[2006/08/11 13:38:11, 2] smbd/service.c:make_connection_snum(571)
  user 'reader' (from session setup) not permitted to access this share 
(smReader)
[2006/08/11 13:38:11, 3] smbd/error.c:error_packet(146)
  error packet at smbd/reply.c(676) cmd=117 (SMBtconX) NT_STATUS_ACCESS_DENIED


My interpretation of this is that the authentication part went fine,
but this user is not allowed to access the share.  I think we'll need
to see your smb.conf file to make sense of this.  It would also help
to know what version of samba you are running, and what use flags you
merged it with.

-Richard
--
gentoo-user@gentoo.org mailing list



[gentoo-user] samba + ldap + script php

2006-08-09 Thread Leandro Melo de Sales

Hi... I wrote a php script to add users on a LDAP directory. I setup
samba to auth against this directory. If I use smbldap-useradd, samba
authenticate the user, but if I use my script not! My script set all
attributes exactly like smbldap-useradd. What I am missing?

[]s
Leandro.
--
gentoo-user@gentoo.org mailing list



[gentoo-user] samba re-emerge everyday

2006-07-24 Thread Michael W. Holdeman

Everyday I have to re-emerge samba on my laptop to get it to work.
After emerging it it starts and works fine..


nmbd.log is here:

  Samba server CHIEFNB is now a domain master browser for workgroup PTFD on 
subnet UNICAST_SUBNET
  
  *
[2006/07/24 09:03:37, 0] 
nmbd/nmbd_become_dmb.c:become_domain_master_browser_bcast(282)
  become_domain_master_browser_bcast:
  Attempting to become domain master browser on workgroup PTFD on subnet 
192.168.14.102
[2006/07/24 09:03:37, 0] 
nmbd/nmbd_become_dmb.c:become_domain_master_browser_bcast(295)
  become_domain_master_browser_bcast: querying subnet 192.168.14.102 for 
domain master browser on workgroup PTFD
[2006/07/24 09:03:38, 0] 
nmbd/nmbd_become_dmb.c:become_domain_master_query_success(225)
  become_domain_master_query_success:
  There is already a domain master browser at IP 192.168.14.14 for workgroup 
PTFD registered on subnet 192.168.14.102.
[2006/07/24 10:10:03, 0] nmbd/nmbd.c:terminate(58)
  Got SIGTERM: going down...
[2006/07/24 11:22:05, 0] nmbd/nmbd.c:main(727)
  Netbios nameserver version 3.0.22 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
[2006/07/24 11:22:05, 0] nmbd/asyncdns.c:start_async_dns(151)
  started asyncdns process 10090
[2006/07/24 11:22:15, 0] lib/fault.c:fault_report(36)
  ===
[2006/07/24 11:22:15, 0] lib/fault.c:fault_report(37)
  INTERNAL ERROR: Signal 11 in pid 10089 (3.0.22)
  Please read the Trouble-Shooting section of the Samba3-HOWTO
[2006/07/24 11:22:15, 0] lib/fault.c:fault_report(39)
  
  From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
[2006/07/24 11:22:15, 0] lib/fault.c:fault_report(40)
  ===
[2006/07/24 11:22:15, 0] lib/util.c:smb_panic2(1554)
  PANIC: internal error
[2006/07/24 11:22:15, 0] lib/util.c:smb_panic2(1562)
  BACKTRACE: 2 stack frames:
   #0 /usr/sbin/nmbd(smb_panic2+0x8c) [0x800a7e04]
   #1 /usr/sbin/nmbd [0x800ea57b]



-- 
 
Michael W. Holdeman



Powered by Gentoo Linux www.gentoo.org  |
Kernel 2.6.15-ck2   |
VMWare Workstation 5.5.1 vmware.com |
Win4LinPro 6.1.1-03 win4lin.com |
|
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Samba install fails

2006-07-05 Thread Paul Stear
Hi all,
emerging samba results in the following error:-
!!! ERROR: net-fs/samba-3.0.22-r2 failed.
Call stack:
  ebuild.sh, line 1545:   Called dyn_compile
  ebuild.sh, line 940:   Called src_compile
  samba-3.0.22-r2.ebuild, line 104:   Called 
econf '--with-fhs' '--sysconfdir=/etc/samba' '--localstatedir=/var' '--with
-configdir=/etc/samba' '--with-libdir=/usr/lib/samba' '--with-swatdir=/usr
/share/doc/samba-3.0.22-r2/swat' '--with-piddir=/var/run/samba' '--with
-lockdir=/var/cache/samba' '--with-logfilebase=/var/log/samba' '--with-
privatedir=/var/lib/samba/private' '--with-libsmbclient' '--without-
spinlocks' '--with-acl-support' '--without-aio-support' '--without-a
utomount' '--enable-cups' '--without-krb5' '--with-pam' '--with-
pam_smbpass' '--with-python' '--without-quotas' '--without-sys-
quotas' '--with-readline' '--with-smbmount' '--without-syslog' '--
with-expsam=mysql,' '--with-manpages-langs=en' '--without-ldapsam'
  ebuild.sh, line 541:   Called die

!!! econf failed
I am using ~x86
Portage 2.1.1_pre2-r2 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, 
glibc-2.4-r3, 2.6.17-gentoo-r1 i686)

Paul
-- 
This message has been sent using kmail with gentoo linux
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] samba and cups

2006-06-07 Thread Shaochun Wang
I can use smbclient to print, but I can't use cups to
add the samba printer to print. It always display the 
following information:

Unable to connect to CIFS host after (tried 3 times)

Any suggestion?

-- 
Shaochun Wang(王绍春) [EMAIL PROTECTED]

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] samba mount on fstab

2006-05-23 Thread Allan Spagnol Comar

Hi all,

I am trying to let a samba mount on my fstab withopu success,
I got :
//csdc/EngSoftware  /mnt/engsoftsmbfs
username=commodity\\allan,noauto0 0

ont fstab, if I try to mount /mnt/engsoft, it asks the password and
could not complit the mount.
if I do mount -t smbfs -o username=commodity\\allan //csdc/EngSoftware
/mnt/engsoft it ask for the password and works.

I have I done wrong, or what Can I make to lets this work better.

Thanks, Allan

--
An application asked:
Requeires Windows 9x, NT4 or better,
so I´ve installed Linux

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] samba mount on fstab

2006-05-23 Thread Norman Rieß
 Hi all,

 I am trying to let a samba mount on my fstab withopu success,
 I got :
 //csdc/EngSoftware  /mnt/engsoftsmbfs
 username=commodity\\allan,noauto0 0

 ont fstab, if I try to mount /mnt/engsoft, it asks the password and
 could not complit the mount.
 if I do mount -t smbfs -o username=commodity\\allan //csdc/EngSoftware
 /mnt/engsoft it ask for the password and works.

 I have I done wrong, or what Can I make to lets this work better.

 Thanks, Allan



You can set a password in the fstab.
I use this:

//192.168.0.2/Temp  /mnt/temp   smbfs
user,uid=smash,gid=users,password=  0 0

Works fine here.
Perhaps not the cleanest way.

Norman

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] samba mount on fstab

2006-05-23 Thread Allan Spagnol Comar

no, it doesn´t work, any more clues ?

On 5/23/06, Norman Rieß [EMAIL PROTECTED] wrote:

 Hi all,

 I am trying to let a samba mount on my fstab withopu success,
 I got :
 //csdc/EngSoftware  /mnt/engsoftsmbfs
 username=commodity\\allan,noauto0 0

 ont fstab, if I try to mount /mnt/engsoft, it asks the password and
 could not complit the mount.
 if I do mount -t smbfs -o username=commodity\\allan //csdc/EngSoftware
 /mnt/engsoft it ask for the password and works.

 I have I done wrong, or what Can I make to lets this work better.

 Thanks, Allan



You can set a password in the fstab.
I use this:

//192.168.0.2/Temp  /mnt/temp   smbfs
user,uid=smash,gid=users,password=  0 0

Works fine here.
Perhaps not the cleanest way.

Norman

--
gentoo-user@gentoo.org mailing list





--
An application asked:
Requeires Windows 9x, NT4 or better,
so I´ve installed Linux

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] samba mount on fstab

2006-05-23 Thread Richard Fish

On 5/23/06, Allan Spagnol Comar [EMAIL PROTECTED] wrote:

//csdc/EngSoftware  /mnt/engsoftsmbfs
username=commodity\\allan,noauto0 0


I do not think you need \\ here.  You only need this when running on
the command line since bash interprets '\' as an escape character, so
you need '\\' to get a single '\;.  In fstab, try commodity\allan

Remember:

# echo \\
\

Also, cifs is better to use unless you are trying to mount something from Win95.

-Richard

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] samba mount on fstab

2006-05-23 Thread Richard Fish

On 5/23/06, Richard Fish [EMAIL PROTECTED] wrote:

Also, cifs is better to use unless you are trying to mount something from Win95.


Oh, and checking the cifs man page (man 8 mount.cifs), the option would be:

user=commodity/allan

HTH,
-Richard

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] samba mount on fstab

2006-05-23 Thread Allan Spagnol Comar

nice, the bar thing solved the problem with samba, I had never used
cifs, is it better ? in what things it is better then smbfs ?

thanks all for the atention, Allan

On 5/23/06, Richard Fish [EMAIL PROTECTED] wrote:

On 5/23/06, Allan Spagnol Comar [EMAIL PROTECTED] wrote:
 //csdc/EngSoftware  /mnt/engsoftsmbfs
 username=commodity\\allan,noauto0 0

I do not think you need \\ here.  You only need this when running on
the command line since bash interprets '\' as an escape character, so
you need '\\' to get a single '\;.  In fstab, try commodity\allan

Remember:

# echo \\
\

Also, cifs is better to use unless you are trying to mount something from Win95.

-Richard

--
gentoo-user@gentoo.org mailing list





--
An application asked:
Requeires Windows 9x, NT4 or better,
so I´ve installed Linux

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] samba mount on fstab

2006-05-23 Thread Richard Fish

On 5/23/06, Allan Spagnol Comar [EMAIL PROTECTED] wrote:

nice, the bar thing solved the problem with samba, I had never used
cifs, is it better ? in what things it is better then smbfs ?


Among other things, it supports files 2G (or is it 4G?).


From /usr/src/linux/Documentation/filesystems/cifs.txt:


 This is the client VFS module for the Common Internet File System
 (CIFS) protocol which is the successor to the Server Message Block
 (SMB) protocol, the native file sharing mechanism for most early
 PC operating systems.  CIFS is fully supported by current network
 file servers such as Windows 2000, Windows 2003 (including
 Windows XP) as well by Samba (which provides excellent CIFS
 server support for Linux and many other operating systems)
 snip
 The intent of this module is to provide the most advanced network
 file system function for CIFS compliant servers, including better
 POSIX compliance, secure per-user session establishment, high
 performance safe distributed caching (oplock), optional packet
 signing, large files, Unicode support and other internationalization
 improvements.

In fact I read on lwn.net that smbfs may be officially deprecated
soon...possibly in 2.6.18.

-Richard

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] samba mount on fstab

2006-05-23 Thread Allan Spagnol Comar

thanks for the explanation. And what about samba project ? it doesn´t use SMB ?


On 5/23/06, Richard Fish [EMAIL PROTECTED] wrote:

On 5/23/06, Allan Spagnol Comar [EMAIL PROTECTED] wrote:
 nice, the bar thing solved the problem with samba, I had never used
 cifs, is it better ? in what things it is better then smbfs ?

Among other things, it supports files 2G (or is it 4G?).

From /usr/src/linux/Documentation/filesystems/cifs.txt:

  This is the client VFS module for the Common Internet File System
  (CIFS) protocol which is the successor to the Server Message Block
  (SMB) protocol, the native file sharing mechanism for most early
  PC operating systems.  CIFS is fully supported by current network
  file servers such as Windows 2000, Windows 2003 (including
  Windows XP) as well by Samba (which provides excellent CIFS
  server support for Linux and many other operating systems)
  snip
  The intent of this module is to provide the most advanced network
  file system function for CIFS compliant servers, including better
  POSIX compliance, secure per-user session establishment, high
  performance safe distributed caching (oplock), optional packet
  signing, large files, Unicode support and other internationalization
  improvements.

In fact I read on lwn.net that smbfs may be officially deprecated
soon...possibly in 2.6.18.

-Richard

--
gentoo-user@gentoo.org mailing list





--
An application asked:
Requeires Windows 9x, NT4 or better,
so I´ve installed Linux

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] samba mount on fstab

2006-05-23 Thread Norman Rieß

Allan Spagnol Comar schrieb:


no, it doesn´t work, any more clues ?


Well you could tell, what exactly does not work, as it works fine with me.
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] samba mount on fstab

2006-05-23 Thread Allan Spagnol Comar

hi norman, the problem was the two bars at the
username=commodity\\allan changed to commodity\allan solved the
problem 
thanks.

On 5/23/06, Norman Rieß [EMAIL PROTECTED] wrote:

Allan Spagnol Comar schrieb:

 no, it doesn´t work, any more clues ?

Well you could tell, what exactly does not work, as it works fine with me.
--
gentoo-user@gentoo.org mailing list





--
An application asked:
Requeires Windows 9x, NT4 or better,
so I´ve installed Linux

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] samba mount on fstab

2006-05-23 Thread Richard Fish

On 5/23/06, Allan Spagnol Comar [EMAIL PROTECTED] wrote:

thanks for the explanation. And what about samba project ? it doesn´t use SMB ?


It will speak SMB, but nowadays it prefers CIFS.

-Richard

--
gentoo-user@gentoo.org mailing list



[gentoo-user] Samba setup, I dunno what to do here. :\

2006-04-08 Thread Teresa and Dale
Hi,

I have a little network here.  We have a cable modem that connects to a
Linksys router then we have two computers that hook to it and share the
internet.  I have my Gentoo Linux box that I just installed samba on. 
She has a Windoze XP box.  I think I have my samba set up, not real sure
though, but I can not figure out the windoze box.  I can ping the IP
address of her windoze box from my Linux box, no clue on how to do that
on her windoze box so I assume it can see my box too. 

Can someone hold my hand and get this so I can get this to work?  She
seems to get hers pretty buggy and not boot and I just want to set it up
so that she can drop her Documents folder on my system each night for a
back-up.  Sorry windoze, you suck.  LOL

Oh, the router uses DHCP so how do I let it figure out what the address
is?  In case you can not tell, this is all new to me.  Here is the
testparm thing, I did read what I could understand at least:

 [EMAIL PROTECTED] / # testparm
 Load smb config files from /etc/samba/smb.conf
 WARNING: The printer admin option is deprecated
 Processing section [homes]
 Processing section [printers]
 Processing section [print$]
 Processing section [DATA]
 Loaded services file OK.
 WARNING: passdb expand explicit = yes is deprecated
 Warning: Service printers defines a print command, but print command
 parameter is ignored when using CUPS libraries.
 Server role: ROLE_STANDALONE
 Press enter to see a dump of your service definitions

 [global]
 server string = Samba Server %v
 map to guest = Bad User
 log file = /var/log/samba/log.%m
 max log size = 50
 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
 printcap name = cups
 dns proxy = No
 printer admin = @adm

 [homes]
 comment = Home Directories
 read only = No
 browseable = No

 [printers]
 comment = All Printers
 path = /var/spool/samba
 create mask = 0700
 guest ok = Yes
 printable = Yes
 print command = lpr-cups -P %p -o raw %s -r   # using client
 side printer drivers.
 browseable = No

 [print$]
 path = /var/lib/samba/printers
 write list = @adm, root
 guest ok = Yes

 [DATA]
 path = /mnt/data/
 guest ok = Yes
 case sensitive = No
 hide unreadable = Yes
 veto files = Donna-windoze/
 hide files = Donna-windoze/
 veto oplock files = Donna-windoze/
 msdfs proxy = no
 [EMAIL PROTECTED] / #  


What I am trying to share is /mnt/data/.  Not sure what that other stuff is.

Oh, if this will work in IE, that would be a HUGE plus.  She still uses
that thing.   pukes   I'm also not sure what to type into IE to get to
my box either. 

Thanks for any help you can provide.  I was following a how to but I
think I got lost, hopefully just on the windoze part.

Dale
:-)

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Samba setup, I dunno what to do here. :\

2006-04-08 Thread Ryan Tandy

Teresa and Dale wrote:

Hi,

I have a little network here.  We have a cable modem that connects to a
Linksys router then we have two computers that hook to it and share the
internet.  I have my Gentoo Linux box that I just installed samba on. 
She has a Windoze XP box.  I think I have my samba set up, not real sure

though, but I can not figure out the windoze box.  I can ping the IP
address of her windoze box from my Linux box, no clue on how to do that
on her windoze box so I assume it can see my box too. 
  
Windows 2000 and XP both have a number of  UNIX-like network commands 
that you'd be familiar with, such as nslookup and ping - even ipconfig 
(similar to ifconfig).  The options are slightly different though - ping 
/? should help you out.


If you have Samba set up correctly, Windows is effectively zero-conf 
aside from making sure you know what workgroup it thinks it's in.  The 
samba machine will show up in Windows' My Network Places.


snip

Oh, the router uses DHCP so how do I let it figure out what the address
is?
Set your samba up as a WINS (Windows name resolution) server with the 
option wins support = 1 under [global] (AFAIR ;).  The Windows box will 
now be able to lookup your Gentoo box by the netbios name you assigned it.

In case you can not tell, this is all new to me.  Here is the
testparm thing, I did read what I could understand at least:
Let me guess, copied and pasted from some tutorial without really 
looking at it?  ;)  Don't worry, that's a fine place to start.  However, 
if all you really need to share is /mnt/data, you have *way* more stuff 
in here than you actually need.

[EMAIL PROTECTED] / # testparm
Load smb config files from /etc/samba/smb.conf
WARNING: The printer admin option is deprecated

No need to keep deprecated options - man smb.conf can tell you if 
there's new replacements.


snip

WARNING: passdb expand explicit = yes is deprecated


ditto.

Warning: Service printers defines a print command, but print command
parameter is ignored when using CUPS libraries.


...meaning the 'print command' line doesn't need to be in there.

Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
server string = Samba Server %v
map to guest = Bad User
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = cups
dns proxy = No
printer admin = @adm

If you don't plan to use the box as a print server, any and all printer 
stuff can be removed, including both print* sections.  Specialized 
socket options shouldn't be necessary in most typical home setups.  I 
don't know what the 'dns proxy' option does exactly, but I'm fairly sure 
you don't need it.  You should have in here a 'workgroup' entry matching 
the workgroup the Windows machine thinks it's part of.  You also don't 
have a 'security =' line defining the security model to use.  I don't 
remember what the default is.

[homes]
comment = Home Directories
read only = No
browseable = No


Not needed if you're only sharing one directory.

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r   # using client
side printer drivers.
browseable = No

[print$]
path = /var/lib/samba/printers
write list = @adm, root
guest ok = Yes


Not needed if you aren't a print server.

[DATA]
path = /mnt/data/
guest ok = Yes
case sensitive = No
hide unreadable = Yes
veto files = Donna-windoze/
hide files = Donna-windoze/
veto oplock files = Donna-windoze/
msdfs proxy = no
[EMAIL PROTECTED] / #
What *is* all this stuff? O_o  The first two lines make sense, the third 
one somewhat (I personally recommend case sensitivity, but it's up to 
you.)  No idea what the rest of them do.  What you don't have that you 
need is either 'writeable = yes' or 'read only = no' so that the Windows 
machine can store its data in here.  Also, you have 'guest ok = yes' and 
no valid users specified, so *any* user



OK, it's now a few minutes later and I've looked these up in man 
smb.conf.  You don't want the msdfs proxy option, since you don't have a 
DFS going (as far as I can tell).  Hide unreadable makes some sense - I 
might start using it myself.  On these other hand, why would you want to 
hide the very files she's supposed to be accessing?  Even sillier with 
the vetoing - now she can't access them at all!  In other words, what 
you have here is a partition with all files *whose path contains* 
'Donna-windoze' hidden, everyone prevented from accessing (writing *or* 
reading) them, and then hidden again because of this.  Since you don't 
have oplocks disabled for the share, the 'veto oplock files' also 

[gentoo-user] samba 3.0.21b issue

2006-03-20 Thread Covington, Chris
Hi all,

For some reason I can't get net-fs/samba-3.0.21b in an W2K3 AD domain 
to work properly unless I totally reboot the system.  Stopping and
restarting samba doesn't help.  Without a reboot I get these
errors:

[2006/03/20 15:31:39, 1] smbd/sesssetup.c:reply_spnego_kerberos(286)
  Username CORP\CAREEROFEVIL$ is invalid on this system
[2006/03/20 15:31:39, 1] smbd/sesssetup.c:reply_spnego_kerberos(286)
  Username CORP\CAREEROFEVIL$ is invalid on this system
[2006/03/20 15:31:52, 1] smbd/sesssetup.c:reply_spnego_kerberos(286)
  Username CORP\CAREEROFEVIL$ is invalid on this system
[2006/03/20 15:31:52, 1] smbd/sesssetup.c:reply_spnego_kerberos(286)
  Username CORP\CAREEROFEVIL$ is invalid on this system
[2006/03/20 15:29:02, 1] smbd/sesssetup.c:reply_spnego_kerberos(180)
  Failed to verify incoming ticket!
[2006/03/20 15:29:10, 1] smbd/sesssetup.c:reply_spnego_kerberos(180)
  Failed to verify incoming ticket!
[2006/03/20 15:29:11, 1] smbd/sesssetup.c:reply_spnego_kerberos(180)
  Failed to verify incoming ticket!

After an emerge the following etc-updates need attention:

1) /etc/pam.d/samba
/etc/pam.d/._cfg_samba
2) /etc/openldap/schema/samba.schema
/etc/openldap/schema/._cfg_samba.schema
3) /etc/samba/smb.conf.example
/etc/samba/._cfg_smb.conf.example

Which I replace with the new versions. 

I'd like to upgrade samba on some of my servers without actually
rebooting them.  How can I do this?

thanks
---
Chris Covington
IT
Plus One Health Management
75 Maiden Lane Suite 801
NY, NY 10038
646-312-6269
http://www.plusoneactive.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] samba help

2006-03-06 Thread Iain Buchanan
On Mon, 2006-03-06 at 10:52 -0500, Michael W. Holdeman wrote:
 I have a wireless card in my laptop,
 192.168.14.102.
[snip]
 Now I have the necessity to use ap's that are set-up to use 
 192.168.0.nn series ip addresses, so therefore samba does not work properly 
 to share those disk drives.

As far as I remember, samba should be able to talk on all your
interfaces.  In fact, I don't think it binds to any particular one by
default.

Have a look at your smb help under bind interfaces only and
interfaces.

 By default Samba will query the kernel for the list of all active
interfaces  and  use  any  interfaces except 127.0.0.1 that are
broadcast capable.

For me, samba listens on all my interfaces and aliases by default.  I
use iptables to block some interfaces.

Let us know how it goes,
-- 
Iain Buchanan iain at netspace dot net dot au

He asked me if I knew what time it was -- I said yes, but not right now.
-- Steven Wright

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Samba !

2006-01-06 Thread brunogola
Good morning ( in brazil ) guys :-)

I know that here is not the best place to ask this, but i dont know where to 
find information about my dout.

I have a machine running linux, and i'm authenticating  in a windows 2000 
domain (Active directory) using
samba, winbind and kerberos. What i need to know is if there is a way of making 
some other machines
authenticate in this machine, and this machine will ask the password for the 
windows 2000 domain (only for some
users, and the user need to be in the /etc/passwd). Let me explain: i have a 
user 'bob' that is not a user in
the domain, but it has your username and password on my linux machine, so he 
can authenticate. I have a user
bgola who has the username on the AD and on the linux machine, but the password 
isnt on the linux machine, only
on  the AD. He can authenticate too.
Resuming: my linux machine will use the username database from its own but the 
password database from its own
AND from the AD.

Does anyone know if its possible? I saw something about password server @ the 
smb.conf but i dont have ideia of
how it works.

Thanks any awnser and sorry my bad english, i'm trying to learn :-)!

Bruno Gola


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Samba !

2006-01-06 Thread Stroller


On 6 Jan 2006, at 12:32, brunogola wrote:


I have a machine running linux, and i'm authenticating  in a  
windows 2000 domain (Active directory) using

samba, winbind and kerberos.


Hi there,

I've done some of this recently, and I don't think you need active  
directory, winbind AND kerberos. My understanding is that all three  
are separate mechanisms for authenticating *nix users against a  
Windows domain.


Active directory is MS's name for LDAP, so if you use that then your  
applications would be compiled using the LDAP USE flag  would treat  
the MS server as an LDAP server. I don't believe its schema's are  
terribly good for *nix users - I use Winbind, which uses PAM to  
appear part of the local authentication process and pass these on to  
the Windows DC.



What i need to know is if there is a way of making some other machines
authenticate in this machine, and this machine will ask the  
password for the windows 2000 domain (only for some

users, and the user need to be in the /etc/passwd).


It would be helpful if you gave an example of which programs /  
services on which machines (A, B and C??) you need to be able  
authenticate in this way.



Let me explain: i have a user 'bob' that is not a user in
the domain, but it has your username and password on my linux  
machine, so he can authenticate. I have a user
bgola who has the username on the AD and on the linux machine, but  
the password isnt on the linux machine, only

on  the AD. He can authenticate too.
Resuming: my linux machine will use the username database from its  
own but the password database from its own

AND from the AD.


I believe that in this situation it would be unusual to give the  
bgola a username on the Linux machine - he has one on the AD, so if  
you use Winbind then he doesn't need one on the Linux box. He can  
have a homedir, since he may need to store files on the Linux box,  
but that's not the same, I think, as having an account.


For instance on my Linux/Winbind machine on an AD:

$ getent passwd | grep -e stroller -e ned
stroller:x:1000:100::/home/stroller:/bin/bash
ned:x:10012:1:Some Geezer:/home/DOMAIN/ned:/bin/false
$ grep -e stroller -e ned /etc/passwd
stroller:x:1000:100::/home/stroller:/bin/bash
$ ls -ld ~stroller ~ned
drwxr-xr-x  3 ned domain users 160 Jan  6 06:32 /home/DOMAIN/ned
drwxr-xr-x  5 stroller   users272 Jan  6 03:58 /home/stroller

Both users can authenticate, depending on how the /etc/pam.d/ 
the_authenticating_service is set up. I use pam_mkhomedir.so to  
create a home directory for any users authenticating via Winbind, but  
beware this only works for services which call PAM session directives.


I used this guide to set it all up: http://www.samba.org/samba/docs/ 
man/Samba-HOWTO-Collection/winbind.html#id2621482


Please CC me should you reply to the list with further questions,

Stroller.


--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Samba !

2006-01-06 Thread brunogola
Thanks for your help, i'll try to explain a little better what i've already 
have and what i wanna do :-)

 
 On 6 Jan 2006, at 12:32, brunogola wrote:
 
  I have a machine running linux, and i'm authenticating  in a  
  windows 2000 domain (Active directory) using
  samba, winbind and kerberos.
 
 Hi there,
 
 I've done some of this recently, and I don't think you need active  
 directory, winbind AND kerberos. My understanding is that all three  
 are separate mechanisms for authenticating *nix users against a  
 Windows domain.
 
 Active directory is MS's name for LDAP, so if you use that then your  
 applications would be compiled using the LDAP USE flag  would treat  
 the MS server as an LDAP server. I don't believe its schema's are  
 terribly good for *nix users - I use Winbind, which uses PAM to  
 appear part of the local authentication process and pass these on to  
 the Windows DC.
 

My notebook running linux is already authenticating against the win. domain 
(AD). I've done this using samba,
kerberos5 and winbind (pam modules etc), thats woring perfectly :-)

Now, what i need : my desktop (that is another linux machine) authenticanting 
against my notebook, using samba,
but the problem is that samba is already configured @ the notebook as a AD 
Domain member :S. 

  What i need to know is if there is a way of making some other machines
  authenticate in this machine, and this machine will ask the  
  password for the windows 2000 domain (only for some
  users, and the user need to be in the /etc/passwd).
 
 It would be helpful if you gave an example of which programs /  
 services on which machines (A, B and C??) you need to be able  
 authenticate in this way.
 

Well, the principal service is a VMWare GSX Server running on my notebook, i 
need to be able to authenticate
(using the vmware-console) from any machine in my network (windows or linux). I 
think the vmware thing is the
less important part, cause it should be easy editing pam.d/vmware-authd after 
everthing is configured.

  Let me explain: i have a user 'bob' that is not a user in
  the domain, but it has your username and password on my linux  
  machine, so he can authenticate. I have a user
  bgola who has the username on the AD and on the linux machine, but  
  the password isnt on the linux machine, only
  on  the AD. He can authenticate too.
  Resuming: my linux machine will use the username database from its  
  own but the password database from its own
  AND from the AD.
 
 I believe that in this situation it would be unusual to give the  
 bgola a username on the Linux machine - he has one on the AD, so if  
 you use Winbind then he doesn't need one on the Linux box. He can  
 have a homedir, since he may need to store files on the Linux box,  
 but that's not the same, I think, as having an account.
 

I want to have bgola on the linux machine for a control propose, or, only 
authenticate if the user exists on
the machine. This is already working for console/ssh/etc on the Notebook. 

 For instance on my Linux/Winbind machine on an AD:
 
   $ getent passwd | grep -e stroller -e ned
   stroller:x:1000:100::/home/stroller:/bin/bash
   ned:x:10012:1:Some Geezer:/home/DOMAIN/ned:/bin/false
   $ grep -e stroller -e ned /etc/passwd
   stroller:x:1000:100::/home/stroller:/bin/bash
   $ ls -ld ~stroller ~ned
   drwxr-xr-x  3 ned domain users 160 Jan  6 06:32 /home/DOMAIN/ned
   drwxr-xr-x  5 stroller   users272 Jan  6 03:58 /home/stroller
 
 Both users can authenticate, depending on how the /etc/pam.d/ 
 the_authenticating_service is set up. I use pam_mkhomedir.so to  
 create a home directory for any users authenticating via Winbind, but  
 beware this only works for services which call PAM session directives.
 
 I used this guide to set it all up: http://www.samba.org/samba/docs/ 
 man/Samba-HOWTO-Collection/winbind.html#id2621482
 
 Please CC me should you reply to the list with further questions,
 
 Stroller.
 
 
 -- 
 gentoo-user@gentoo.org mailing list
 
 

Resume: I need to transform my notebook (that is a AD Domain Member) in a Auth 
server, but with out leaving the
AD Domain Member status, because it will need to get the passwd for some 
accounts from the AD Server.


Thanks for your help,
Bruno Gola 


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Samba !

2006-01-06 Thread Stroller


On 6 Jan 2006, at 16:24, brunogola wrote:


My notebook running linux is already authenticating against the  
win. domain (AD). I've done this using samba,

kerberos5 and winbind (pam modules etc), thats woring perfectly :-)

Now, what i need : my desktop (that is another linux machine)  
authenticanting against my notebook, using samba,
but the problem is that samba is already configured @ the notebook  
as a AD Domain member :S.

...
Well, the principal service is a VMWare GSX Server running on my  
notebook, i need to be able to authenticate
(using the vmware-console) from any machine in my network (windows  
or linux). I think the vmware thing is the
less important part, cause it should be easy editing pam.d/vmware- 
authd after everthing is configured.

...
I want to have bgola on the linux machine for a control propose,  
or, only authenticate if the user exists on
the machine. This is already working for console/ssh/etc on the  
Notebook.


I'm afraid I'm not sure how much I can help here - it's not something  
I'd do because philosophically I disagree with your approach. That's  
not to say it's not right _for you_ but I wouldn't have a user in two  
places (on the Linux box  the AD). You even have the possibility  
with this approach, I think to separate separate users  passwords  
(for a single auth) between the two boxes. Will VMWare GSX use the ~  
for the user on the Linux box or for the user on the AD to store its  
files?


Personally, I'd have the user exist on the domain or possibly on the  
Linux box, but not on both.


Since you say that VMWare GSX Server (which I'm not familiar with)  
uses PAM it should be possible to get this to authenticate users on  
either the AD or /etc/passwd OR BOTH. It should be possible to use  
some other mechanism - possibly group memberships - to restrict   
VMWare GSX Server log-in rights to or from certain users. Dovecot  
IMAP, for instance, has a deny passdb and also a valid userID  
range. I would personally consider this kind of approach more elegant.


I'm not trying to be snobby saying I wouldn't do it this way, just  
sorry I can't help. Good luck with it.


Stroller.

--
gentoo-user@gentoo.org mailing list



[gentoo-user] SAMBA Windows native driver and CUPS

2005-12-11 Thread Jose Maria Alvarez Fernandez

Hi to all!!

I'm right now a bit crazy. I'm trying to setup a samba server that is 
sharing a printer, and setup it in a windows client with the native 
printer, as said is this guide 
http://gentoo-wiki.com/HOWTO_Native_Windows_Printing_with_CUPS/Samba


Everything goes well, but when I try to print a page, nothing happens. 
In fact, the windows machine says that there is an error. And I don't 
know what to change (after 6 hours.. :))

this is the log I get from cups:
d [11/Dec/2005:23:54:14 +0100] POST /
d [11/Dec/2005:23:54:14 +0100] CONTENT_TYPE = application/ipp
d [11/Dec/2005:23:54:14 +0100] ReadClient: 5 con-data_encoding = 
length, con-data_remaining = 189, con-file = -1
d [11/Dec/2005:23:54:14 +0100] ProcessIPPRequest(0xb7bda008[5]): 
operation_id = 000b
d [11/Dec/2005:23:54:14 +0100] ProcessIPPRequest: 
URI=ipp://localhost/printers/Lexmark
d [11/Dec/2005:23:54:14 +0100] get_printer_attrs(0xb7bda008[5], 
ipp://localhost/printers/Lexmark)
d [11/Dec/2005:23:54:14 +0100] add_printer_state_reasons(0xb7bda008[5], 
0x8094df0[Lexmark])
d [11/Dec/2005:23:54:14 +0100] add_queued_job_count(0xb7bda008[5], 
0x8094df0[Lexmark])


snip

d [11/Dec/2005:23:54:14 +0100] copy_attribute(0x80bff88, 
0x80956e8[job-priority-supported,4,21])
d [11/Dec/2005:23:54:14 +0100] copy_attribute(0x80bff88, 
0x8095478[job-priority-default,4,21])
d [11/Dec/2005:23:54:14 +0100] copy_attribute(0x80bff88, 
0x8095410[copies-supported,4,33])
d [11/Dec/2005:23:54:14 +0100] copy_attribute(0x80bff88, 
0x80953b8[copies-default,4,21])
d [11/Dec/2005:23:54:14 +0100] copy_attribute(0x80bff88, 
0x808e9d8[page-ranges-supported,4,22])
d [11/Dec/2005:23:54:14 +0100] copy_attribute(0x80bff88, 
0x8095840[number-up-supported,4,21])
d [11/Dec/2005:23:54:14 +0100] copy_attribute(0x80bff88, 
0x808e9b0[number-up-default,4,21])
d [11/Dec/2005:23:54:14 +0100] copy_attribute(0x80bff88, 
0x80958f8[orientation-requested-supported,4,23])
d [11/Dec/2005:23:54:14 +0100] copy_attribute(0x80bff88, 
0x808a308[orientation-requested-default,4,23])
d [11/Dec/2005:23:54:14 +0100] copy_attribute(0x80bff88, 
0x80959b8[job-hold-until-supported,4,44])
d [11/Dec/2005:23:54:14 +0100] copy_attribute(0x80bff88, 
0x808a0f0[job-hold-until-default,4,44])
d [11/Dec/2005:23:54:14 +0100] copy_attribute(0x80bff88, 
0x8095b30[job-sheets-supported,4,42])

D [11/Dec/2005:23:54:14 +0100] ProcessIPPRequest: 5 status_code=0
d [11/Dec/2005:23:54:14 +0100] ProcessIPPRequest: Adding fd 5 to 
OutputSet...

d [11/Dec/2005:23:54:14 +0100] WriteClient: Removing fd 5 from OutputSet...
d [11/Dec/2005:23:54:14 +0100] ReadClient: 5, used=0, file=-1
d [11/Dec/2005:23:54:14 +0100] ReadClient: httpGets returned EOF...
D [11/Dec/2005:23:54:14 +0100] CloseClient: 5
d [11/Dec/2005:23:54:14 +0100] CloseClient: Removing fd 5 from InputSet 
and OutputSet...
d [11/Dec/2005:23:54:15 +0100] select_timeout: 27 seconds to send browse 
update
d [11/Dec/2005:23:54:42 +0100] select_timeout: 16 seconds to browse 
timeout a printer


And from samba, I get no errors...

Can anyone give me a clue or help me???

Thanks a lot!!!
--
gentoo-user@gentoo.org mailing list



[gentoo-user] samba compilation error

2005-09-27 Thread pat
Hi,

I'm updateing system and samba-3.0.14-r2 gives me an error:
i386-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -mcpu=i686
-pipe -I/usr/include/mysql -mcpu=i686 -pipe -DHAVE_ERRNO_AS_DEFINE=1
-DUSE_OLD_FUNCTIONS -I/usr/include/libxml2 -fPIC -I/usr/include/python2.3 -c
python/py_spoolss_jobs_conv.c -o
build/temp.linux-i686-2.3/python/py_spoolss_jobs_conv.o -O2 -mcpu=i686 -pipe
-I/usr/include/mysql -mcpu=i686 -pipe -DHAVE_ERRNO_AS_DEFINE=1
-DUSE_OLD_FUNCTIONS -I/usr/include/libxml2 -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -O2 -mcpu=i686
-pipe -I/usr/include/mysql -mcpu=i686 -pipe -DHAVE_ERRNO_AS_DEFINE=1
-DUSE_OLD_FUNCTIONS -I/usr/include/libxml2 -Iinclude
-I/var/tmp/portage/samba-3.0.14a-r2/work/samba-3.0.14a/source/include
-I/var/tmp/portage/samba-3.0.14a-r2/work/samba-3.0.14a/source/ubiqx
-I/var/tmp/portage/samba-3.0.14a-r2/work/samba-3.0.14a/source/smbwrapper -I.
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-I/var/tmp/portage/samba-3.0.14a-r2/work/samba-3.0.14a/source
Linking bin/smbd
gcc-config error: Could not run/locate i386-pc-linux-gnu-gcc
error: command 'i386-pc-linux-gnu-gcc' failed with exit status 1
make: *** [python_ext] Error 1
make: *** Waiting for unfinished jobs
 
What's wrong with it ??? I've try to switch to nptl.

Thanks

 Pat
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] samba

2005-09-22 Thread Eddie Mihalow Jr

Michael W. Holdeman wrote:
I keep getting this error, 
error libsmb programs must not be setuid root?


This after upgrading samba. The config seems alright, I just can't mount any 
shares due to this error.


Mike

Check out the Gentoo forums. I had this same problem and found a fix there.

--
Edward A Mihalow Jr
Gentoo!Linux
Registered Linux User#225662
--
gentoo-user@gentoo.org mailing list



[gentoo-user] samba

2005-09-21 Thread Michael W. Holdeman
I keep getting this error, 
error libsmb programs must not be setuid root?

This after upgrading samba. The config seems alright, I just can't mount any 
shares due to this error.

Mike
-- 
 
Michael W. Holdeman



Powered by Gentoo Linux www.gentoo.org  |
Kernel 2.6.11-ck8   |
Win4Lin 5-1-20 netraverse.com   |
Win4LinPro 6.1.1-03 win4lin.com |
|
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Samba/Names/XPPro

2005-09-12 Thread Edoceo Lists

List,
  I'm using Samba to share with Windows and am using the %m macro as the share name so that each Windows computer sees 
only one share with it's name to use.  This works great for almost every machine on my network: other Sambas, Win2K, 
Win2K3, WinXP home but not this one XPPro.  I've tried tweaking the lmhosts file and waiting for Netbios to share the 
names but this hasn't worked, any ideas?


/djb
--
gentoo-user@gentoo.org mailing list



[gentoo-user] Samba/Names/XPPro

2005-09-12 Thread Edoceo Lists

List,
  I'm using Samba to share with Windows and am using the %m macro as the share name so that each Windows computer sees 
only one share with it's name to use.  This works great for almost every machine on my network: other Sambas, Win2K, 
Win2K3, WinXP home but not this one XPPro.  I've tried tweaking the lmhosts file and waiting for Netbios to share the 
names but this hasn't worked, any ideas?


/djb
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Samba crashes after upgrading system

2005-07-17 Thread Zac Medico

Robert Cernansky wrote:
RF 
RF For a complete list of packages that should be rebuilt, you can run:
RF 
RF equery belongs `ldd /usr/sbin/smbd  | grep ' /' | awk '{print $3}'` | 
RF sort | uniq
RF 
RF This will print the name of every package that contains a library that 
RF smbd depends upon.
RF 
RF I would not rebuild the entire system at this point, but if -ftracer 
RF does turn out to be the source of your problem, then a rebuild should 
RF scheduled soon!


Well, ldd shows that smbtree depends on popt and glibc. According to gdb,
the problem seems to be in glibc (/usr/lib64/gconv/IBM852.so belongs to
glibc):

$ gdb smbtree
[snip]
(gdb) r
Starting program: /usr/bin/smbtree 
(no debugging symbols found)

(no debugging symbols found)
[snip]
Program received signal SIGSEGV, Segmentation fault.
0x2b4459bc in gconv () from /usr/lib64/gconv/IBM852.so
(gdb) bt
#0  0x2b4459bc in gconv () from /usr/lib64/gconv/IBM852.so
#1  0x2b23efa2 in gconv () from /usr/lib64/gconv/UTF-16.so
#2  0x2b034f78 in iconv_close () from /lib/libc.so.6
#3  0x2b03456b in iconv () from /lib/libc.so.6
#4  0x004416b0 in smb_register_charset ()
#5  0x004417db in smb_iconv ()
#6  0x004222fa in lazy_initialize_conv ()
#7  0x0042283b in convert_string ()
#8  0x00432308 in init_doschar_table ()
#9  0x004221c4 in init_iconv ()
#10 0x0041c9e4 in lp_file_list_changed ()
#11 0x0041dfc5 in lp_do_parameter ()
#12 0x0042085a in set_store_dos_attributes ()
#13 0x00420b98 in pm_process ()
#14 0x0041f83b in lp_load ()
#15 0x00418c68 in main ()

So I decide to downgrade glibc first, but it did not help. Then I downgrade
linux-headers and re-emerge (downgraded) glibc and samba (for sure). Again
without success. :-( I removed -ftracer at first of course.

I'm stuck now. I don't believe that rebuild of whole system (without
-ftracer) fixes the problem because /usr/lib64/gconv/IBM852.so depends only
on libraries from glibc.

$ ldd /usr/lib64/gconv/IBM852.so
libc.so.6 = /lib/libc.so.6 (0x2abce000)
/lib64/ld-linux-x86-64.so.2 (0x4000)
$ ldd /lib/libc.so.6
/lib64/ld-linux-x86-64.so.2 (0x2aaab000)
$ ldd /lib64/ld-linux-x86-64.so.2
statically linked

What do you think?

Robert




Maybe something in your toolchain is broken.  If you don't have a trusted 
toolchain then you can borrow the toolchain from a livecd to rebuild gcc, 
binutils, and libtool.

Zac
--
gentoo-user@gentoo.org mailing list



Re[2]: [gentoo-user] Samba crashes after upgrading system

2005-07-17 Thread Robert Cernansky
On Sun, 17 Jul 2005 10:45:00 -0700 Zac Medico [EMAIL PROTECTED] wrote:

ZM Robert Cernansky wrote:
ZM  So I decide to downgrade glibc first, but it did not help. Then I 
downgrade
ZM  linux-headers and re-emerge (downgraded) glibc and samba (for sure). Again
ZM  without success. :-( I removed -ftracer at first of course.
ZM  
ZM  I'm stuck now. I don't believe that rebuild of whole system (without
ZM  -ftracer) fixes the problem because /usr/lib64/gconv/IBM852.so depends 
only
ZM  on libraries from glibc.
ZM
ZM Maybe something in your toolchain is broken.  If you don't have a
ZM trusted toolchain then you can borrow the toolchain from a livecd to
ZM rebuild gcc, binutils, and libtool.

Great idea with this livecd. I just replaced /usr/lib64/gconv/IBM852.so
with that one from livecd and it works! When I'll have more time I'll try
to rebuild toolchain as you suggested. Thank You.

Robert.


-- 
Robert Cernansky
E-mail: [EMAIL PROTECTED]
Jabber: [EMAIL PROTECTED]

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Samba crashes after upgrading system

2005-07-17 Thread Zac Medico

Robert Cernansky wrote:


Great idea with this livecd. I just replaced /usr/lib64/gconv/IBM852.so
with that one from livecd and it works! When I'll have more time I'll try
to rebuild toolchain as you suggested. Thank You.

Robert.




Great!  Actually, I meant to say stage3 instead of livecd.  You can chroot into 
a stage3 and use quickpkg to make binary packages out of anything you need 
(glibc, gcc, etc..).  Then install those binary packages on your broken system.

Zac
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Samba crashes after upgrading system

2005-07-16 Thread Zac Medico

Robert Cernansky wrote:

Hello,

I just upgraded my system (emerge -u world) and after restart samba do not
start. (Samba was not upgraded.) In the /var/log/messages I see:


[snip]

[snip]

Mounting network filesystems (smb shares) and various samba comands
(smbtree, smbstatus) also crashes. I've tried re-emerge samba but it did
not help. Any idea where could be the problem? I have amd64 system. The
important packages that was upgraded are:

[ebuild U ] sys-libs/zlib-1.2.2-r1 [1.2.2] -build 0 kB 
[ebuild U ] sys-devel/gcc-config-1.3.11-r4 [1.3.11-r3] 0 kB 
[ebuild U ] sys-kernel/linux-headers-2.6.11-r2 [2.6.8.1-r4] 0 kB 
[ebuild U ] sys-libs/glibc-2.3.5 [2.3.4.20041102-r1] -build -debug -erandom -hardened (-multilib) +nls -nptl -nptlonly -pic (-selinux) +userlocales 0 kB 
[ebuild U ] sys-devel/libtool-1.5.18-r1 [1.5.16] 0 kB 
[snip]
[ebuild  NS   ] sys-libs/db-4.2.52_p2  -bootstrap -doc -java -nocxx +tcltk 0 kB 
[ebuild U ] sys-libs/pam-0.78-r2 [0.77-r6] +berkdb -nis -pam_chroot -pam_console -pam_timestamp -pwdb (-selinux) 0 kB 
[ebuild U ] sys-apps/shadow-4.0.7-r3 [4.0.5-r3] +nls +pam (-selinux) -skey 0 kB 
[ebuild U ] sys-apps/pam-login-3.17 [3.14] -livecd +nls (-selinux) 0 kB 
[snip]
[ebuild U ] sys-fs/udev-058 [056] (-selinux) -static 0 kB 


Thanks

Robert




Did you run revdep-rebuild after the update?  That's always a good idea when 
libraries are updated.

Zac
--
gentoo-user@gentoo.org mailing list



Re[2]: [gentoo-user] Samba crashes after upgrading system

2005-07-16 Thread Robert Cernansky
On Sat, 16 Jul 2005 11:03:02 -0700 Zac Medico [EMAIL PROTECTED] wrote:

ZM Robert Cernansky wrote:
ZM  Hello,
ZM  
ZM  I just upgraded my system (emerge -u world) and after restart samba do not
ZM  start. (Samba was not upgraded.) In the /var/log/messages I see:
ZM  [snip]
ZM  
ZM  Mounting network filesystems (smb shares) and various samba comands
ZM  (smbtree, smbstatus) also crashes. I've tried re-emerge samba but it did
ZM  not help. Any idea where could be the problem? I have amd64 system. The
ZM  important packages that was upgraded are:
[snip]
ZM Did you run revdep-rebuild after the update?  That's always a good idea 
when libraries are updated.

Yes, I did. Only openoffice-bin and opera were listed. I've also tried
emerge latest unstable version of samba (3.0.14a-r1) but it did not help.

I posted bugreport about this
(http://bugs.gentoo.org/show_bug.cgi?id=99184). Anyway, any
sugestions/workarounds are welcome.

Robert


-- 
Robert Cernansky
E-mail: [EMAIL PROTECTED]
Jabber: [EMAIL PROTECTED]

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Samba crashes after upgrading system

2005-07-16 Thread Richard Fish



Robert Cernansky wrote:


On Sat, 16 Jul 2005 11:03:02 -0700 Zac Medico [EMAIL PROTECTED] wrote:

ZM Robert Cernansky wrote:
ZM  Hello,
ZM  
ZM  I just upgraded my system (emerge -u world) and after restart samba do not

ZM  start. (Samba was not upgraded.) In the /var/log/messages I see:
ZM  [snip]
ZM  
ZM  Mounting network filesystems (smb shares) and various samba comands

ZM  (smbtree, smbstatus) also crashes. I've tried re-emerge samba but it did
ZM  not help. Any idea where could be the problem? I have amd64 system. The
ZM  important packages that was upgraded are:
[snip]
ZM Did you run revdep-rebuild after the update?  That's always a good idea 
when libraries are updated.

Yes, I did. Only openoffice-bin and opera were listed. I've also tried
emerge latest unstable version of samba (3.0.14a-r1) but it did not help.

I posted bugreport about this
(http://bugs.gentoo.org/show_bug.cgi?id=99184). Anyway, any
sugestions/workarounds are welcome.

Robert


 




I will quote from info gcc

The following options control optimizations that may improve
performance, but are not enabled by any `-O' options.  This section
includes experimental options that may produce broken code.

snip

`-ftracer'
Perform tail duplication to enlarge superblock size. This
transformation simplifies the control flow of the function
allowing other optimizations to do better job.

Rebuild without experimental optimization options if you want real 
support! ;-


-Richard

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Samba crashes after upgrading system

2005-07-16 Thread Zac Medico

Robert Cernansky wrote:

On Sat, 16 Jul 2005 11:03:02 -0700 Zac Medico [EMAIL PROTECTED] wrote:

ZM Robert Cernansky wrote:
ZM  Hello,
ZM  
ZM  I just upgraded my system (emerge -u world) and after restart samba do not

ZM  start. (Samba was not upgraded.) In the /var/log/messages I see:
ZM  [snip]
ZM  
ZM  Mounting network filesystems (smb shares) and various samba comands

ZM  (smbtree, smbstatus) also crashes. I've tried re-emerge samba but it did
ZM  not help. Any idea where could be the problem? I have amd64 system. The
ZM  important packages that was upgraded are:
[snip]
ZM Did you run revdep-rebuild after the update?  That's always a good idea 
when libraries are updated.

Yes, I did. Only openoffice-bin and opera were listed. I've also tried
emerge latest unstable version of samba (3.0.14a-r1) but it did not help.

I posted bugreport about this
(http://bugs.gentoo.org/show_bug.cgi?id=99184). Anyway, any
sugestions/workarounds are welcome.

Robert




Pam and glibc are direct dependancies of samba that you upgraded.  I would roll 
those back one by one to see if that helps.  Do you have binary packages of the 
old versions (from quickpkg or FEATURES=buildpkg)?

Oh, and like Richard said, try some normal CFLAGS before you file bugs :-p.

Zac
--
gentoo-user@gentoo.org mailing list



Re[2]: [gentoo-user] Samba crashes after upgrading system

2005-07-16 Thread Robert Cernansky
On Sat, 16 Jul 2005 21:49:44 +0200 Richard Fish [EMAIL PROTECTED] wrote:

RF Robert Cernansky wrote:
RF 
RF On Sat, 16 Jul 2005 11:03:02 -0700 Zac Medico [EMAIL PROTECTED] wrote:
RF 
RF ZM Robert Cernansky wrote:
RF ZM  I just upgraded my system (emerge -u world) and after restart samba 
do not
RF ZM  start. (Samba was not upgraded.) In the /var/log/messages I see:
RF ZM  [snip]
RF ZM  
RF ZM  Mounting network filesystems (smb shares) and various samba comands
RF ZM  (smbtree, smbstatus) also crashes. I've tried re-emerge samba but it 
did
RF ZM  not help. Any idea where could be the problem? I have amd64 system. 
The
RF ZM  important packages that was upgraded are:
RF [snip]
RF ZM Did you run revdep-rebuild after the update?  That's always a good 
idea when libraries are updated.
RF 
RF Yes, I did. Only openoffice-bin and opera were listed. I've also tried
RF emerge latest unstable version of samba (3.0.14a-r1) but it did not help.
RF 
RF Rebuild without experimental optimization options if you want real 
RF support! ;-

Ouch. Should I recompile whole system (please no ;-)) or samba only? Or,
maybe samba and glibc and pam as Zac wrote that these are direct
dependancies.

-- 
Robert Cernansky
E-mail: [EMAIL PROTECTED]
Jabber: [EMAIL PROTECTED]

-- 
gentoo-user@gentoo.org mailing list



Re[2]: [gentoo-user] Samba crashes after upgrading system

2005-07-16 Thread Robert Cernansky
On Sat, 16 Jul 2005 12:58:32 -0700 Zac Medico [EMAIL PROTECTED] wrote:

ZM Robert Cernansky wrote:
ZM  On Sat, 16 Jul 2005 11:03:02 -0700 Zac Medico [EMAIL PROTECTED] wrote:
ZM  
ZM  ZM Robert Cernansky wrote:
ZM  ZM  I just upgraded my system (emerge -u world) and after restart samba 
do not
ZM  ZM  start. (Samba was not upgraded.) In the /var/log/messages I see:
ZM  ZM  [snip]
ZM  ZM  
ZM  ZM  Mounting network filesystems (smb shares) and various samba comands
ZM  ZM  (smbtree, smbstatus) also crashes. I've tried re-emerge samba but 
it did
ZM  ZM  not help. Any idea where could be the problem? I have amd64 system. 
The
ZM  ZM  important packages that was upgraded are:
ZM  [snip]
ZM  ZM Did you run revdep-rebuild after the update?  That's always a good 
idea when libraries are updated.
ZM  
ZM  Yes, I did. Only openoffice-bin and opera were listed. I've also tried
ZM  emerge latest unstable version of samba (3.0.14a-r1) but it did not help.
ZM  
ZM Pam and glibc are direct dependancies of samba that you upgraded.  I
ZM would roll those back one by one to see if that helps.  Do you have binary
ZM packages of the old versions (from quickpkg or FEATURES=buildpkg)?

I read in some forums that downgrading glibc is not good idea. It is true?
I have not old binary packages but they are still in portage so I still can
install them. But at first I'll rebuild current versions without -ftracer.

Thanks.

Robert


-- 
Robert Cernansky
E-mail: [EMAIL PROTECTED]
Jabber: [EMAIL PROTECTED]

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Samba crashes after upgrading system

2005-07-16 Thread Zac Medico

Robert Cernansky wrote:


Ouch. Should I recompile whole system (please no ;-)) or samba only? Or,
maybe samba and glibc and pam as Zac wrote that these are direct
dependancies.



Unless you're just experimenting, it's really a bad idea to use fringe CFLAGS 
that most other people aren't using.  If you have have binary packages of your 
old versions that weren't *noticeably* broken then that's a good place to 
start.  In the long run, you want to have most of your packages, expecially the 
core libraries, built with known safe CFLAGS.

Zac
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Samba crashes after upgrading system

2005-07-16 Thread Zac Medico

Robert Cernansky wrote:


I read in some forums that downgrading glibc is not good idea. It is true?
I have not old binary packages but they are still in portage so I still can
install them. But at first I'll rebuild current versions without -ftracer.



In that case I would just rebuild the current version without -ftracer.  In the 
future use quickpkg or FEATURES=buildpkg to give yourself a roll back plan.  
AFAICT downgrading glibc should not be much of an issue in itself because the 
API is still the same and it would just take you back where you were before.

Zac
--
gentoo-user@gentoo.org mailing list



  1   2   >