Re: [Samba] share folder for each user

2008-11-09 Thread Mohammad Reza Hosseini
Hello again,
Solved! using thishttp://lists.samba.org/archive/samba/2004-May/085278.html

2008/11/9 Mohammad Reza Hosseini [EMAIL PROTECTED]

 Hello,
 I did what you said but no folders where created and nothing was
 accessible.my [homes] section settings:

 [homes]
 comment = Home Directories
 valid users = %U
 writeable = yes


 2008/11/8 Daniel Müller [EMAIL PROTECTED]

 Hello,

 very simple
 set the profiles path [global] to :logon path=
 and in your [homes] section

 valid users=%U

 Daniel

 On Sat, 8 Nov 2008 10:42:07 +0330, Mohammad Reza Hosseini
 [EMAIL PROTECTED] wrote:
  hello
  we have an ldap server and a samba pdc; but our problem is that we don't
  want to have a roaming profile but we want that each user have his own
  place
  on the server that could be accessible every where but not to other
 users.
  any help?
 
  thanks.
  --
  To unsubscribe from this list go to the following URL and read the
  instructions:  https://lists.samba.org/mailman/listinfo/samba



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


[Samba] Samba packages in Debian

2008-11-09 Thread Christian Perrier
This is an update, from the samba package maintainers in Debian, about
the current status of Samba package in the distribution.

In Debian stable (etch), the official samba package is
3.0.24-6etch10, which is a 3.0.24 version with all security
updates that were published after 3.0.24.

In Debian testing (lenny), the samba package is 3.2.4-1. Debian
lenny is still under freeze, with the Debian developers fighting to
get the release critical out of the way and finally release the damn
thing. The release date is still when it's ready, as usual..:)

It's therefore quite likely that Debian will ship with Samba
3.2.4. Even if 3.2.5 is published before we release, convincing our
release managers that we can have it in lenny will be hard (e'll try,
of course).

Finally, packages for 3.3.0-pre2 have been uploaded yesterday in
Debian experimental and can be used on Debian lenny or Debian unstable
machines.


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


Re: [Samba] winbindd consuming 99% CPU

2008-11-09 Thread Sagar Borikar
Hi 

I did some further profiling winbindd and found that there was no network 
traffic but internally string functions were consuming most of the cpu. Here is 
the oprofile output of the winbindd which was consuming 99% of cpu
[EMAIL PROTECTED] new]# opreport -l --demangle=smart 
/mnt/RAIDB/vol/new/winbindd | more
CPU: PMC-Sierra RM9000, speed 0 MHz (estimated) Counted INSTRUCTIONS_ISSUED 
events (Instructions issued) with a unit mask of 0x00 (No unit mask) count 
10
samples  %symbol name
77   20.5882  convert_string
57   15.2406  convert_string_internal
43   11.4973  check_dos_char_slowly
379.8930  ascii_push
277.2193  smb_iconv
266.9519  strwicmp
184.8128  toupper_w
154.0107  toupper_ascii
112.9412  lazy_initialize_conv
102.6738  dopr
9 2.4064  format_debug_text
9 2.4064  init_doschar_table
7 1.8717  map_parameter
4 1.0695  dopr_outch
4 1.0695  lp_do_parameter
3 0.8021  fmtstr
2 0.5348  Parameter
2 0.5348  copy_service
2 0.5348  mygetc
1 0.2674  EatComment
1 0.2674  EatWhitespace
1 0.2674  charset_name
1 0.2674  iface_comp
1 0.2674  lp_save_defaults
1 0.2674  lp_string
1 0.2674  set_server_role
1 0.2674  smb_probe_module
1 0.2674  smb_xstrdup
1 0.2674  string_free
1 0.2674  tdb_read


When I backtraced the winbindd through oprofile, here is the call graph which I 
get,

Counted INSTRUCTIONS_ISSUED events (Instructions issued) with a unit mask of 
0x00 (No unit mask) count 10
samples  %image name   symbol name
---
  2 7.1429  winbindd convert_string
  26   92.8571  winbindd check_dos_char_slowly
77   20.5882  winbindd convert_string
  77   65.8120  winbindd convert_string [self]
  38   32.4786  winbindd convert_string_internal
  2 1.7094  winbindd convert_string
---
  38   100.000  winbindd convert_string
57   15.2406  winbindd convert_string_internal
  57   69.5122  winbindd convert_string_internal [self]
  15   18.2927  winbindd smb_iconv
  10   12.1951  winbindd lazy_initialize_conv
---
  16   32.  winbindd check_dos_char_slowly
  34   68.  winbindd init_doschar_table
43   11.4973  winbindd check_dos_char_slowly
  43   50.5882  winbindd check_dos_char_slowly [self]
  26   30.5882  winbindd convert_string
  16   18.8235  winbindd check_dos_char_slowly
---
  28   100.000  winbindd smb_iconv
379.8930  winbindd ascii_push
  37   100.000  winbindd ascii_push [self]
---
  15   100.000  winbindd convert_string_internal
277.2193  winbindd smb_iconv
  28   50.9091  winbindd ascii_push
  27   49.0909  winbindd smb_iconv [self]
---
  325.  winbindd strwicmp
  975.  winbindd map_parameter
266.9519  winbindd strwicmp
  30   43.4783  winbindd toupper_ascii
  26   37.6812  winbindd strwicmp [self]
  10   14.4928  libc-2.3.5.so(no symbols)
  3 4.3478  winbindd strwicmp

Also pidstat output says that winbindd is consuming more in kernel as well. 

Linux 2.6.18 (NAS0018f80551d3)  11/09/08_mips_

00:27:50  PID%usr %system  %guest%CPU   CPU  Command
00:27:5131001   45.45   47.470.00   92.93 0  winbindd
00:27:5231001   41.58   56.440.00   98.02 0  winbindd
00:27:5331001   29.00   61.000.00   90.00 0  winbindd
00:27:5431001   33.66   65.350.00   99.01 0  winbindd
00:27:5531001   36.00   54.000.00   90.00 0  winbindd
00:27:5631001   40.40   52.530.00   92.93 0  winbindd
00:27:5731001   34.65   63.370.00   98.02 0  winbindd
00:27:5831001   36.27   52.940.00   89.22 0  winbindd
00:27:5931001   38.00   61.000.00   99.00 0  winbindd

Has anybody ever faced similar issue before?

Thanks in advance
Sagar



[Samba] Failed rpmbuild-ing samba-3.0.32.tar.gz

2008-11-09 Thread FC Mario Patty
Hi,

Relating to my emails before (SAMBA  SOLIDWORS : cat  dog?) now I've been
trying to update my samba-3.0.10 to samba-3.0.32 . I downloaded the source
form samba.org and trying to create rpm package from one. I created
~/.rpmmacros file

%_tmppath /home/fcmario/tmp
%_topdir /home/fcmario/src/rpm
%prefix /usr/local

and ran

% rpmbuild -ta ~/src/rpm/SOURCES/samba-3.0.32.tar.gz


I got error messages that it cannot cd to lsb-samba-2.2.1.tar.gz. I go to
~/src/rpm/SPECS and edited lsb-samba.spec to become

Summary: SAMBA
Name: samba# the old phrase was lsb-samba
Version: 3.0.32  # the old phrase was 2.2.1
Release: 0

# More lines here

%build
export LDFLAGS=-L/usr/lib/lsb --dynamic-linker=/lib/ld-lsb.so.1

./configure --with-fhs  --prefix=/usr --sysconfdir=/etc \
--sharedstatedir=/var --datadir=/usr/share \
--with-configdir=/etc/samba
#--with-swatdir=/usr/share/samba/swat
# More lines here


then rename lsb-samba.spec to samba.spec. Once again I ran

% rpmbuild -ba ~src/rpm/SOURCES/samba.spec

It came out with error messages

Executing(%build): /bin/sh -e /home/fcmario/tmp/rpm-tmp.457
+ umask 022
+ cd /home/fcmario/src/rpm/BUILD
+ cd samba-3.0.32
+ LANG=C
+ export LANG
+ unset DISPLAY
+ export 'LDFLAGS=-L/usr/lib/lsb --dynamic-linker=/lib/ld-lsb.so.1'
+ LDFLAGS='-L/usr/lib/lsb --dynamic-linker=/lib/ld-lsb.so.1'
+ ./configure --with-fhs --prefix=/usr --sysconfdir=/etc
--sharedstatedir=/var --datadir=/usr/share --with-configdir=/etc/samba
/home/fcmario/tmp/rpm-tmp.457: line 29: ./configure: No such file or
directory
error: Bad exit status from /home/fcmario/tmp/rpm-tmp.457 (%build)


RPM build errors:
Bad exit status from /home/fcmario/tmp/rpm-tmp.457 (%build)

I've tried to un-tar the source file and changed the lsb-samba.spec in
packaging/LSB directory, tar-ed it again and run rpmbuild -ta
samba-3.0.32.tar.gz but still it came out with the same error messages. Is
anybody here knows how to face this thing, since I've never done this before
and have been struggled for two days just to get an RPM package for my
distro (it's hard to find RHEL 4 rpm for samba-3.0.32 out there - I've
checked dag.wieers and rpmfind). I really apreciate your help. Thank you.

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


[Samba] Re: Failed rpmbuild-ing samba-3.0.32.tar.gz

2008-11-09 Thread FC Mario Patty
One more information, I don't have /lib/ld-lsb.so.1 but /lib/ld-lsb.so.3.
Sorry for this inconvenience.

Regards,


On Sun, Nov 9, 2008 at 4:01 PM, FC Mario Patty [EMAIL PROTECTED] wrote:

 Hi,

 %build
 export LDFLAGS=-L/usr/lib/lsb --dynamic-linker=/lib/ld-lsb.so.1

 ./configure --with-fhs  --prefix=/usr --sysconfdir=/etc \
 --sharedstatedir=/var --datadir=/usr/share \
 --with-configdir=/etc/samba
 #--with-swatdir=/usr/share/samba/swat
 # More lines here

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


Re: [Samba] testparm output vs documentation

2008-11-09 Thread FC Mario Patty
Maybe the reason behind testparm not showing them up because they are all
come with default values. For example I set parameter security = user.
When I ran the testparm command, it didn't show up. Try to change it to
share and see if it'd make any difference. But of course the developer may
answer you best.

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


Re: [Samba] testparm output vs documentation

2008-11-09 Thread Norberto Bensa
On Sunday November 9 2008 08:00:25 FC Mario Patty wrote:
 Maybe the reason behind testparm not showing them up because they are all
 come with default values. For example I set parameter security = user.

OP ran testparm with -v

Regards,
Norberto

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


Re: [Samba] Access Denied to Printers / Same thing here

2008-11-09 Thread Peter Van den Wildenbergh

Daniel L. Miller wrote:

Hi!

Trying to trace down a problem with printer sharing.  I don't see 
anything glaringly obvious with my smb.conf.  I am using LDAP and CUPS.


Using a Windoze client, accessing a printer I receive the friendly 
Access denied, unable to connect.  Checking the Samba logs, I find:


[2008/11/07 18:26:08,  0] param/loadparm.c:process_usershare_file(8268)
 process_usershare_file: share name 
::{2227a280-3aea-1069-a2de-08002b30309d} contains invalid characters 
(any of %*?|/\+=;:,)

[2008/11/07 18:26:08,  0] param/loadparm.c:process_usershare_file(8268)
 process_usershare_file: share name 
::{2227a280-3aea-1069-a2de-08002b30309d} contains invalid characters 
(any of %*?|/\+=;:,)

[2008/11/07 18:26:08,  0] smbd/service.c:make_connection(1362)
 daniel (192.168.0.60) couldn't find service 
::{2227a280-3aea-1069-a2de-08002b30309d}


I don't HAVE any shares with invalid characters - that I'm aware of.  
Is it possible there's something hiding in a corrupted tdb file?  I've 
tried deleting ntprinters.tdb without improvement.



Hi Daniel,

I can only offer moral support, I got the same problem but no solution
(yet).
Samba 3.0.28a on Ubuntu 8.04 LTS with OpenLDAP slapd 2.4.9

I read through this :
http://us6.samba.org/samba/docs/man/Samba-HOWTO-Collection/classicalprinting.html#id2620623

But no luck and I want to avoid the whole rpcclient thing.

somebody here
(http://lists.samba.org/archive/samba/2006-January/116695.html) pointed to
http://www.extremetech.com/article2/0,1697,1722545,00.asp
Not sure what it has to do with it but I tried deleting the task thing
(no change)
(It explained where the 2227a280-3aea-1069-a2de-08002b30309d key comes from)

Parts of my smb.conf:

[global]
load printers = yes
printcap name = cups
printing = cups


[print$]
  comment = Printer Drivers
  path = /var/lib/samba/printers
  browseable = yes
  read only = yes
  guest ok = no
  write list = root, @Domain Admins, @Domain Users[print$]
  comment = Printer Drivers
  path = /var/lib/samba/printers
  browseable = yes
  read only = yes
  guest ok = no
  write list = root, @Domain Admins, @Domain Users
# Remove @Domain Users asap !!! Need printer setup working for Big
Xerox 7328 MFC


drwxrwxrwx 2 root Domain Admins  4096 2008-11-09 10:48 printers
(I will chmod this back to 775 ASAP)

The printer works in CUPS

root = part of Domain Admins
User root already member of the group Domain Admins.

What else did I do ?

Read
man 8 cupsaddsmb

Step 6 here fails:
http://de.samba.org/samba/docs/man/Samba-Guide/happy.html#id2575750

rebooted everything one more time, to give it another try...

Posted this 'cry for help'  msg...

Do I need cupsaddsmb?
I do NOT use RAW printing.


Thanks


Peter






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


Re: [Samba] share folder for each user

2008-11-09 Thread Charles Marcus
On 11/9/2008 2:59 AM, Mohammad Reza Hosseini wrote:
 Hello again,
 Solved! using thishttp://lists.samba.org/archive/samba/2004-May/085278.html

??

That thread does NOT provide a solution...

-- 

Best regards,

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


Re: [Samba] Access Denied to Printers / Same thing here - SOLVED once (*almost)

2008-11-09 Thread Peter Van den Wildenbergh

Peter Van den Wildenbergh wrote:

Daniel L. Miller wrote:

Hi!

Trying to trace down a problem with printer sharing.  I don't see 
anything glaringly obvious with my smb.conf.  I am using LDAP and CUPS.


Using a Windoze client, accessing a printer I receive the friendly 
Access denied, unable to connect.  Checking the Samba logs, I find:


[2008/11/07 18:26:08,  0] param/loadparm.c:process_usershare_file(8268)
 process_usershare_file: share name 
::{2227a280-3aea-1069-a2de-08002b30309d} contains invalid characters 
(any of %*?|/\+=;:,)

[2008/11/07 18:26:08,  0] param/loadparm.c:process_usershare_file(8268)
 process_usershare_file: share name 
::{2227a280-3aea-1069-a2de-08002b30309d} contains invalid characters 
(any of %*?|/\+=;:,)

[2008/11/07 18:26:08,  0] smbd/service.c:make_connection(1362)
 daniel (192.168.0.60) couldn't find service 
::{2227a280-3aea-1069-a2de-08002b30309d}


I don't HAVE any shares with invalid characters - that I'm aware of.  
Is it possible there's something hiding in a corrupted tdb file?  
I've tried deleting ntprinters.tdb without improvement.



Hi Daniel,

I can only offer moral support, I got the same problem but no solution
(yet).
Samba 3.0.28a on Ubuntu 8.04 LTS with OpenLDAP slapd 2.4.9

I read through this :
http://us6.samba.org/samba/docs/man/Samba-HOWTO-Collection/classicalprinting.html#id2620623 



But no luck and I want to avoid the whole rpcclient thing.

somebody here
(http://lists.samba.org/archive/samba/2006-January/116695.html) 
pointed to

http://www.extremetech.com/article2/0,1697,1722545,00.asp
Not sure what it has to do with it but I tried deleting the task thing
(no change)
(It explained where the 2227a280-3aea-1069-a2de-08002b30309d key comes 
from)


Parts of my smb.conf:

[global]
load printers = yes
printcap name = cups
printing = cups


[print$]
  comment = Printer Drivers
  path = /var/lib/samba/printers
  browseable = yes
  read only = yes
  guest ok = no
  write list = root, @Domain Admins, @Domain Users[print$]
  comment = Printer Drivers
  path = /var/lib/samba/printers
  browseable = yes
  read only = yes
  guest ok = no
  write list = root, @Domain Admins, @Domain Users
# Remove @Domain Users asap !!! Need printer setup working for Big
Xerox 7328 MFC


drwxrwxrwx 2 root Domain Admins  4096 2008-11-09 10:48 printers
(I will chmod this back to 775 ASAP)

The printer works in CUPS

root = part of Domain Admins
User root already member of the group Domain Admins.

What else did I do ?

Read
man 8 cupsaddsmb

Step 6 here fails:
http://de.samba.org/samba/docs/man/Samba-Guide/happy.html#id2575750

rebooted everything one more time, to give it another try...

Posted this 'cry for help'  msg...

Do I need cupsaddsmb?
I do NOT use RAW printing.


Thanks


Peter







Alrighty then... I think I got it... almost (*)

changed in smb.conf section : [print$]

  path = /usr/share/cups/drivers
#   path = /var/lib/samba/printers


Just before this change I did this :

[EMAIL PROTECTED]:/usr/share/cups/drivers# mkdir w32x86/3 -p

Not sure if it is needed to make those 2 sub-directories but it 
certainly doesn't hurt


after going through the add printer procedure 5.17
http://de.samba.org/samba/docs/man/Samba-Guide/happy.html#id2575750

I do an ls -l ... MAGIC


[EMAIL PROTECTED]:/usr/share/cups/drivers/w32x86/3# ls -l
total 18720
-rwxr--r-- 1 root root  728576 2007-05-22 05:29 PS5UI.DLL
-rwxr--r-- 1 root root  543232 2007-05-22 05:29 PSCRIPT5.DLL
-rwxr--r-- 1 root root   26038 2007-05-10 04:31 PSCRIPT.HLP
-rwxr--r-- 1 root root 1060548 2007-05-10 04:31 pscript.ntf
-rwxr--r-- 1 root root5561 2007-05-10 04:31 PS_SCHM.GDL
-rwxr--r-- 1 root root  742912 2008-03-06 13:25 x2comsB3.dll
-rwxr--r-- 1 root root 4605440 2008-03-06 13:25 x2coreB3.dll
-rwxr--r-- 1 root root  256000 2008-03-06 13:24 x2fpb02.exe
-rwxr--r-- 1 root root   31744 2008-03-06 13:15 x2fpd02.dll
-rwxr--r-- 1 root root  190753 2007-03-06 11:48 x2gp01p.chm
...



I kind'a understand what is going on but not completely...

Let me tell you does guys from the SaMBa team are geniuses... !
(Reverse engineering the winBlows crap and have it work with LDAP, CUPS 
 Co... JUST AWESOME !!!


No the (*) almost part.
When right-clicking on the printer and selecting properties I get an 
error window titled : Xerox Printer Driver
An unexpected error occurred in the print driver. Close the current 
driver window and retry the operation.

OK

Clicking Ok gives me the properties, however those are in read-only mode.

Somebody help us here?



Regards

Peter

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


Re: [Samba] Samba and Solidworks (cat and dog)?

2008-11-09 Thread FC Mario Patty
Guys,

Last progress, I've already updated to samba-3.0.32 (rpm-ed the tar.gz file
for 2 days :p). Now I can use vfs logging facility again and I find out that
the log is prettier than before. What still confusing me is the user cannot
directly double click their solidworks file in our production samba file
server (they have to run solidworks first). But this is not the case with my
other samba file server (it works great). The difference between both is

vfs objects = full_audit
full_audit:failure = none
full_audit:success = mkdir rename unlink rmdir pwrite write open
full_audit:prefix = %u|%I|%m

I will try to get the failure logs that I can try another troubleshoot.
Thank you.

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


Re: [Samba] Access Denied to Printers / Same thing here

2008-11-09 Thread Daniel L. Miller

Peter Van den Wildenbergh wrote:

Daniel L. Miller wrote:

Hi!

Trying to trace down a problem with printer sharing.  I don't see 
anything glaringly obvious with my smb.conf.  I am using LDAP and CUPS.


Using a Windoze client, accessing a printer I receive the friendly 
Access denied, unable to connect.  Checking the Samba logs, I find:


[2008/11/07 18:26:08,  0] param/loadparm.c:process_usershare_file(8268)
 process_usershare_file: share name 
::{2227a280-3aea-1069-a2de-08002b30309d} contains invalid characters 
(any of %*?|/\+=;:,)

[2008/11/07 18:26:08,  0] param/loadparm.c:process_usershare_file(8268)
 process_usershare_file: share name 
::{2227a280-3aea-1069-a2de-08002b30309d} contains invalid characters 
(any of %*?|/\+=;:,)

[2008/11/07 18:26:08,  0] smbd/service.c:make_connection(1362)
 daniel (192.168.0.60) couldn't find service 
::{2227a280-3aea-1069-a2de-08002b30309d}


I don't HAVE any shares with invalid characters - that I'm aware of.  
Is it possible there's something hiding in a corrupted tdb file?  
I've tried deleting ntprinters.tdb without improvement.


Is the case of the filenames in /usr/share/cups/drivers and 
/var/lib/samba/printers significant?


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


Re: [Samba] Samba spawning excessive smbd processes.

2008-11-09 Thread Volker Lendecke
On Sun, Nov 09, 2008 at 06:46:26PM +0100, Marco van Putten wrote:
 Thanks for your reply Jeremy.
 
 These are the outputs I got from gdb and strace. It looks like there is 
 not very much going on... Hopefully it makes some sense to you.
 
 # gdb smbd 32717
 (gdb) bt
 #0  0x2b55a75a9ddf in fcntl () from /lib64/libpthread.so.0
 #1  0x2b55a5e60256 in tdb_brlock () from /usr/sbin/smbd
 #2  0x2b55a5e60065 in tdb_lock () from /usr/sbin/smbd
 #3  0x2b55a5e601c0 in tdb_chainlock () from /usr/sbin/smbd

Corrupt tdb file. Are you storing the tdb files on reiserfs?
If yes, move them to something more robust like ext3. If
you're not using reiserfs, this sounds like flaky hardware
somewhere.

Volker


pgpnZrHdfmMCo.pgp
Description: PGP signature
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Re: [Samba] Samba spawning excessive smbd processes.

2008-11-09 Thread Marco van Putten

Corrupt tdb file. Are you storing the tdb files on reiserfs?
If yes, move them to something more robust like ext3. If
you're not using reiserfs, this sounds like flaky hardware
somewhere.

Volker



Thanks Volker.

The tdb file is on a ext3 filesystem. The disks themselves are 2 80GB 
SATA disks (hardware raid 1) in a HP DL320. To make sure I'm going to 
give them an extra check-up today.


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


Re: [Samba] testparm output vs documentation

2008-11-09 Thread Miguel Medalha
The parameters output by testparm -v are *349*, not 348 as I 
previously said. Sorry!

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


Re: [Samba] Access Denied to Printers / Same thing here - SOLVED once (*almost)

2008-11-09 Thread Michael Heydon


Using a Windoze client, accessing a printer I receive the friendly 
Access denied, unable to connect.  Checking the Samba logs, I find:



Alrighty then... I think I got it... almost (*)

changed in smb.conf section : [print$]

  path = /usr/share/cups/drivers
#   path = /var/lib/samba/printers


You are getting close :)

It is a driver related issue, you can either install windows drivers 
onto the samba server. This has the benefit of when ever you add the 
printer to a client the drivers will be installed automagically.


If you are just after a quick fix, just add use client driver = yes to 
your global section. This will get rid of the error, which is pretty 
much harmless anyway.


*Michael Heydon - IT Administrator *
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

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


Re: [Samba] Samba spawning excessive smbd processes.

2008-11-09 Thread Marco van Putten



Jeremy Allison wrote:

On Sat, Nov 08, 2008 at 06:28:42PM +0100, Marco van Putten wrote:

Hi,

We're running Samba (3.0.28-1.el5_2.1) on a Redhat (5.2) server using  
winbind to authenticate against a Windows AD.


This all worked fine for a while. But now we have the problem that  
(some) users coming from Linux clients cause an excessive amount of smbd  
processes. We had 1 user who had more than 1700 smbd processes all  
coming from the same client. While on the client side there where only a  
few cifs processes running.


All these processes are not responding to a normal kill. They have no  
more connection to the client what so ever and have to be killed with a  
kill -9.


Attach to these processes using strace -p pid and find out what
they're up to. Also try attaching with gdb attach command and
get a back trace. Don't forget to load the symbol tables also.

This should give some clue as to what is going on.

Jeremy.


Thanks for your reply Jeremy.

These are the outputs I got from gdb and strace. It looks like there is 
not very much going on... Hopefully it makes some sense to you.


# gdb smbd 32717
(gdb) bt
#0  0x2b55a75a9ddf in fcntl () from /lib64/libpthread.so.0
#1  0x2b55a5e60256 in tdb_brlock () from /usr/sbin/smbd
#2  0x2b55a5e60065 in tdb_lock () from /usr/sbin/smbd
#3  0x2b55a5e601c0 in tdb_chainlock () from /usr/sbin/smbd
#4  0x2b55a5dfa380 in is_locked () from /usr/sbin/smbd
#5  0x2b55a5df9e38 in is_locked () from /usr/sbin/smbd
#6  0x2b55a5cc5c11 in reply_write_and_X () from /usr/sbin/smbd
#7  0x2b55a5cfda14 in schedule_deferred_open_smb_message () from 
/usr/sbin/smbd

#8  0x2b55a5cfe9c1 in smbd_process () from /usr/sbin/smbd
#9  0x2b55a5f00d00 in main () from /usr/sbin/smbd


# strace -p 32717
fcntl(10, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=15032, len=1}


From a netstat these processes are in a CLOSE_WAIT or a TIME_WAIT status.

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


Re: [Samba] share folder for each user

2008-11-09 Thread Mohammad Reza Hosseini
so much sorry, 
thishttp://lists.samba.org/archive/samba/2005-June/106958.htmlis
correct. i used the shell script;

2008/11/9 Charles Marcus [EMAIL PROTECTED]

On 11/9/2008 2:59 AM, Mohammad Reza Hosseini wrote:
  Hello again,
  Solved! using this
 http://lists.samba.org/archive/samba/2004-May/085278.html

 ??

 That thread does NOT provide a solution...

 --

 Best regards,

 Charles







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


Re: [Samba] Samba and Solidworks (cat and dog)?

2008-11-09 Thread FC Mario Patty
BIG sorry,

My mistake, both the samba servers use the same smb.conf file (I have
changed the second smb.conf), except the netbios name parameter and they
both are failed to work with solidworks. Arrghh Funny thing is, although
we failed in the first double-click, the second will succeed! It doesn't
matter if you choose different *.sldprt file, the second openning always
succeed. I guess I'll go with windows xp troubleshooting now! Thank you for
your help.

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


Re: [Samba] Access Denied to Printers / Same thing here - SOLVED once (*almost)

2008-11-09 Thread Peter Van den Wildenbergh

Michael Heydon wrote:


You are getting close :)

But not close enough yet...


It is a driver related issue, you can either install windows drivers 
onto the samba server. This has the benefit of when ever you add the 
printer to a client the drivers will be installed automagically.
That's the part I solved (partually because I cannot change any settings 
from a client XP)


If you are just after a quick fix, just add use client driver = yes 
to your global section. This will get rid of the error, which is 
pretty much harmless anyway.
Will try that tomorrow. I tried a couple things after my last post, the 
driver is 'loaded' automagically with the log-in script.
(WSHNetwork.AddWindowsPrinterConnection \\Server\Xerox7328 picked from: 
http://www.tek-tips.com/faqs.cfm?fid=5798 )


WORD however is doing weird.
I cannot change the paper-size (paper-size = something 'custom', which 
happen to be the same as 'letter')


I've the feeling that if I can change the setting in the driver from a 
cient XP, that word will be able to pick up all available paper formats 
too...


I hope I don't have to revert to RAW after all this. On the other hand 
things have to work on Wednesday...


Regards

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


Re: [Samba] testparm output vs documentation

2008-11-09 Thread Miguel Medalha
When I run testparm -v (note the -v parameter), I get the output of 348 
parameters, including defaults and parameters which have no default. And 
that's how it should be. In this way, I can see my own settings, the 
settings that are in use by default even if I did not set them, and 
possible parameters that are not in use. I am glad testparm behaves this 
way. That was not the question in my first post.

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


Build status as of Mon Nov 10 00:00:02 2008

2008-11-09 Thread build
URL: http://build.samba.org/

--- /home/build/master/cache/broken_results.txt.old 2008-11-09 
00:00:41.0 +
+++ /home/build/master/cache/broken_results.txt 2008-11-10 00:00:39.0 
+
@@ -1,4 +1,4 @@
-Build status as of Sun Nov  9 00:00:03 2008
+Build status as of Mon Nov 10 00:00:02 2008
 
 Build counts:
 Tree Total  Broken Panic 
@@ -7,17 +7,17 @@
 ctdb 0  0  0 
 distcc   1  0  0 
 ldb  32 31 0 
-libreplace   30 12 0 
+libreplace   28 12 0 
 lorikeet-heimdal 28 20 0 
-pidl 17 2  0 
+pidl 18 2  0 
 ppp  12 12 0 
-rsync31 11 0 
+rsync32 11 0 
 samba-docs   0  0  0 
 samba-gtk5  5  0 
-samba_3_X_devel 28 19 1 
-samba_3_X_test 26 17 0 
+samba_3_X_devel 28 18 1 
+samba_3_X_test 28 17 0 
 samba_4_0_test 30 27 1 
-smb-build30 6  0 
+smb-build29 6  0 
 talloc   32 31 0 
 tdb  32 12 0