[Samba] Help!!!! Gettting samba core dumps

2012-02-15 Thread Rich
I transferred a Xen vm that was running on centos 5.7 with samba 3.6.3 to
 a centos 6.2 bare metal server with one E5502 and 16gig of memory. I have
been running Centos for 6 years on different servers for 6 years on several
different  upgrades.
This new server has a dual network card in it. I have samba 3.6.3 on it and
here is the smb.conf below:

[global]
workgroup = workwhatever
server string = 
interfaces = eth0
bind interfaces only = Yes
username map = /etc/samba/smbusers
log file = /var/log/samba/%m
name resolve order = wins lmhosts hosts bcast
time server = Yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
load printers = No
os level = 125
preferred master = Yes
domain master = Yes
wins support = Yes
idmap config * : backend = tdb
strict locking = No
dos filetime resolution = Yes
fake directory create times = Yes

[home]
path = /data/main/home/%u
read only = No
create mask = 0660
directory mask = 0770

[sbt]
path = /data/main/sbt
valid users = @sbt
read only = No
create mask = 0660
directory mask = 0770

[act]
path = /data/act
valid users = @act
read only = No
create mask = 0660
directory mask = 0770

[sharedir]
path = /data/main/shareddir
valid users = @shared
read only = No
create mask = 0660
directory mask = 0770

[everyuser]
path = /data/home
valid users = mainuser
read only = No
create mask = 0660
directory mask = 0770

[graphics]
path = /data/main/graphics
valid users = @graphics
read only = No
create mask = 0660
directory mask = 0770

[ghost]
path = /data/ghost/%u
read only = No
create mask = 0660
directory mask = 0770

[ghostdata]
path = /data/ghost
valid users = mainuser
read only = No
create mask = 0660
directory mask = 0770

I am getting the below dumps in my messages log.  I have cheked and
rechecked my dns. This is the only win server on the network.  Anyone has
any ideas whatsoever. PLEASE!!!

Feb 16 00:42:25 mainserver smbd[3513]:   From:
http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
Feb 16 00:42:25 mainserver smbd[3513]: [2012/02/16 00:42:25.751443,  0]
lib/fault.c:51(fault_report)
Feb 16 00:42:25 mainserver smbd[3513]:
===
Feb 16 00:42:25 mainserver smbd[3513]: [2012/02/16 00:42:25.751487,  0]
lib/util.c:1117(smb_panic)
Feb 16 00:42:25 mainserver smbd[3513]:   PANIC (pid 3513): internal error
Feb 16 00:42:25 mainserver smbd[3513]: [2012/02/16 00:42:25.756568,  0]
lib/util.c:1221(log_stack_trace)
Feb 16 00:42:25 mainserver smbd[3513]:   BACKTRACE: 27 stack frames:
Feb 16 00:42:25 mainserver smbd[3513]:#0 smbd(log_stack_trace+0x1c)
[0x7f8a8f0f276c]
Feb 16 00:42:25 mainserver smbd[3513]:#1 smbd(smb_panic+0x55)
[0x7f8a8f0f286e]
Feb 16 00:42:25 mainserver smbd[3513]:#2 smbd(+0x3e7867)
[0x7f8a8f0e4867]
Feb 16 00:42:25 mainserver smbd[3513]:#3
/lib64/libc.so.6(+0x3668032900) [0x7f8a8c0b6900]
Feb 16 00:42:25 mainserver smbd[3513]:#4 smbd(copy_serverinfo+0x1a)
[0x7f8a8f141685]
Feb 16 00:42:25 mainserver smbd[3513]:#5
smbd(make_server_info_guest+0x10) [0x7f8a8f141821]
Feb 16 00:42:25 mainserver smbd[3513]:#6 smbd(+0x443d89)
[0x7f8a8f140d89]
Feb 16 00:42:25 mainserver smbd[3513]:#7 smbd(+0x43ed40)
[0x7f8a8f13bd40]
Feb 16 00:42:25 mainserver smbd[3513]:#8 smbd(+0x44ac42)
[0x7f8a8f147c42]
Feb 16 00:42:25 mainserver smbd[3513]:#9
smbd(ntlmssp_server_auth+0xb37) [0x7f8a8eed72e0]
Feb 16 00:42:25 mainserver smbd[3513]:#10 smbd(ntlmssp_update+0x220)
[0x7f8a8eecd8ef]
Feb 16 00:42:25 mainserver smbd[3513]:#11
smbd(auth_ntlmssp_update+0x16) [0x7f8a8eecea87]
Feb 16 00:42:25 mainserver smbd[3513]:#12 smbd(+0x1377b2)
[0x7f8a8ee347b2]
Feb 16 00:42:25 mainserver smbd[3513]:#13
smbd(reply_sesssetup_and_X+0x183) [0x7f8a8ee34afe]
Feb 16 00:42:25 mainserver smbd[3513]:#14 smbd(+0x16d6a3)
[0x7f8a8ee6a6a3]
Feb 16 00:42:25 mainserver smbd[3513]:#15 smbd(+0x170c46)
[0x7f8a8ee6dc46]
Feb 16 00:42:25 mainserver smbd[3513]:#16 smbd(+0x170f0c)
[0x7f8a8ee6df0c]
Feb 16 00:42:25 mainserver smbd[3513]:#17 smbd(+0x170f4e)
[0x7f8a8ee6df4e]
Feb 16 00:42:25 mainserver smbd[3513]:#18 smbd(run_events_poll+0x3e1)
[0x7f8a8f100a5f]
Feb 16 00:42:25 mainserver smbd[3513]:#19 smbd(smbd_process+0xbbf)
[0x7f8a8ee6d993]
Feb 16 00:42:25 mainserver smbd[3513]:#20 smbd(+0x651904)
[0x7f8a8f34e904]
Feb 16 00:42:25 mainserver smbd[3513]:#21 smbd(run_events_poll+0x3e1)
[0x7f8a8f100a5f]
Feb 16 00:42:25 mainserver smbd[3513]:#22 smbd(+0x403e7a)
[0x7f8a8f100e7a]
Feb 16 00:42:25 mainserver smbd[3513]:#23 smbd(_tevent_loop_once+0x82)

Re: [Samba] regpatch writing to local registry hive with -F not working (registery-utils 4.0.0~alpha15~git20110124.dfsg1-2ubuntu1)

2011-07-26 Thread RiCH
Hi Denis,

I was just wondering if any progress was made with regpatch?

Yours hopefully :)

Rich

On Thu, 2011-05-19 at 09:08 +0200, denis.bonnenfant wrote:

 Wilco Baan Hofman a écrit :
  On Wed, 2011-05-18 at 16:01 +0200, denis bonnenfant wrote:

  Le mercredi 18 mai 2011 à 15:07 +0200, Wilco Baan Hofman a écrit :
  
  On Wed, 2011-05-18 at 12:33 +0200, Michael Wood wrote:
 

  Then it seems the -F option should be removed from regpatch.  Or
  should regpatch be replaced with something similar to the Python script
  you included below?
  
  My patch adds a -K option to regpatch for specifying the predef key
  where -F registry should be mounted. I will submit it for review soon,
  I'm currently experimenting a little bit, and there are still some bugs
  in .reg parsing
  
 

 
 In fact it doesn't make sense to mount regf files to anything but HKCU , 
 so -K option is not necessary, and HKCU can be hardcoded as mountpoint 
 for files specified by -F option.
 
 
  I use this quite a bit and I'm aware of two bugs, which is not directly
  related to the parsing, but that on windows unicode is implicit for
  certain data types even when the data is given in binary format, it's
  still converted. The other 'bug' is that unicode .reg files are not yet
  supported. I'd be very interested to know what other bugs there are.

 I found some problems with value deletion, sometimes values are not 
 deleted, reg_expand_sz data not correctly saved,  but i'm not sure that 
 the problem is in parsing. I'm going to experiment a little bit more.
 
 Denis


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

Re: [Samba] Samba process throttled back?

2011-06-27 Thread Lang, Rich
If I'm having oplock problems (i.e. poor performance), then would turning off 
oplocks altogether bring the performance back up?

Richard G. Lang
Sr. Software Engineer
la...@specsensors.commailto:la...@specsensors.com
(330) 659-3312

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


Re: [Samba] Samba process throttled back?

2011-06-24 Thread Lang, Rich
Actually, I've performed a network trace, but I was looking for something 
different.  I'm no expert in the SMB protocol, so I appreciate your comments.  
I'll look for these calls and see what I come up with.

Rich

-Original Message-
From: Volker Lendecke [mailto:volker.lende...@sernet.de] 
Sent: Thursday, June 23, 2011 4:46 PM
To: Lang, Rich
Cc: samba@lists.samba.org
Subject: Re: [Samba] Samba process throttled back?

On Thu, Jun 23, 2011 at 04:32:42PM -0400, Lang, Rich wrote:
 Thanks to all who responded.
 
 This shouldn't be anything to do with oplocks, although I
 understand their nature and how they can destroy
 performance.  The file I analyze is being accessed by no
 one but me - guaranteed.  We're a small company and I know
 that to be true.

Being the only one does not mean no oplocks are broken.
Excel as a sample application is very prone to do that. To
make 100% sure, you will need to look at the network trace
and look for lockingx calls from server to client without a
request. That's what I would look for next. But as you have
already done that I can't help anymore. Sorry.

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-37-0, fax: +49-551-37-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen

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


Re: [Samba] Samba process throttled back?

2011-06-23 Thread Lang, Rich
Well, it just gets curiouser and curiouser.

I downloaded, built and installed the latest stable version of Samba (i.e. 
3.5.9) on my inactive cluster member which is running RedHat ES 5.6.  In case 
I didn't show this before, here's the output of `uname -a`:
Linux mustang1 2.6.18-238.9.1.el5 #1 SMP Fri Mar 18 12:42:04 EDT 2011 i686 i686 
i386 GNU/Linux
Anyway, I create a share and copied the troublesome file to that share and 
opened it using the VB application that showed such poor performance.  It 
opened the file and processed it as quickly as if it were on my local hard 
drive.  This is more like it.  This is back to how the share used to respond.  
When I navigated back to the original copy of the file, the performance went to 
pieces again.
Same file, different versions of Samba, different performance.  Looks like I 
fixed it, although I don't know exactly what was wrong.
So, I wanted to take a wireshark snapshot of the poor performance to see if 
the client was negotiating the buffer size down over the wire.  In the 
meantime, the original file and its folder were moved from the Samba share to a 
M$ share on another server.  Oh well - I copied the file back to the Samba 
share.  Guess what?  The performance is great - back to where it was before the 
problem started.
So - it's not the version of Samba.  It looks like this is an inode corruption 
on the disk, although I've run fsck a number of times on the disk and it always 
comes up clean.
H...there might be some tools that I need to use to keep my shared disk 
clean.  We're running the cluster through a pair of HP SmartArray 642 SCSI 
interfaces both connected to an MSA 500 G2 disk array with redundant 
controllers.  There are four logical disks defined, each of which is defined as 
part of a cluster service so it can swing between cluster members in case of a 
failure.  Does anyone use this kind of disk array in a shared configuration 
like this?

Richard G. Lang
Sr. Software Engineer
la...@specsensors.commailto:la...@specsensors.com
(330) 659-3312

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


Re: [Samba] Samba process throttled back?

2011-06-23 Thread Lang, Rich
Thanks to all who responded.

This shouldn't be anything to do with oplocks, although I understand their 
nature and how they can destroy performance.  The file I analyze is being 
accessed by no one but me - guaranteed.  We're a small company and I know that 
to be true.

I reverted the secondary cluster member from Samba 3.5.9 back to 3.0.33 and, 
voila' - the slow performance returned.  No one else in the company even knows 
that this share exists, so this performance degradation isn't because someone 
else is breaking my oplock.

I ran a wireshark analysis on the net during a fast file analysis (under 
Samba 3.5.9) and a slow analysis (under Samba 3.0.33).  The SMB protocol 
shows that the client is the one that is ratcheting-down the file access to 
where single bytes are being retrieved from the server.  Under Samba 3.5.9, the 
client is retrieving data using 4096-byte blocks.

This may have happened due to a Microsoft update to the client at that point in 
time and 3.0.33 isn't responding correctly somehow.  I haven't found the real 
reason - I just know that 3.5.9 appears to work when 3.0.33 doesn't.  However, 
3.0.33 *does* work on the active cluster member.

Rich

-Original Message-
From: Jeremy Allison [mailto:j...@samba.org] 
Sent: Thursday, June 23, 2011 12:09 PM
To: Volker Lendecke
Cc: Lang, Rich; samba@lists.samba.org
Subject: Re: [Samba] Samba process throttled back?

On Thu, Jun 23, 2011 at 05:31:14PM +0200, Volker Lendecke wrote:
 Hi!
 
 I'd rather assume an oplock break. As long as you're alone
 on the file, it's fast. Once somebody else opens (or even
 just takes a look at) the file, it's slow. This can be
 confirmed with a network trace.

Yes, this is what screamed out to me. It has to be oplock
related IMHO.

Jeremy.

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


Re: [Samba] Samba process throttled back?

2011-06-20 Thread Lang, Rich
The clients may have undergone a change (Windows is always being patched), but 
the configuration of the server was not changed regarding oplocks.  No requests 
are being denied, since that situation would show up in the log file.



-Original Message-
From: Jeremy Allison [mailto:j...@samba.org]
Sent: Monday, June 20, 2011 3:49 PM
To: Lang, Rich
Cc: samba@lists.samba.org
Subject: Re: [Samba] Samba process throttled back?



On Fri, Jun 17, 2011 at 09:39:16AM -0400, Lang, Rich wrote:

 Hello,



 We are running Samba 3.0.33 on a 2-node Linux cluster running RedHat 5.6 ES.  
 Its primary application is to serve out a single network drive to support our 
 business (out 350GB in size).  For several years, this solution has been 
 running flawlessly.  File access was almost as fast as a local disk, so 
 putting files on the server was never a problem.  Our clients are running 
 mostly Windows XP Pro.  We have a few Windows 7 clients.



 Almost a year ago, that changed.  Applications written in VB 6.0 that read 
 files from the server started showing *significant* performance problems.  
 What used to take seconds now takes more than a minute to finish.  Moving the 
 file to a local disk brought the speed back up to where it should be.  Moving 
 the file to a Windows 2003 or 2008 server also provided good throughput.  All 
 clients experience this same problem.



 I ran strace -f against the smbd process that is assigned to my desktop and 
 then ran the VB application to see what the daemon was up to.  I discovered 
 that it went through a process of opening the file several times and reading 
 data from it, using progressively smaller buffer sizes until is settled on 
 using a buffer size of 1, which it used for the remainder of the file I/O 
 session.



This *seems* like clients not using oplocks, when previously they were. Has 
anything changed in the server system that might be denying oplock requests ?



Jeremy.

Richard G. Lang
Sr. Software Engineer
la...@specsensors.commailto:la...@specsensors.com
(330) 659-3312

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


Re: [Samba] Samba process throttled back?

2011-06-20 Thread Lang, Rich
Lang, Rich wrote:
 Hello,

 We are running Samba 3.0.33 on a 2-node Linux cluster running RedHat 5.6 ES.  
 Its primary application is to serve out a single network drive to support our 
 business (out 350GB in size).  For several years, this solution has been 
 running flawlessly.  File access was almost as fast as a local disk, so 
 putting files on the server was never a problem.  Our clients are running 
 mostly Windows XP Pro.  We have a few Windows 7 clients.

Any difference in performance between the client types?

None whatsoever.

Did the problems coincide with adding win7 machines to the network?

Nope.  Windows 7 didn't appear on the network until 8 months later.

Any new software on the clients (antivirus, firewall...etc?)  Is something 
using up more memory on them?

No - we can rule out the clients, since this happens on every client we have, 
no matter how it is configured.

on your sockets, I up the SO_RCVBUF and SO_SNDBUF to at least 65536 each 
(more won't help until full smb2 support is in samba)

I can make this change and see what happens.

Did you get any new windows servers on your network around the time of the 
problem?  I notice that you have your 'os level = 0', that means for things 
like name resolution, your smb server will have lowest
  priority -- even below a win98 client, as I understand it.

No new servers were added.  Our os level is low because the configuration file 
is for a BDC and only the PDC and BDC are part of this Samba-only domain - no 
Windows servers are a part of it.

You mention you ran an 'strace -f' on smbd.   Have you looked at a
wireshark trace?  That would tell you more -- like when negotiating a TCP 
session, if your windows client keeps reducing the RCV buffer size that would 
have told you why the reads were getting smaller.  Maybe you are getting packet 
drops, or similar

Good idea.  I would expect to see indications of this activity over the wire.  
I'll let you know ...

n   Reminds me,  do you have switches or hubs, what type of ethernet 
speed...I take it nothing in the hardward on the clients or the server has 
changed?

We run on all switches - Linksys and Dell.  We have 100MBPS to each desktop.

You say you are using RH.  Has the SW remained static since installation 
and through this problem increase (I.e. an auto-update of SW might have changed 
some setting in the kernel, or some firewall might have been added, 
modifiedetc...)...

This is a real possibility, although we've booted the servers up using a kernel 
image prior to the problem appearing and the problem remained.  Maybe I need to 
go back to a kernel module rev prior to the problem.

Are the windows client's 'paging' more?   I.e. was there any change
in the VB script or the SW it's using such that now there could be a memory 
leak, thus increased paging?

No - nothing like that is happening on the client.

Have you set/optimized your TCP/IP params on XP? (and what little
you can do on Win7...  which is less configurable than XP)   Have
you added more clients (significant?)...

These are pretty stock XP systems.  The problem was so sudden (worked great for 
years, then slowed to a crawl) that it has to be associated with a change on 
the server or the client.

On the Win clients...what SP are the XP clients running at?   Many
people complained when SP2 came out -- especially affected were network
applications.   SP3 has the best performance of the XP series (even
better than the original), while SP1 was slower than 'SP0' (original), and SP2 
was slower still...

We're all running at Windows XP service pack 3.

I don't have any specific theories...just asking for more data at this 
point, since there are so many possible variables...and just having the 
information out there would help anyone investigate the problem...



Good luck!
Linda


Thanks.


Richard G. Lang
Sr. Software Engineer
la...@specsensors.commailto:la...@specsensors.com
(330) 659-3312

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


[Samba] Samba process throttled back?

2011-06-17 Thread Lang, Rich
Hello,

We are running Samba 3.0.33 on a 2-node Linux cluster running RedHat 5.6 ES.  
Its primary application is to serve out a single network drive to support our 
business (out 350GB in size).  For several years, this solution has been 
running flawlessly.  File access was almost as fast as a local disk, so putting 
files on the server was never a problem.  Our clients are running mostly 
Windows XP Pro.  We have a few Windows 7 clients.

Almost a year ago, that changed.  Applications written in VB 6.0 that read 
files from the server started showing *significant* performance problems.  What 
used to take seconds now takes more than a minute to finish.  Moving the file 
to a local disk brought the speed back up to where it should be.  Moving the 
file to a Windows 2003 or 2008 server also provided good throughput.  All 
clients experience this same problem.

I ran strace -f against the smbd process that is assigned to my desktop and 
then ran the VB application to see what the daemon was up to.  I discovered 
that it went through a process of opening the file several times and reading 
data from it, using progressively smaller buffer sizes until is settled on 
using a buffer size of 1, which it used for the remainder of the file I/O 
session.

I've attached the smb.conf file for your reading pleasure.  I can attach the 
strace output file if that would be helpful.

I suspect that something changed on the Windows desktop side to bring this 
about, since we made no changes to our VB code at all.

Richard G. Lang
Sr. Software Engineer
la...@specsensors.commailto:la...@specsensors.com
(330) 659-3312

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

[Samba] Samba process throttled back?

2011-06-17 Thread Lang, Rich
Sorry - I didn't realize the list wouldn't accept attachments.  Here is the 
smb.conf file:

#Backup Domain Controller
## Global parameters
[global]
unix charset = LOCALE
workgroup = IBMPEERS
netbios name = mustang1
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY 
SO_RCVBUF=16384 SO_SNDBUF=16384
passdb backend = ldapsam:ldap://mustang1.si.lan 
ldap://mustang2.si.lan;
#  passdb backend = ldapsam:ldap://mustang1.si.lan;
username map = /etc/samba/smbusers
#  interfaces = 192.168.2.242/32
#  bind interfaces only = yes
log level = 0
syslog = 1
log file = /var/log/samba/%m
max log size = 1024
name resolve order = wins bcast hosts
guest account = nobody
#  printcap name = CUPS
#  show add printer wizard = No
logon script = logon.bat
logon path =
logon drive = C:
domain logons = Yes
domain master = No
local master = no
preferred master = no
os level = 0
wins server = mustang2.si.lan
ldap suffix = dc=IBMPEERS,dc=lan
ldap machine suffix = ou=Computers,ou=Users
ldap user suffix = ou=People,ou=Users
ldap group suffix = ou=Groups
ldap idmap suffix = ou=Idmap
ldap admin dn = cn=sambaadmin,dc=IBMPEERS,dc=lan
utmp = no
idmap backend = ldap://mustang2.si.lan
idmap uid = 1-2
idmap gid = 1-2
#  printing = cups
veto files = /*.eml/*.nws/*.{*}/
veto oplock files = /*.doc/*.xls/*.mdb/*.pdf/
#Share Definitions=
[si]
comment = Shared disk service on SI Cluster
veto files = /.clumanager/.rgmanager/
browsable = yes
writable = yes
public = yes
path = /mnt/share/si
#
#- Force all files/dirs to be create group-writeable and world-readable.
#
create mask = 0664
force create mode = 0664
directory mask = 0775
force directory mode = 0775

[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No

#[test]
#  comment = TEST
#  browseable = yes
#  writable = yes
#  public = yes
#  path = /tmp/data1
#
[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
guest ok = Yes
locking = No

[profiles]
comment = Profile Share
path = /var/lib/samba/profiles
read only = No
profile acls = Yes

[cdrom]
oplocks = False
level2 oplocks = False
comment = CD-ROM/DVD
path = /mnt/cdrom
read only = Yes
guest ok = Yes
public = Yes
browsable = Yes

Richard G. Lang
Sr. Software Engineer
la...@specsensors.commailto:la...@specsensors.com
(330) 659-3312

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


Re: [Samba] regpatch writing to local registry hive with -F not working (registery-utils 4.0.0~alpha15~git20110124.dfsg1-2ubuntu1)

2011-05-19 Thread RiCH
On Thu, 2011-05-19 at 09:08 +0200, denis.bonnenfant wrote:

 Wilco Baan Hofman a écrit :
  On Wed, 2011-05-18 at 16:01 +0200, denis bonnenfant wrote:

  Le mercredi 18 mai 2011 à 15:07 +0200, Wilco Baan Hofman a écrit :
  
  On Wed, 2011-05-18 at 12:33 +0200, Michael Wood wrote:
 

  Then it seems the -F option should be removed from regpatch.  Or
  should regpatch be replaced with something similar to the Python script
  you included below?
  
  My patch adds a -K option to regpatch for specifying the predef key
  where -F registry should be mounted. I will submit it for review soon,
  I'm currently experimenting a little bit, and there are still some bugs
  in .reg parsing
  
 

 
 In fact it doesn't make sense to mount regf files to anything but HKCU , 
 so -K option is not necessary, and HKCU can be hardcoded as mountpoint 
 for files specified by -F option.
 


Sorry if I am misunderstanding something here, but if the .reg file is
modifying a software or system key shouldn't regpatch
 mount the appropriate hive,  mounting under HKLM/Software  system
under HKLM/system etc. ?

(I currently am using Ghost's linux ghregedit to do this, but I am
hoping for a license free version, ... I have been searching for a very
long time for something that actually works!)

I was envisaging a usage along these lines;
regpatch -F  /mnt/xp/WINDOWS/ myregpatch.reg #regpatch loads the hives
needed itself based on the WNIDOWS target dir (auto filling
system32/config), this approximates to how ghrededit works
..or more in keeping with how its setup at the moment
regpatch -F  /mnt/something/software,/mnt/something/system
myregpatch.reg #tell it what hives to load

I appreciate all the effort everyone is putting in. Thanks.


 
  I use this quite a bit and I'm aware of two bugs, which is not directly
  related to the parsing, but that on windows unicode is implicit for
  certain data types even when the data is given in binary format, it's
  still converted. The other 'bug' is that unicode .reg files are not yet
  supported. I'd be very interested to know what other bugs there are.

 I found some problems with value deletion, sometimes values are not 
 deleted, reg_expand_sz data not correctly saved,  but i'm not sure that 
 the problem is in parsing. I'm going to experiment a little bit more.
 
 Denis


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

Re: [Samba] regpatch writing to local registry hive with -F not working (registery-utils 4.0.0~alpha15~git20110124.dfsg1-2ubuntu1)

2011-05-15 Thread RiCH
Hi Michael,

Many thanks for your reply - have tried your second patch on the git I
just pulled, and got about as far as you, 
.reg file contains a bit for system and software hive, first entry in it
relates to software hive

against software hive

rfm6@KubuntuSSDx64:/media/7200.12/clonemod/source/samba4/bin/default/source4/lib/registry$
 ./regpatch -d=10 -F /tmp/config/software /tmp/config/RunOnceEx.reg
INFO: Current debug levels:
  all: 10
  tdb: 10
  printdrivers: 10
  lanman: 10
  smb: 10
  rpc_parse: 10
  rpc_srv: 10
  rpc_cli: 10
  passdb: 10
  sam: 10
  auth: 10
  winbind: 10
  vfs: 10
  idmap: 10
  quota: 10
  acls: 10
  locking: 10
  msdfs: 10
  dmapi: 10
  registry: 10
Attempting to load registry file
3444 HBIN blocks read
Opening parent of HKEY_LOCAL_MACHINE\SOFTWARE failed with WERR_BADFILE
Error adding new key 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
\CurrentVersion\RunOnceEx\940': WERR_BADFILE
Error adding key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
\CurrentVersion\RunOnceEx\940
rfm6@KubuntuSSDx64:/media/7200.12/clonemod/source/samba4/bin/default/source4/lib/registry$
 



against system hive

rfm6@KubuntuSSDx64:/media/7200.12/clonemod/source/samba4/bin/default/source4/lib/registry$
 ./regpatch -d=10 -F /tmp/config/system /tmp/config/RunOnceEx.reg 
INFO: Current debug levels:
  all: 10
  tdb: 10
  printdrivers: 10
  lanman: 10
  smb: 10
  rpc_parse: 10
  rpc_srv: 10
  rpc_cli: 10
  passdb: 10
  sam: 10
  auth: 10
  winbind: 10
  vfs: 10
  idmap: 10
  quota: 10
  acls: 10
  locking: 10
  msdfs: 10
  dmapi: 10
  registry: 10
Attempting to load registry file
789 HBIN blocks read
Opening parent of HKEY_LOCAL_MACHINE\SOFTWARE failed with WERR_BADFILE
Error adding new key 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
\CurrentVersion\RunOnceEx\940': WERR_BADFILE
Error adding key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
\CurrentVersion\RunOnceEx\940
rfm6@KubuntuSSDx64:/media/7200.12/clonemod/source/samba4/bin/default/source4/lib/registry$
 

changing order of things in .reg file so system hive alteration is first
bit

rfm6@KubuntuSSDx64:/media/7200.12/clonemod/source/samba4/bin/default/source4/lib/registry$
 ./regpatch -d=10 -F /tmp/config/system /tmp/config/RunOnceEx2.reg 
INFO: Current debug levels:
  all: 10
  tdb: 10
  printdrivers: 10
  lanman: 10
  smb: 10
  rpc_parse: 10
  rpc_srv: 10
  rpc_cli: 10
  passdb: 10
  sam: 10
  auth: 10
  winbind: 10
  vfs: 10
  idmap: 10
  quota: 10
  acls: 10
  locking: 10
  msdfs: 10
  dmapi: 10
  registry: 10
Attempting to load registry file
789 HBIN blocks read
Opening parent of HKEY_LOCAL_MACHINE\SYSTEM failed with WERR_BADFILE
Error adding new key 'HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services
\Intelppm': WERR_BADFILE
Error adding key HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services
\Intelppm
rfm6@KubuntuSSDx64:/media/7200.12/clonemod/source/samba4/bin/default/source4/lib/registry$


removed all system hive references, only entry relates to system hive

rfm6@KubuntuSSDx64:/media/7200.12/clonemod/source/samba4/bin/default/source4/lib/registry$
 ./regpatch -d=10 -F /tmp/config/system /tmp/config/RunOnceEx3.reg 
INFO: Current debug levels:
  all: 10
  tdb: 10
  printdrivers: 10
  lanman: 10
  smb: 10
  rpc_parse: 10
  rpc_srv: 10
  rpc_cli: 10
  passdb: 10
  sam: 10
  auth: 10
  winbind: 10
  vfs: 10
  idmap: 10
  quota: 10
  acls: 10
  locking: 10
  msdfs: 10
  dmapi: 10
  registry: 10
Attempting to load registry file
789 HBIN blocks read
Opening parent of HKEY_LOCAL_MACHINE\SYSTEM failed with WERR_BADFILE
Error adding new key 'HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services
\Intelppm': WERR_BADFILE
Error adding key HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services
\Intelppm


not specifying a hive so it writes to local samba hklm.tdb (seems to
work fine)

rfm6@KubuntuSSDx64:/media/7200.12/clonemod/source/samba4/bin/default/source4/lib/registry$
 sudo ./regpatch -d=10 /tmp/config/RunOnceEx.reg
INFO: Current debug levels:
  all: 10
  tdb: 10
  printdrivers: 10
  lanman: 10
  smb: 10
  rpc_parse: 10
  rpc_srv: 10
  rpc_cli: 10
  passdb: 10
  sam: 10
  auth: 10
  winbind: 10
  vfs: 10
  idmap: 10
  quota: 10
  acls: 10
  locking: 10
  msdfs: 10
  dmapi: 10
  registry: 10
ldb: ldb_trace_request: SEARCH
 dn: @MODULES
 scope: base
 expr: (@LIST=*)
 attr: @LIST
 control: NONE

ldb: ldb_trace_request: (tdb)-search
ldb: no modules required by the db
ldb: No modules specified for this database
ldb: ldb_trace_request: REGISTER_CONTROL
1.2.840.113556.1.4.1413
 control: NONE

ldb: ldb_trace_request: SEARCH
 dn: rootDSE
 scope: base
 expr: (objectClass=*)
 attr: rootDomainNamingContext
 attr: configurationNamingContext
 attr: schemaNamingContext
 attr: defaultNamingContext
 control: NONE

ldb: ldb_trace_request: (tdb)-search
ldb_wrap open of /usr/local/samba/private/hklm.ldb
ldb: start ldb transaction (nesting: 0)
ldb: ldb_trace_request: (tdb)-start_transaction
ldb: start ldb transaction error: (null)
ldb: ldb_trace_request: ADD
dn: @ATTRIBUTES

Re: [Samba] regpatch writing to local registry hive with -F not working (registery-utils 4.0.0~alpha15~git20110124.dfsg1-2ubuntu1)

2011-05-15 Thread RiCH
Bonjour Denis,

I would be very grateful if you manage to do it!

Rich

On Sun, 2011-05-15 at 17:41 +0200, denis bonnenfant wrote:

 Le dimanche 15 mai 2011 à 10:26 +0200, denis bonnenfant a écrit :
  Le dimanche 15 mai 2011 à 00:28 +0200, Michael Wood a écrit :
   On 14 May 2011 22:09, Michael Wood esiot...@gmail.com wrote:
On 14 May 2011 19:53, RiCH r...@richud.com wrote:
Hi,
   
  
  Hi, 
  
  Two years ago, I worked a bit on this. There was a lot of things to be
  done for full support of regf files patching . My patches mostly worked,
  but I never submitted it because I finally decided to generate .pol
  files with a small python script and appmently it on client side instead
  of patching regf files server-side.
  
  So I'm going to resurrect my old sources, rebase it on current git, and
  hope it helps... As far as I remember, there was some problems with regf
  format writing, and the registry files generated were sometimes
  corrupted. Investigating it may be quite difficult, as regf format is
  not simple and badly documented. But maybe some work was already done
  yet ? 
 
 I had a look, and the merge is not straightforward. So I have work on it
 a little bit. Hopefully, regf code seems  corrected, so I expect some
 good news...
 
 Denis


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

[Samba] regpatch writing to local registry hive with -F not working (registery-utils 4.0.0~alpha15~git20110124.dfsg1-2ubuntu1)

2011-05-14 Thread RiCH
: rootDomainNamingContext
 attr: configurationNamingContext
 attr: schemaNamingContext
 attr: defaultNamingContext
 control: NONE

ldb: ldb_trace_request: (tdb)-search
ldb_wrap open of /var/lib/samba/private/hku.ldb
ldb: start ldb transaction (nesting: 0)
ldb: ldb_trace_request: (tdb)-start_transaction
ldb: start ldb transaction error: (null)
ldb: ldb_trace_request: ADD
dn: @ATTRIBUTES
changetype: add
key: CASE_INSENSITIVE
value: CASE_INSENSITIVE


 control: NONE

ldb: ldb_trace_request: (tdb)-add
ldb: ldb_trace_request: (tdb)-prepare_commit
ldb: commit ldb transaction (nesting: 0)
ldb: ldb_trace_request: (tdb)-end_transaction
Key 'key=SOFTWARE,hive=NONE' not found
key added: key=SOFTWARE,hive=NONE
Key 'key=Microsoft,key=SOFTWARE,hive=NONE' not found
key added: key=Microsoft,key=SOFTWARE,hive=NONE
Key 'key=Windows NT,key=Microsoft,key=SOFTWARE,hive=NONE' not found
key added: key=Windows NT,key=Microsoft,key=SOFTWARE,hive=NONE
Key 'key=CurrentVersion,key=Windows
NT,key=Microsoft,key=SOFTWARE,hive=NONE' not found
key added: key=CurrentVersion,key=Windows
NT,key=Microsoft,key=SOFTWARE,hive=NONE
Key 'key=Winlogon,key=CurrentVersion,key=Windows
NT,key=Microsoft,key=SOFTWARE,hive=NONE' not found
key added: key=Winlogon,key=CurrentVersion,key=Windows
NT,key=Microsoft,key=SOFTWARE,hive=NONE
About to write LegalNoticeCaption with type (null), length 0: 
About to write LegalNoticeText with type (null), length 0: 
About to write allocatecdroms with type (null), length 1: 1
About to write AutoAdminLogon with type (null), length 1: 1

regdiff also seems to ignore any .reg files passed to it.
conversely regtree and regshell both seem to work fine operating on a
local hive though. (actually regtree borks reading the software hive but
is ok on others)

The man pages elude to it being able to do this so is it me being thick
or is it not meant to work?
http://manpages.ubuntu.com/manpages/natty/en/man1/regpatch.1.html

I am using 4.0.0~alpha15~git20110124.dfsg1-2ubuntu1

Regards

Rich


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


Re: [Samba] Printing failure through PDC

2008-03-25 Thread Rich West
Volker Lendecke wrote:
 On Sat, Mar 22, 2008 at 04:12:26PM -0400, Rich West wrote:
   
 I recently went through a system upgrade, which resulted in an upgrade 
 of Samba to 3.0.28a.  This is for a home network, so it isn't heavily 
 taxed (only by family members), but I do use the environment as a 
 sandbox of sorts for stuff that I plan to roll in to production in the 
 office.
 

 Can you recompile Samba with -g and run it under valgrind?
 The logfile of the segfault would be very helpful.

Hrmm.. I'll have to work on that, then. :(  I'm running off of the
standard RPM...

-Rich

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


Re: [Samba] Printing failure through PDC

2008-03-25 Thread Rich West

Rich West wrote:
I recently went through a system upgrade, which resulted in an upgrade 
of Samba to 3.0.28a.  This is for a home network, so it isn't heavily 
taxed (only by family members), but I do use the environment as a 
sandbox of sorts for stuff that I plan to roll in to production in the 
office.


I had some funky issues with authentication to start with after the 
upgrade, so I went through the (somewhat) painful steps to set up 
ldapsam.  I managed to get all of the users set up within LDAP, and 
all of the machine accounts configured within LDAP, and logging in and 
out of the domain with roaming profiles (using samba to create the 
machine accounts and user accounts turned out to be the right way to 
do it rather than to hand modify the LDAP accounts).


The only remaining issue is with regard to printing: When a Windows 
user connects to the printer (hppsc2510) and sends a test page, they 
get an error stating that the job failed to print (unable to create 
print job).  In the log.system name file, I can see:

[..snip...]
--
At this point, I'm truly unsure of what is failing.  I've made sure 
that /var/spool/samba exists and is world writeable.  I tried moving 
it out of the way and testing, and samba gave an appropriate error in 
the log file.  I tried shutting down CUPS and doing the same test, and 
samba gave an appropriate error then, too.


I can print via the command line on the samba server (a Fedora 8 box) 
as the same user who is logged in on the windows box...


Any ideas?

-Rich


Actually, I made some headway.. I found that we had an old setting for 
disable spoolss = yes in place.  Removing that allowed things to get a 
tiny bit forward.  I'm not seeing much logged, but I am getting Test 
page failed to print ... Access is denied. from the windows side.  
The Windows box successfully gets the driver as supplied by the samba 
server, so I know that part is working.  I'm just not sure what the 
Access is denied. is referring to...


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


Re: [Samba] Recovering Windows computer account string

2008-03-23 Thread Rich West
It might be easier to remove the system from the domain and re-add it to 
the domain...


-Rich


We utilize the smbpasswd text file back end. One machine (VM machine) 
suddenly thinks its entry in the Samba PDC's smbpasswd file is no 
longer correct. Is there a way to fetch that number back out of a 
Windows 2000 workstation and paste it into the smbpasswd file to 
re-trust the workstation?


Thanks!



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


[Samba] Printing failure through PDC

2008-03-22 Thread Rich West
 14:43:25, 5] auth/auth_util.c:debug_unix_user_token(474)
 UNIX token of user 0
 Primary group is 0 and contains 0 supplementary groups
[2008/03/22 14:43:25, 5] smbd/uid.c:change_to_root_user(288)
 change_to_root_user: now uid=(0,0) gid=(0,0)
[2008/03/22 14:43:25, 3] smbd/sec_ctx.c:set_sec_ctx(241)
 setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2008/03/22 14:43:25, 5] auth/auth_util.c:debug_nt_user_token(448)
 NT user token: (NULL)
[2008/03/22 14:43:25, 5] auth/auth_util.c:debug_unix_user_token(474)
 UNIX token of user 0
 Primary group is 0 and contains 0 supplementary groups
[2008/03/22 14:43:25, 5] smbd/uid.c:change_to_root_user(288)
 change_to_root_user: now uid=(0,0) gid=(0,0)
[2008/03/22 14:43:25, 3] smbd/service.c:close_cnum(1230)
 synapse (192.168.56.254) closed connection to service IPC$
[2008/03/22 14:43:25, 3] smbd/connection.c:yield_connection(69)
 Yielding connection to IPC$
[2008/03/22 14:43:25, 4] smbd/vfs.c:vfs_ChDir(665)
 vfs_ChDir to /
[2008/03/22 14:43:25, 3] smbd/sec_ctx.c:set_sec_ctx(241)
 setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2008/03/22 14:43:25, 5] auth/auth_util.c:debug_nt_user_token(448)
 NT user token: (NULL)
[2008/03/22 14:43:25, 5] auth/auth_util.c:debug_unix_user_token(474)
 UNIX token of user 0
 Primary group is 0 and contains 0 supplementary groups
[2008/03/22 14:43:25, 5] smbd/uid.c:change_to_root_user(288)
 change_to_root_user: now uid=(0,0) gid=(0,0)
[2008/03/22 14:43:25, 5] lib/util.c:show_msg(506)
[2008/03/22 14:43:25, 5] lib/util.c:show_msg(516)
 size=35
 smb_com=0x71
 smb_rcls=0
 smb_reh=0
 smb_err=0
 smb_flg=136
 smb_flg2=51201
 smb_tid=1
 smb_pid=65279
 smb_uid=101
 smb_mid=64832
 smt_wct=0
 smb_bcc=0

--
At this point, I'm truly unsure of what is failing.  I've made sure that 
/var/spool/samba exists and is world writeable.  I tried moving it out 
of the way and testing, and samba gave an appropriate error in the log 
file.  I tried shutting down CUPS and doing the same test, and samba 
gave an appropriate error then, too.


I can print via the command line on the samba server (a Fedora 8 box) as 
the same user who is logged in on the windows box...


Any ideas?

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


[Samba] Problems with Samba share access

2008-02-27 Thread Rich Bloch
Hello all,

I'm having some trouble getting my Debian-based NAS running correctly
with Samba permissions.

For trouble-shooting purposes, I have three machines of interest:

--MACHINE A: NAS (running Debian/2.6), the machine I want to share
folders
--MACHINE B: Windows Vista: Samba read/write share access works great,
no problems
--MACHINE C: Linux (running Debian/2.6) machine: SHARE ACCESS VERY
SLOW/FAILS

So, my problem is that when I attempt to share MACHINE A with MACHINE
C, I see the following behavior:

1) Authentication Required dialog pops up, requesting authorization
for [EMAIL PROTECTED] on DOMAIN_NAME (where DOMAIN_NAME is my
workgroup name)
2) After providing a password, I get a second Authentication
Required dialog, this time indicating authorization for
[EMAIL PROTECTED] on DOMAIN_NAME (where USER_NAME is my user name)
3) After providing a password again, some time passes--on the order of
30-90 seconds--and this second dialog again is displayed.

At this point, I either see this process repeated (repeat step 3
indefinitely), and never get access granted, or--after another 30-90
seconds--I finally receive access to the Samba shares. In the event I
do get access granted, I have no problems with access for the rest of
my session (until session restart or machine restart). So it seems
something is getting cached.

So, clearly, there appears to be some sort of negotiating happening
here between MACHINE A (the Samba server) and MACHINE C (the Samba
client).

Some details:

--Both machines are running Samba 3.0.24
--smb.conf is config'd with security = SHARE; specific shares with
read only = No, and guest ok = Yes
--I have no problems with share access between MACHINE A (NAS device:
the Samba server) and MACHINE B (Windows Vista: the Samba client)

So, here are my questions:

--What might cause this kind of behavior? How can I get rid of these
long authentication delays?
--What tools are available to me for troubleshooting a Samba
negotiation?

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


[Samba] Windows host profile problem (write access denied)

2007-06-14 Thread Rich McClellan

Greetings,

Some users on a Windows XP Professional host are (lately) unable to use
their roaming profile.  A Windows error message states that due to a
security problem or a corrupt profile, that it is unusable.  A second error
message immediately following the first states that a temporary profile will
be used and that any changes will not be saved.  Other users are able to log
on with their profile, but they are unable to save changes to it when
logging off (the Windows error message suggests it is bad hardware or a
network problem that prevents the write).

The PDC is running Samba version 3.0.23c-2.el5.2.0.2 on CentOS 5.0 x86_64
with kernel 2.6.18-8.1.4.5.el5xen.  OpenLDAP is the backend (v 2.3.27-5).

There are no obvious error messages on the Samba server.  The following
error message shows up only when the computer with problems is online:
smbd[11981]:  [2007/06/14 12:34:01.108071, 0]
lib/smbldap.c:smbldap_open(1009)
smbd[11981]:   smbldap_open: cannot access LDAP when not root..

Typing `smbstatus` on the PDC shows that the user logging on is being denied
write access to the files in their profile.  The output of smbstatus looks
something like this:
11981 510 DENY_WRITE 0x20089 RDONLY NONE home dir profile item date

The unix permissions are correct.  No problems with other permissions from
the Windows side (i.e., writing to H:) have appeared.

Interestingly, Windows error messages regarding unable to write file foo to
.../USER_A/windows/profile/... appear when USER_B logs in.

Here's the Samba configuration file from the PDC (aka Asterix/ldap (and
there's a BDC named Obelix/bdc/ldap2)):

# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2007/05/15 15:24:29

[global]
  workgroup = FOO
   server string = Primary Domain Controller
   password server = *
   passdb backend = ldapsam:ldap://ldap.foo.com ldap://ldap2.foo.com;
#   log level = 0
#   log level = 50 passdb:50 auth:20 winbind:20
   log file = /var/log/samba/%m.log
   max log size = 50
   debug hires timestamp = Yes
   smb ports = 139
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   logon script = %U.bat
#   logon path = \\%N\%U\windows\profile
   logon path = \\asterix\%U\windows\profile
   logon home = \\asterix\%U
   logon drive = H:
   domain logons = Yes
   os level = 65
   preferred master = Yes
   domain master = Yes
   local master = Yes
   security = User
   dns proxy = No
   wins support = Yes
   ldap admin dn = cn=ldapadmin,dc=foo,dc=com
   ldap group suffix = ou=Group
   ldap machine suffix = ou=Computers
   ldap passwd sync = Yes
   ldap suffix = dc=foo,dc=com
   ldap ssl = no
   idmap backend = ldap:ldap://ldap.foo.com
   idmap uid = 16777216-33554431
   idmap gid = 16777216-33554431
   interfaces = eth0 192.168.10.13 lo 127.0.0.1
   bind interfaces only = yes
   passwd chat debug = Yes

   template shell = /bin/false
   winbind use default domain = false
[netlogon]
   path = /var/lib/samba/netlogon
   browseable = No
[homes]
   comment = Home Directories
   read only = No
   browseable = No

[common]
   comment = stuff for everybody
   path = /export/common
   read only = No

[papers]
   comment = Literature repository
   path = /export/papers
   read only = No

[software]
   comment = useful programs
   path = /export/src
   read only = No

[admin]
   comment = Administrative stuff
   path = /export/admin
   invalid users = user1
   valid users = user2, user3
   write list = user2, user3
   read only = No
   create mask = 0740
   security mask = 0770
   directory mask = 0750
   directory security mask = 0700
   browseable = No

[exec]
   comment = executive storage
   path = /export/exec
   invalid users = user1, user2
   valid users = user3
   read only = No
   create mask = 0740
   security mask = 0770
   directory mask = 0750
   directory security mask = 0770
   browseable = No

[1815dn]
   comment = Dell 1815dn laser printer
   path = /var/spool/samba
   guest ok = Yes
   printable = Yes
   cups options = raw



Thanks for your time+help!
Rich
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] can't browse via network neighbourhood

2006-11-09 Thread rich


Hi,
i'm running samba Version 3.0.22 on solaris 8.
In my previous version of samba, windows  users  could browse to their 
shares through network neighbourhood.
They can no longer do this and have to manually map each drive. Any 
ideas why this might be? My smb.conf is below.


The error says the network name cannot be found

TIA,
Rich

[global]
   workgroup = TEST
   server string = test Samba Server
   unix password sync = Yes
   log level = 2
   log file = /var/log/samba/samba.log.%m
   max log size = 50
   wins support = Yes
   invalid users = bin, web, daemon, adm, sync, shutdown, halt, mail, 
news, uucp, operator, nuucp, lp, listen, nobody

   create mask = 0777
   directory mask = 0777
   hosts allow = 192.168.1., localhost

[homes]
   comment = Home Directories
   path = /home/%u
   read only = No
   guest ok = Yes
   browseable = No

[shares]
   comment = File sharing area
   path = /data/shares/
   valid users = trevor, thomas, kev, brian
   read only = No
   volume = data-share


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


Re: [Samba] Re: password required when connecting from xp but not linux

2006-07-24 Thread rich


yes, but not for mount point1  or point2

Marian wrote:

Yuo have homes guest ok =yes .

rich [EMAIL PROTECTED] napísal v správe 
news:[EMAIL PROTECTED]
  

Hi,

I have samba version 3.0.22 installed on solaris 8.
I have added users with smbpasswd -a.
When mounting from an XP machine passwords are required, yet when mounting 
from fedora5 it prompts for a password but mounts

irrespective of what is entered. Any ideas?

TIA
Rich

# more /usr/local/samba_new/lib/smb.conf
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2006/06/22 15:34:54

[global]
   workgroup = HOME
   server string = Unix Server
   unix password sync = Yes
   log level = 2
   log file = /var/log/samba/samba.log.%m
   max log size = 50
   wins support = Yes
   invalid users = bin, web, daemon, adm, sync, shutdown, halt, mail, 
news, uucp, operator, nuucp, lp, listen, nobody, noaccess

   create mask = 0777
   directory mask = 0777
   hosts allow = 192.168.1., localhost

[homes]
   comment = Home Directories
   path = /userdata/home/%u
   read only = No
   guest ok = Yes
   browseable = No

[point1]
   comment = point1
   path = /point1
   valid users = user1,user2,user3
   read only = No

[point2]
   comment = point2
   path = /point2
   valid users = user1,user2,user3
   read only = No


cut
--
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] password required when connecting from xp but not linux

2006-07-20 Thread rich

Hi,

I have samba version 3.0.22 installed on solaris 8.
I have added users with smbpasswd -a.
When mounting from an XP machine passwords are required, yet when 
mounting from fedora5 it prompts for a password but mounts

irrespective of what is entered. Any ideas?

TIA
Rich

# more /usr/local/samba_new/lib/smb.conf
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2006/06/22 15:34:54

[global]
   workgroup = HOME
   server string = Unix Server
   unix password sync = Yes
   log level = 2
   log file = /var/log/samba/samba.log.%m
   max log size = 50
   wins support = Yes
   invalid users = bin, web, daemon, adm, sync, shutdown, halt, 
mail, news, uucp, operator, nuucp, lp, listen, nobody, noaccess

   create mask = 0777
   directory mask = 0777
   hosts allow = 192.168.1., localhost

[homes]
   comment = Home Directories
   path = /userdata/home/%u
   read only = No
   guest ok = Yes
   browseable = No

[point1]
   comment = point1
   path = /point1
   valid users = user1,user2,user3
   read only = No

[point2]
   comment = point2
   path = /point2
   valid users = user1,user2,user3
   read only = No


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


[Samba] using unix authentication (/etc/passwd)

2006-06-22 Thread rich
Hi when using samba version Version 2.0.5a (I didn't compile) I never 
had to explicitly set up samba users with smbpasswd -a.
Since upgrading to version 3.0.22 I now have to add each user otherwise 
I get the following in the logs


[2006/06/15 14:20:46, 2] auth/auth.c:check_ntlm_password(317)
 check_ntlm_password:  Authentication for user [richard] - [richard] 
FAILED with error NT_STATUS_NO_SUCH_USER


When setting up I simply copied over the old version of smb.conf that I 
used to use.


global]
   workgroup = GENOMICS
   server string = Genome Centre Samba Server (Mendel)
   unix password sync = Yes
   log level = 2
   #log file = /usr/local/samba/var/samba.log.%m
   log file = /var/log/samba/samba.log.%m
   max log size = 50
   wins support = Yes
   invalid users = root bin web daemon adm sync shutdown halt mail 
news uucp operator nuucp lp listen nobody noaccess nobody4 david gaget anna

   create mask = 0777
   directory mask = 0777
   hosts allow = 192.168.1. localhost

[homes]
   comment = Home Directories
   path = /userdata/home/%u
   read only = No
   guest ok = Yes
   browseable = No


I've tried setting encrypt password = no but this doesn't make any 
difference.


Any ideas?

TIA,

Rich


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


Re: [Samba] using unix authentication (/etc/passwd)

2006-06-22 Thread rich

Gary Dale wrote:
How are you adding users? 
adding users to the box with 'useradd' and now I also have to add users 
who want samba access with smbpasswd -a username as well.



You don't seem to have an add user script!

erm, no, must have missed that! Is there an example one in the samba dir?
Look at the sample smb.conf files in the HowTo collection or the Samba 
by Example  - both at www.samba.org. Also, you almost certainly want 
to encrypt passwords.

I probably should do but haven't up till now


I recommend installing SWAT if you haven't done so already and use its 
wizard to set your box up as a domain controller (since that seems to 
be how you want to use it).
yes, I really should do, but didn't think i'd need to if I just copied 
over my previous smb.conf.

thanks




rich wrote:
Hi when using samba version Version 2.0.5a (I didn't compile) I never 
had to explicitly set up samba users with smbpasswd -a.
Since upgrading to version 3.0.22 I now have to add each user 
otherwise I get the following in the logs


[2006/06/15 14:20:46, 2] auth/auth.c:check_ntlm_password(317)
 check_ntlm_password:  Authentication for user [richard] - [richard] 
FAILED with error NT_STATUS_NO_SUCH_USER


When setting up I simply copied over the old version of smb.conf that 
I used to use.


global]
   workgroup = GENOMICS
   server string = Genome Centre Samba Server (Mendel)
   unix password sync = Yes
   log level = 2
   #log file = /usr/local/samba/var/samba.log.%m
   log file = /var/log/samba/samba.log.%m
   max log size = 50
   wins support = Yes
   invalid users = root bin web daemon adm sync shutdown halt 
mail news uucp operator nuucp lp listen nobody noaccess nobody4 david 
gaget anna

   create mask = 0777
   directory mask = 0777
   hosts allow = 192.168.1. localhost

[homes]
   comment = Home Directories
   path = /userdata/home/%u
   read only = No
   guest ok = Yes
   browseable = No


I've tried setting encrypt password = no but this doesn't make any 
difference.


Any ideas?

TIA,

Rich







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


Re: [Samba] using unix authentication (/etc/passwd)

2006-06-22 Thread rich

Gary Dale wrote:
How are you adding users? You don't seem to have an add user script! 
Look at the sample smb.conf files in the HowTo collection or the Samba 
by Example  - both at www.samba.org. Also, you almost certainly want 
to encrypt passwords.


ah, right, so i guess i need something along the lines of:

/|passdb backend = tdbsam|//|
printcap name = cups|//|
add user script = /usr/sbin/useradd -m %u|/
/|delete user script = /usr/sbin/userdel -r %u|//|
add group script = /usr/sbin/groupadd %g|//|
delete group script = /usr/sbin/groupdel %g|//|
add user to group script = /usr/sbin/groupmod -A %u %g|//|
delete user from group script = /usr/sbin/groupmod -R %u %g|//|
add machine script = /usr/sbin/useradd -s /bin/false -d /var/lib/nobody %u


|/why didn't I needt his previously?
/|
|/


I recommend installing SWAT if you haven't done so already and use its 
wizard to set your box up as a domain controller (since that seems to 
be how you want to use it).



rich wrote:
Hi when using samba version Version 2.0.5a (I didn't compile) I never 
had to explicitly set up samba users with smbpasswd -a.
Since upgrading to version 3.0.22 I now have to add each user 
otherwise I get the following in the logs


[2006/06/15 14:20:46, 2] auth/auth.c:check_ntlm_password(317)
 check_ntlm_password:  Authentication for user [richard] - [richard] 
FAILED with error NT_STATUS_NO_SUCH_USER


When setting up I simply copied over the old version of smb.conf that 
I used to use.


global]
   workgroup = GENOMICS
   server string = Genome Centre Samba Server (Mendel)
   unix password sync = Yes
   log level = 2
   #log file = /usr/local/samba/var/samba.log.%m
   log file = /var/log/samba/samba.log.%m
   max log size = 50
   wins support = Yes
   invalid users = root bin web daemon adm sync shutdown halt 
mail news uucp operator nuucp lp listen nobody noaccess nobody4 david 
gaget anna

   create mask = 0777
   directory mask = 0777
   hosts allow = 192.168.1. localhost

[homes]
   comment = Home Directories
   path = /userdata/home/%u
   read only = No
   guest ok = Yes
   browseable = No


I've tried setting encrypt password = no but this doesn't make any 
difference.


Any ideas?

TIA,

Rich







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


Re: [Samba] smpasswd

2006-06-20 Thread rich

Pierre MARC wrote:

Le lun 19/06/2006 à 14:30, rich a écrit :

/Pierre MARC wrote:
 Le lun 19/06/2006 à 12:46, rich a écrit :
 /Pierre MARC wrote:
  Le ven 16/06/2006 à 17:42, rich a écrit :
  /Pierre MARC wrote:
   Le ven 16/06/2006 à 15:04, rich a écrit :
  

   Hi,
   I have just installed samba-3.0.22 and copied my smb.conf across from 
   my previous version on the same machine. With my previous version I 
   never had to run smbpasswd -a username. It would do the 
   authentication from /etc/passwd. ie when I added someone as a user 
   with useradd they would automatically be able to mount samab shares. 
   I am now having to add all my users with smbpasswd.
   I didn't compile the previous version. Could anyone tell me what I 
   need to do to allow authentication from /etc/passwd?

  
   TIA,
   Rich
  
   [global]
   workgroup = WORKGROUP
   server string = BLA
   unix password sync = Yes
   log level = 2
   log file = /var/log/samba/samba.log.%m
   max log size = 50
   wins support = Yes
   invalid users = root bin web
   create mask = 0777
   directory mask = 0777
   hosts allow = 192.168.1. localhost
  
   [homes]
   comment = Home Directories
   path = /userdata/home/%u
   read only = No
   guest ok = Yes
   browseable = No
   
  

  
   Try encrypt password = no
  
 
  thanks. unfortunately it didn't make any difference

 
  mount -t cifs -o username=testing //mendel/testing /mnt/testing
  ount error 13 = Permission denied
  Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)/
 
  What was your last samba version ?
  And OS ?
 Hi,
 my OS is Solaris 8 and my version of samba is 2.0.5a

 thanks
 r/
 And If you try to use the smbmount command coming with the 3.0.22 
 version ?
I am trying to mount from a linux box using smbmount that comes with 
fedora core 5.

 /

  -- Pierre MARC [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] id3 
  Semiconductors

 
 
/
 -- Pierre MARC [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] id3 
 Semiconductors



   /
OK, have you seen somethong wrong in the log.smb from the server or 
the client.

If yes, it should be useful to post it.


Hi Pierre,

thanks for the help.

what I was getting in the server logs was:

[2006/06/15 14:05:28, 2] auth/auth.c:check_ntlm_password(317)
 check_ntlm_password:  Authentication for user [richard] - [richard]
FAILED with error NT_STATUS_NO_SUCH_USER

which of course disappeared when i added the user with smbpasswd -a richard

thanks



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


Re: [Samba] smpasswd

2006-06-19 Thread rich

Pierre MARC wrote:

Le ven 16/06/2006 à 17:42, rich a écrit :

/Pierre MARC wrote:
 Le ven 16/06/2006 à 15:04, rich a écrit :

  
 Hi,
 I have just installed samba-3.0.22 and copied my smb.conf across from 
 my previous version on the same machine. With my previous version I 
 never had to run smbpasswd -a username. It would do the 
 authentication from /etc/passwd. ie when I added someone as a user 
 with useradd they would automatically be able to mount samab shares. 
 I am now having to add all my users with smbpasswd.
 I didn't compile the previous version. Could anyone tell me what I 
 need to do to allow authentication from /etc/passwd?


 TIA,
 Rich

 [global]
 workgroup = WORKGROUP
 server string = BLA
 unix password sync = Yes
 log level = 2
 log file = /var/log/samba/samba.log.%m
 max log size = 50
 wins support = Yes
 invalid users = root bin web
 create mask = 0777
 directory mask = 0777
 hosts allow = 192.168.1. localhost

 [homes]
 comment = Home Directories
 path = /userdata/home/%u
 read only = No
 guest ok = Yes
 browseable = No
 



 Try encrypt password = no

   
thanks. unfortunately it didn't make any difference


mount -t cifs -o username=testing //mendel/testing /mnt/testing
ount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)/


What was your last samba version ?
And OS ?

Hi,
my OS is Solaris 8 and my version of samba is 2.0.5a

thanks
r


-- Pierre MARC [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] id3 
Semiconductors



  


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


Re: [Samba] smpasswd

2006-06-19 Thread rich

Pierre MARC wrote:

Le lun 19/06/2006 à 12:46, rich a écrit :

/Pierre MARC wrote:
 Le ven 16/06/2006 à 17:42, rich a écrit :
 /Pierre MARC wrote:
  Le ven 16/06/2006 à 15:04, rich a écrit :
 
   
  Hi,
  I have just installed samba-3.0.22 and copied my smb.conf across from 
  my previous version on the same machine. With my previous version I 
  never had to run smbpasswd -a username. It would do the 
  authentication from /etc/passwd. ie when I added someone as a user 
  with useradd they would automatically be able to mount samab shares. 
  I am now having to add all my users with smbpasswd.
  I didn't compile the previous version. Could anyone tell me what I 
  need to do to allow authentication from /etc/passwd?

 
  TIA,
  Rich
 
  [global]
  workgroup = WORKGROUP
  server string = BLA
  unix password sync = Yes
  log level = 2
  log file = /var/log/samba/samba.log.%m
  max log size = 50
  wins support = Yes
  invalid users = root bin web
  create mask = 0777
  directory mask = 0777
  hosts allow = 192.168.1. localhost
 
  [homes]
  comment = Home Directories
  path = /userdata/home/%u
  read only = No
  guest ok = Yes
  browseable = No
  
 

 
  Try encrypt password = no
 

 thanks. unfortunately it didn't make any difference


 mount -t cifs -o username=testing //mendel/testing /mnt/testing
 ount error 13 = Permission denied
 Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)/

 What was your last samba version ?
 And OS ?
Hi,
my OS is Solaris 8 and my version of samba is 2.0.5a

thanks
r/
And If you try to use the smbmount command coming with the 3.0.22 
version ?
I am trying to mount from a linux box using smbmount that comes with 
fedora core 5.

/

 -- Pierre MARC [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] id3 
 Semiconductors



   /
-- Pierre MARC [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] id3 
Semiconductors



  


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


Re: [Samba] smpasswd

2006-06-19 Thread rich

Pierre MARC wrote:

Le lun 19/06/2006 à 14:30, rich a écrit :

/Pierre MARC wrote:
 Le lun 19/06/2006 à 12:46, rich a écrit :
 /Pierre MARC wrote:
  Le ven 16/06/2006 à 17:42, rich a écrit :
  /Pierre MARC wrote:
   Le ven 16/06/2006 à 15:04, rich a écrit :
  

   Hi,
   I have just installed samba-3.0.22 and copied my smb.conf across from 
   my previous version on the same machine. With my previous version I 
   never had to run smbpasswd -a username. It would do the 
   authentication from /etc/passwd. ie when I added someone as a user 
   with useradd they would automatically be able to mount samab shares. 
   I am now having to add all my users with smbpasswd.
   I didn't compile the previous version. Could anyone tell me what I 
   need to do to allow authentication from /etc/passwd?

  
   TIA,
   Rich
  
   [global]
   workgroup = WORKGROUP
   server string = BLA
   unix password sync = Yes
   log level = 2
   log file = /var/log/samba/samba.log.%m
   max log size = 50
   wins support = Yes
   invalid users = root bin web
   create mask = 0777
   directory mask = 0777
   hosts allow = 192.168.1. localhost
  
   [homes]
   comment = Home Directories
   path = /userdata/home/%u
   read only = No
   guest ok = Yes
   browseable = No
   
  

  
   Try encrypt password = no
  
 
  thanks. unfortunately it didn't make any difference

 
  mount -t cifs -o username=testing //mendel/testing /mnt/testing
  ount error 13 = Permission denied
  Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)/
 
  What was your last samba version ?
  And OS ?
 Hi,
 my OS is Solaris 8 and my version of samba is 2.0.5a

 thanks
 r/
 And If you try to use the smbmount command coming with the 3.0.22 
 version ?
I am trying to mount from a linux box using smbmount that comes with 
fedora core 5.

 /

  -- Pierre MARC [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] id3 
  Semiconductors

 
 
/
 -- Pierre MARC [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] id3 
 Semiconductors



   /
OK, have you seen somethong wrong in the log.smb from the server or 
the client.

If yes, it should be useful to post it.


Hi Pierre,

thanks for the help.

what I was getting in the server logs was:

[2006/06/15 14:05:28, 2] auth/auth.c:check_ntlm_password(317)
 check_ntlm_password:  Authentication for user [richard] - [richard] 
FAILED with error NT_STATUS_NO_SUCH_USER


which of course disappeared when i added the user with smbpasswd -a richard

thanks


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


[Samba] smpasswd

2006-06-16 Thread rich

Hi,
I have just installed samba-3.0.22 and copied my smb.conf across from my 
previous version on the same machine. With my previous version I never 
had to run smbpasswd -a username. It would do the authentication from 
/etc/passwd. ie when I added someone as a user with useradd they would 
automatically be able to mount samab shares. I am now having to add all 
my users with smbpasswd.
I didn't compile the previous version. Could anyone tell me what I need 
to do to allow authentication from /etc/passwd?


TIA,
Rich

[global]
   workgroup = WORKGROUP
   server string = BLA
   unix password sync = Yes
   log level = 2
   log file = /var/log/samba/samba.log.%m
   max log size = 50
   wins support = Yes
   invalid users = root bin web
   create mask = 0777
   directory mask = 0777
   hosts allow = 192.168.1. localhost

[homes]
   comment = Home Directories
   path = /userdata/home/%u
   read only = No
   guest ok = Yes
   browseable = No

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


[Fwd: Re: [Samba] smpasswd]

2006-06-16 Thread rich


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

Re: [Samba] smpasswd

2006-06-16 Thread rich

Pierre MARC wrote:

Le ven 16/06/2006 à 15:04, rich a écrit :

 

Hi,
I have just installed samba-3.0.22 and copied my smb.conf across from 
my previous version on the same machine. With my previous version I 
never had to run smbpasswd -a username. It would do the 
authentication from /etc/passwd. ie when I added someone as a user 
with useradd they would automatically be able to mount samab shares. 
I am now having to add all my users with smbpasswd.
I didn't compile the previous version. Could anyone tell me what I 
need to do to allow authentication from /etc/passwd?


TIA,
Rich

[global]
workgroup = WORKGROUP
server string = BLA
unix password sync = Yes
log level = 2
log file = /var/log/samba/samba.log.%m
max log size = 50
wins support = Yes
invalid users = root bin web
create mask = 0777
directory mask = 0777
hosts allow = 192.168.1. localhost

[homes]
comment = Home Directories
path = /userdata/home/%u
read only = No
guest ok = Yes
browseable = No




Try encrypt password = no

  

thanks. unfortunately it didn't make any difference

mount -t cifs -o username=testing //mendel/testing /mnt/testing
ount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Intermittant browsing problems

2006-06-04 Thread Rich Mozingo
 

 

Rich Mozingo

Assistant General Manager

Lakewood BlueClaws

732-901-7000 x 103

 

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


[Samba] Difficulty converting from RH 7.3 to Debian Sarge

2006-05-24 Thread Rich Marsh


I am running debian sarge 2.4.27-3-686 and samba version 3.0.14a-Debian
.  The previous machine was running rh 7.3 (valhalla) 2.4.20-29.7.progeny.11, samba version unknown.  I have restored all shares and directories.  Most of users can access everything, however our login script will not run.  For those users that cannot log in re-joining them to the domain not only works but then the login script runs as well.  

Obviously we are missing a key file from the old machine that relates to the machine accounts.  I copied all the .tdb files over and placed them in the appropriate dirs, but still it won't work.  I don't want to have to disjoin and re-join all my users since then all their information will need to be copied over to the newly created profile.  Any and all help is appreciated. 


.tdb files copied over:

-brlock.tdb
-connections.tdb
-locking.tdb
-messages.tdb
-ntdrivers.tdb
-ntforms.tdb
-ntprinters.tdb
-printing.tdb
-secret.tdb
-sessionid.tdb
-share_info.tdb
-unexpected.tdb




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


[Samba] Active Directory and Samba 3.0.20

2005-12-20 Thread Rich Bonfoey
This is a new install with a very novice samba user .  We are running samba
3.0.20 on a Solaris 9 server.  We have 3 domains controllers - 1 old NT and
1Win 2000 Active Directory and 1 Win 2003 Active Directory.  The support
group that
administers the domains, have a limited skill set.  If its not Windows they
have nothing to contribute.  

The Domain Controllers are called
TACOMANEWS - Win 22000
TACOMA  - Win 2003
IS_DEPT - NT4

When running wbinfo -m on TACOMANEWS it sees IS_DEPT and TACOMA
When running wbinfo -m on IS_DEPT it sees TACOMA
When running wbinfo -m on TACOMA it sees TACOMANEWS and TACOMA

Checking users in all the domains, the only users that are seen are the ones
in the IS_DEPT and TACOMA.  Even when joined to TACOMANEWS, it shows no
users for this domain.  There are at least 80 users in the TACOMANEWS
domain. 

I think there should be users showing for TACOMANEWS, but our support group
does not know why.  

Can anyone offer some insight or point me to some documentation on the
issue.  I have googled a lot but haven't found what I need.  Samba is
running as a member of a domain.  Below is my smb.conf file, this is very
generic.

Thanks for any and all help

[global]
force directory mode = 775
create mode = 777
acl compatibility = auto
dns proxy = no
force create mode = 775
encrypt passwords = yes
idmap gid = 1-2
socket options = TCP_NODELAY
max log size = 50
password server = *
idmap uid = 1-2
writeable = yes
directory mode = 777
security = DOMAIN
winbind use default domain = yes
server string = zThorin
workgroup = TACOMANEWS
local master = no
log level = 1
print command = lpr -h -r -P%p %s
netbios name = zthorin
log file = /usr/local/samba/var/%m.log
os level = 20

[Fango]
path = /fango/gongo
printable = no
public = yes
create mask = 777
directory mask = 777


Richard Bonfoey
The News Tribune
Information Systems
Successfully Meeting the Business Needs of
The News Tribune through Information Technology


Richard Bonfoey
The News Tribune
Information Systems
Successfully Meeting the Business Needs of
The News Tribune through Information Technology

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


[Samba] Rsync cifs or smbfs - cannot update modification date with cifs

2005-09-19 Thread Rich Stanton
I use rsync to update files to a samba shared folder on another 
machine.  If the remote drive is mounted as smbfs in fstab:

//xx.xx.xx.35/YellowDog /mnt/mic smbfs username=xxx,password=xxx

Then everything works fine.  However if I mount it as cifs  run rsync, 
the date/time on the remote files is that of the transfer, not of the 
original file creation/modification date.  Therefore rsync transfers are 
messed up because it uses the date to work out if a file should be 
copied or not.  Local machine is debian sarge, remote system is OSX 
10.3.  Using smbfs works fine  the dates are correctly preserved across 
to the remote machine, but I understand that cifs is the way forward, so 
I'd like to get it working with cifs.  What am I doing wrong?  The 
remote directory  files are owned by the username specified in fstab, 
and are permission 755 (directories) or 644 (files).


The rsync command line I'm using is rsync -rt --delete --modify-window=1 
/source /mnt/mic.


Thanks!


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


Re: [Samba] can't get samba 3.0.14a to work with ldap..part 2: smaba 3.0.15

2005-04-27 Thread rich foo
Hi...
I posted a few days ago that I was having trouble getting samba 3.0.14a to
work with ldap.  I switched up to 3.0.15pre2 and had much the same
trouble.  I have been following the instructions in
http://www.samba.org/samba/docs/Samba-Guide.pdf, but I am still having
troubles.

Here is what happens when i run smbldap-populate:

mercury:/usr/local/samba/sbin# ./smldap-populate -a root -k 0 -m 0
Populating LDAP directory for domain TESTNET
(S-1-5-21-4179843118-1526938909-891067941)
(using builtin directory structure)

Use of uninitialized value in string ne at ./smbldap-populate line 165
Use of uninitialized value in concactenation (.) or string at
./smbldap-populate line 170
entry o=ssfsnet already exist.
adding new entry: ou=People,o=ssfsnet
adding new entry: ou=Groups,o=ssfsnet
adding new entry: ou=Computers,o=ssfsnet
Can't call method dn on an undefined value at ./smbldap-populate line
442, GEN1 line 6.
mercury:/usr/local/samba/sbin#

I can't figure out what is wrong...The smb.conf is taken straight from the
documentation and the smbldap tools should be properly configured.  Every
thing is by the book but I still can't seem to get it working.  Could
somebody perhaps post somewhere a working smb.conf and perhaps a slapcat
dump (minus users, of course) or even a working smbldap.conf?  I know I'm
probably just missing something stupid, but I am out of ideas

Thanks in advance,  

Rich

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


Re: [Samba] can't get samba 3.0.14a to work with ldap..part 2: smaba=?ISO-8859-1?Q? 3.0.15?=

2005-04-27 Thread rich foo
The ldap tools are 8.8.  Previous versions have worked to some extent, but
as I posted earlier, I still can't get samba to cooperate.  The ldap and
crypt perl modules are installed and working.  I was having difficulty
with 3.0.14a and was told to read the
http://www.samba.org/samba/docs/Samba-Guide.pdf book.  This is as far as I
could get.  LDAP authentication is working for unix accounts, but not for
samba.

Rich

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


Re: [Samba] can't get samba 3.0.14a to work with ldap..part 2: smaba=?ISO-8859-1?Q? 3.0.15?=

2005-04-27 Thread rich foo
John,

I certainly didn't mean to sound as though I was bashing the
documentation, I am only bashing myself for not being able to figure out
what I am doing wrong.  The only reason I stressed that my config was
straight from the documentation was to provide a clearer picture of my
setup, and to point out that I was taking your advice and trying to work
through the examples given.

I have started again from scratch with samba-3.0.15pre2 and I will send
you your requested config files shortly.

Thanks, and again, I certainly did not mean to bash the documentation.  I
fully realize that a lot of work goes into it and I am grateful for samba
and all it has done for me over the past 10 years since my first install.

Rich


Rich,


Instead of assuming the examples in the book are wrong, or do not work,
just 
because you can not get them to work, may I suggest that you work with me
to 
fix the documentation so others can avoid your pain.


Please send me direct to [EMAIL PROTECTED] the following:


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


Re: [Samba] can't get samba 3.0.14a to work with ldap

2005-04-22 Thread rich foo
Try creating a user with the -a switch to smbldap-useradd


Matt

Yeah, I figured that out after i posted, but when I create a new user
using that switch, something else happens now:
mercury:/usr/local/samba/bin# ./smbclient //mercury/richard -U richard
protocol negotiation failed
mercury:/usr/local/samba/bin#

Now i'm really lost.

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


Re: [Samba] can't get samba 3.0.14a to work with ldap

2005-04-22 Thread rich foo
Thanks, I will check it out.  Mostly I have been using the
htmldocs/Samba-Guide/happy.html, but things have obviously changed a bit
since that was written
Also, i did realize after my initial post that I had missed the argument
to smbldap-useradd script, but that didn't really solve the major issues I
seem to be having
Thanks,
Rich

Rich,


Much documentation has been written to help our users. It is always a 
challenge to help them to find it. When they do find it, it is even more
of a 
challenge to get them to help us to improve it so that others will have a 
perfect experience. Just this time, maybe you can help us to perfect our 
documentation.


Please check out chapter 6 of the book Samba-3 by Example that is
currently 
under copy edit before going into print. You can download this from our
web 
site at: http://www.samba.org/samba/docs/Samba-Guide.pdf


The documentation provides a step-by-step explanation of each file that
must 
be configured to achive a working Samba+LDAP server.


If any steps fails, please let me know as soon as possible so I can fix
it 
before we lock this in. Thanks.


PS: When you ran smbldap-useradd you did not include the -a option that 
creates the SambaSAM entries.


- John T.

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


[Samba] can't get samba 3.0.14a to work with ldap

2005-04-22 Thread rich foo
Hi...
If you have successfully gotten samba 3.0.14a (or any other recent samba
version) to work with ldap, can you perhaps email me your various config
files so I can figure out what I am doing wrong?  Any help would be
greatly appreciated.
I've tried every thing I can think of, but I can't get samba 3.0.14a to
work with ldap.  The ldap server seems to be working and smbclient seems
to work for Administrator but not anyone else but I can't join any
machines to the domain (XP has given me many different errors, but the
most recent is the specified network name is no longer available) I am
assuming that posting long messages with every config file attatched is
probably not going to win me any friends, so i have put them on the web at
http://thor.ssfs.org/samba/

Thanks in advance,

Rich

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


[Samba] Samba 3.0.x in ADS mode in a Windows Krb AD forest domain, does it work?

2004-12-16 Thread Rich Cardwell
Hi,
 
 With some luck someone on this list can tell me if what I'm trying to
do is possible with Samba 3, and if I'm really lucky how to get it
working.  As I'm pretty stuck at the moment and have hit the limits of
my
 knowledge.
 
 At present in my environment we are running numerous Samba 2 servers in
server and domain level security (I know server level security is a bad
idea), and everything works fine. However as time moves on we are
looking to migrate our servers off Samba 2 and onto Samba 3 and switch
all servers over to ads mode. However during testing (on Debian and 
HP-UX machines) we appear to have hit a problem that I can't resolve, 
namely I can't connect to any shares, as the servers don't appear to
 recognize the login domain. For this to make any sense I will attempt
to  explain our environment.
 
 At present we have an old legacy domain which is all based around NT
trusts, and a new domain which uses Kerberos AD forest trusts. Now in
our new domain we have central domain, with other sub domains hanging
off it for users (one per geography) and organisational units (again one
 per OU unit). Now the way the domain has been configured is that user
accounts live in the the user domains, and machine accounts live in the
organisational units domains, all pretty simple.
 
 However when connecting to a Samba 3 host configured in ads mode that
has successfully joined the OU domain we hit a problem that the server
doesn't seem to recognise the login domain, and remaps the domain to the
local OU and hence the login fails, as this logfile extract shows.
 
 [2004/12/16 11:02:27, 3] auth/auth.c:check_ntlm_password(219)
   check_ntlm_password:  Checking password for unmapped user
 [EMAIL PROTECTED] with the new password interface
 [2004/12/16 11:02:27, 3] auth/auth.c:check_ntlm_password(222)
   check_ntlm_password:  mapped user is:
 [EMAIL PROTECTED]
 [2004/12/16 11:02:27, 3] smbd/sec_ctx.c:push_sec_ctx(256)
   push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
 [2004/12/16 11:02:27, 3] smbd/uid.c:push_conn_ctx(365)
   push_conn_ctx(0) : conn_ctx_stack_ndx = 0
 [2004/12/16 11:02:27, 3] smbd/sec_ctx.c:set_sec_ctx(288)
   setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
 [2004/12/16 11:02:28, 3] smbd/sec_ctx.c:pop_sec_ctx(386)
   pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
 [2004/12/16 11:02:28, 2] auth/auth.c:check_ntlm_password(312)
   check_ntlm_password:  Authentication for user [ricc] - [ricc] FAILED
 with err
 or NT_STATUS_ACCESS_DENIED
 
 However if I try and connect to an admin account that lives in the
 OUDOMAIN, everything works as Samba appears to recognize the domain as
 valid.
 
 As an additional test, I have tried to connect to the share using an
old
 account in the Legacy domain which uses the old NTLM NT trust
 mechanisms, and this appears to work as the Samba server recognizes the
 domain, and hence leaves the domain prefix alone, as this logfile
 extract shows.
 
 [2004/12/16 11:26:47, 3] auth/auth.c:check_ntlm_password(219)
   check_ntlm_password:  Checking password for unmapped user
 [EMAIL PROTECTED]
 RDWELL-R-3] with the new password interface
 [2004/12/16 11:26:47, 3] auth/auth.c:check_ntlm_password(222)
   check_ntlm_password:  mapped user is:
 [EMAIL PROTECTED]
 [2004/12/16 11:26:47, 3] smbd/sec_ctx.c:push_sec_ctx(256)
   push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
 [2004/12/16 11:26:47, 3] smbd/uid.c:push_conn_ctx(365)
   push_conn_ctx(0) : conn_ctx_stack_ndx = 0
 
 So I guess my question is: Has anyone else managed to get samba to work
 in this kind of domain? or alternatively does anyone know if Samba 3
 supports this kind of domain structure using Forest AD trusts yet?
 
 Thanks in advance, for any help you can provide, as this has been
 driving me (not so) slowly nuts.
 
 Rich Cardwell
 
 --
 
 smb.conf for testhosts is as follows:
 
 #=== Global Settings ===
 
 [global]
 
 ## Browsing/Identification ###
 
 # Change this to the workgroup/NT-domain name your Samba server will
 part of
workgroup = OUDOMAIN.HPL.HP.COM
debug level = 4
 
 # server string is the equivalent of the NT Description field
server string = %L server (Samba %v)
 
 # Windows Internet Name Serving Support Section:
 # WINS Support - Tells the NMBD component of Samba to enable its WINS
 Server
wins support = no
 
 # WINS Server - Tells the NMBD components of Samba to be a WINS Client
 # Note: Samba can be either a WINS Server, or a WINS Client, but NOT
 both
wins server = XX.XX.XX.net
 
 # This will prevent nmbd to search for NetBIOS names through DNS.
dns proxy = no
 
 # What naming service and in what order should we use to resolve host
 names
 # to IP addresses
 ;   name resolve order = lmhosts host wins bcast
 
  Debugging/Accounting 
 
 # This tells Samba to use a separate log file for each machine
 # that connects
log file = /var/log/samba/log.%m
 
 # Put a capping on the size of the log files (in Kb).
max log size = 1000
 
 # If you want

Re: [Samba] Roaming Profile Folder Redirection Problems

2004-10-14 Thread Rich Edelman
Sorry about the top post...

John and list... 

I have figured out what my problem was with Chaper 6 of Samba 3 By Example. 
Table 6.3 (page 167 of the print copy) has some incorrect values. That table 
says to set the Cache directory key, for example, to: 
\\%LOGONSERVER%\profdata\%USERNAME%\InternetFiles

That is incorrect! The leading \\ characters cause the profile path to be 
unreachable, as I believe the path would then expand to:
SMB-PDC\profdata\testuser\InternetFiles. Removing the two leading \ 
characters fixed all my problems on both Windows 2000 and XP. 

Both the print versions and the web versions of Samba 3 By Example have this 
typo in multiple places in section 6.6.1. (Step 3 under Redirect Folders In 
Default User Profile has it as an example of a network redirection that 
contains a macro, as well as the aforementioned Table 6.3 errors.)

The web version of TOSHARG, Chapter 23, does not contain this error and is 
what led me to figuring out what I was going incorrectly.

Rich Edelman

On Sunday 10 October 2004 09:43 pm, John H Terpstra wrote:
 Rich,

 I have seen a number of reports of problems with the procedure I outlined
 in the book. Rest assured that this was well tested prior to publication.
 Additionally, there are some large sites in Europe that use roaming
 profiles in precisely this fashion.

 That leaves us with the problem of the need to identify what you have done
 that is different, or to identify what is different in your client Windows
 configuration.

 I regret that at this time I do not have time to assist you further,
 however I am keen to hear of any progress you make in solving the issue and
 would much appreciate any comments that can be added to the chapter to help
 others to avoid your pain.

 Cheers,
 John T.

 On Sunday 10 October 2004 13:19, Rich Edelman wrote:
  I'm running Samba 3.0.7 on SuSE 9.1 with OpenLDAP for auth.
 
  I've been mostly following along Terpstra's Book Samba 3 By Example, as
  lots of other people here have been.
 
  The three big problems I'm having are:
  1) After a Windows XP user logs out for the first time, upon next login
  they get an error message saying Windows cannot log you in because your
  profile cannot be loaded. Deleting the NTUSER.DAT file for that user
  allows that user to log in again.
 
  2) It doesn't appear like the default user profile (located
  in /var/lib/samba/netlogon/Default User/) is getting used for anything,
  as when I log in for the first time and view the registry any changes
  that I made for the default user are not there!
 
  3) This one will probably be solved by #2 above, but whenever a user logs
  out, there is that stupid 'synchronizing' window, even though all profile
  folders have been redirected to a network drive. Why?
 
  Any help or suggestions on these would be greatly appreciated!
 
  Thanks,
 
  Rich Edelman

 --
 John H Terpstra
 Samba-Team Member
 Phone: +1 (650) 580-8668

 Author:
 The Official Samba-3 HOWTO  Reference Guide, ISBN: 0131453556
 Samba-3 by Example, ISBN: 0131472216
 Hardening Linux, ISBN: 0072254971
 OpenLDAP by Example, ISBN: 0131488732
 Other books in production.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Roaming Profile Folder Redirection Problems

2004-10-12 Thread Rich Edelman
Replies inline :)

On Monday 11 October 2004 11:56 am, Richard Michael wrote:
 Hi Rich,

 I have also built my XP clients w/ RP+FolderRedir.

 I haven't seen all the problems you've described, but am having my own
 share of difficulties.  I'd be interested if you encounter them, see my
 earlier post (a few days back) if you're curious.

  1) After a Windows XP user logs out for the first time, upon next
  login they get an error message saying Windows cannot log you in
  because your profile cannot be loaded. Deleting the NTUSER.DAT file
  for that user allows that user to log in again.

 I haven't seen this, but have read notes about the accumulation of .tmp
 in the profile (Windows creates them) files possibly causing this
 problem.  Are you seeing .tmp files if you look at the profile, during
 or after logoff (but prior to the next logon)?

There is no accumulation of .tmp files in the profile at all. I do think the 
profile is getting corrupted, though. After configuring the logging you 
mentioned below, I noticed that upon second login, Windows tries to merge the 
mandatory profile it copied over from the default profile with a user 
profile, which for some reason fails, and does not allow me to log on. Are 
there supposed to be both ntuser.dat and ntuser.man files in a profile? I'm 
really not much of a windows guy, heh.

  2) It doesn't appear like the default user profile (located in
  /var/lib/samba/netlogon/Default User/) is getting used for anything,
  as when I log in for the first time and view the registry any changes
  that I made for the default user are not there!

 What profile is used for the new user?  For example, is XP copying the
 C:\Documents and Settings\Default User profile?  Perhaps it's not
 finding your [netlogon] share?  You've verified all permissions on the
 Unix side and in the smb.conf file?  Can you see the profile being
 copied if you sniff smb or read the logs?

Okay, it is copying the profile from the [netlogon] share. I was confused 
because apparently Windows changes the registry keys after you are logged in 
back to '%USERPROFILE%/blah' instead of keeping 
'%LOGONSERVER%/profiles/%USERNAME%/blah' like I have in the default profile.

 Also, you can turn on quite a bit of logging in XP by setting this reg
 key:
 HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon
   = [REG_DWORD] UserEnvDebugLevel = 0x30002

 The log file is in C:\Windows\Debug\UserMode .. (if memory serves..)

Wow, lots of logs!

 I can compare perms and settings with you if it helps, my [netlogon]
 profile is used properly.

 Also, are you doing anything with Group Policy items on the XP side that
 would altered your expected Default User environment?  (The logging
 above will show you this..)

The only group policy I have set is I have disabled offline files entirely, I 
have altered the exclusion lists to include redirected folders, and I have 
turned off the ownership check for the profile. All (with the exception of 
the offline files) are as outlined in Chapter 6 of Samba-3 By Example.
FWIW, I have also experimented with keeping offline files enabled and turning 
off the 'synchronize files before logon' and 'synchronize files after logout' 
options. That last option did away with the synchronization window I was 
getting.  I wonder if this has anything to do with the fact that I am not 
redirecting all the folders in the profile.

 Evidently, XP wants client side caching on the profile location
 disabled (I saw complaints in the Event Log).  Perhaps this is causing
 problems?  To do so, add to the [profiles] section of smb.conf:

   csc policy = disabled

 I don't think Terpstra's book mentions this but it's in the smb.conf man
 page.

I added the 'csc policy = disabled' line to the [profiles] section of my 
smb.conf file, but the event viewer still has complaints from WinXP about the 
profiles share being configured for automatic caching.

  3) This one will probably be solved by #2 above, but whenever a user
  logs out, there is that stupid 'synchronizing' window, even though all
  profile folders have been redirected to a network drive. Why?

 Isn't this Offline Files on the XP side?  I have disabled this at the
 system level, because I didn't want user's dealing with any sync
 problems.  Have you disabled Offline File Caching for at least the
 folders you have redirected?  Try disabling it altogether; set this GP:

   Computer configuration
 Admin templates
   Network
 Offline files
   Allow or disallow use of offline files = Disabled
As I said above, I have experimented with that setting, as well as some 
others. I did forget to mention that I also enabled this GP:
   User configuration
  Admin Templates
 Network
Offline Files
   Do not automatically make redirected folders available offline.

That's the only way I could figure out to disable offline file caching for the 
redirected folders. Is there another

[Samba] smbfs mounts cause hangs in kde/gnome

2004-09-23 Thread rich lott
I'm using debian Sarge, Samba 3.0.6-3, Kernel 2.6.8

I use smbmount //server/share mymountpt -oguest which connects fine, but it 
all dies (hangs) if I try to look in that mounted directory with konqueror in 
kde OR nautillus in gnome.

In dmesg of the server computer I get:

smb_proc_readdir_long: error=-512, breaking

and the same but with error -13

smb_add_request ... Timed Out!

this last one repeats infinitely.

and often some other stuff too. I've googled till I'm goggled and all I've 
found is similar postings but without answers.

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


Re: RE : Convert DS20 from Tru64 to VMS

2004-06-22 Thread Denison Rich
Hello,
considering that the source system was a turbochannel box, its not strange. I have a 
similar machine. At the console, only one string of disks is visible to a  sho dev 
command.  _after booting_, the remianing 2 strings show up, and the controller 
lettering (ie dkA or dkB...) has changed.
 
Turbo channel is wierdwhich may explain why PCI became the industry standard.
 
regards,
 
denny

COLLOT Jean-Yves [EMAIL PROTECTED] wrote:
Sounds strange that you see the boot disk and you don't see the other ones,
even the CD drive. Do you see any other device, such as the Ethernet
adapter(s) ? If you don't, could you check the value of your STARTUP_P1
SYSGEN parameter ?

JYC

-Message d'origine-
De : Claude Marinier [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 21 juin 2004 18:50
À : [EMAIL PROTECTED]
Objet : Convert DS20 from Tru64 to VMS

Greetings,

Appologies for asking a question which is off-topic.

I want to retire the old DEC 3000 Model 400. I thought that I could just
copy the VMS files to a pair of larger disks, attach them to the DS20 (got
it from a project that ended), change a few settings at the console, and
boot. VMS runs but the SCSI devices that are visible from the console
before booting are not visible from VMS (I cannot even see the CD-ROM
drive, only the boot disk is visible).

For the last few years, the other systems (Solaris, Linux, and Windows)
have taken all my time and I have not done much on the VMS systems. I have
forgotten too much and I am stuck.

Could someone point me to a VMS/Alpha mailing list where I can get help?

Yes, I tried Google but have not found anything useful. What I have seen
leads me to think that this may be more difficult than I thought.

Thank you.

-- 
Claude Marinier, Information Technology
Defence Research  Development Canada (Ottawa)
[EMAIL PROTECTED]
http://www.ottawa.drdc-rddc.gc.ca
Telephone: (613) 596-3103
PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING:

http://www.catb.org/~esr/faqs/smart-questions.html
PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING:

http://www.catb.org/~esr/faqs/smart-questions.html
PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING:

http://www.catb.org/~esr/faqs/smart-questions.html


Re: Set up problems (apologies if this *did* get out before)

2004-01-20 Thread Hearn, Rich J.

Hi Folks,

I'm trying to set up Samba_2.2-8 for VMS (I did the linking from sources); I had the 
same problem with 2.2-7a that I'm running into now, so I upgraded to 2.2-8 in case it 
corrected
a problem.  Has anybody seen this before?  Test3 in DIAGNOSIS.TXT has not been able to 
shed any light as to what I'm running into.  I've got about 4 days into this,  would 
like to see where I'm going wrong.  Brian Tillman gave me an assist last month - 
thanks Brian, it did get me further along to this point.

*
VIA04::[RJHEARN]_
VIA04::[RJHEARN]_smbclient -L via04 
load_unicode_map: filename /samba_root/lib/codepages/unicode_map.ISO8859-1 does not 
exist.
added interface ip=10.7.40.71 bcast=10.7.41.255 nmask=255.255.254.0
added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0
Password: 
  Anonymous login successful
Domain=[VIA04] OS=[OpenVMS] Server=[Samba 2.2.8]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
VIA04::[RJHEARN]_
VIA04::[RJHEARN]_smbclient  //via04/tmp
load_unicode_map: filename /samba_root/lib/codepages/unicode_map.ISO8859-1 does not 
exist.
added interface ip=10.7.40.71 bcast=10.7.41.255 nmask=255.255.254.0
added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0
Password: 
  Anonymous login successful
Domain=[VIA04] OS=[OpenVMS] Server=[Samba 2.2.8]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
VIA04::[RJHEARN]_
*

Would anyone be willing to run samba_root[bin]testparm  post the entire dump of the
service definitions it displays of the smb.conf?  Would anyone be willing to show the 
entire directory structure of samba_device:[Samba...]*.* showing ownership  
protections
(acl's too)for it on a working system?  I have tried just about everything I can think 
of
with no success.

Btw:  This appears to work, so some things are correct...

VIA04::[RJHEARN]_nmblookup -B via04 __SAMBA__
querying __samba__ on 10.7.40.71
10.7.40.71 __samba__00
VIA04::[RJHEARN]_

Thoughts welcomed,

 Thanks, 

Rich

===
Rich Hearn  personal phone: 802-847-8015
Fletcher Allen Health Care  24hr Helpdesk:  802-847-8100
Information Servicespager:  802-351-7249
One Burlington Square
Burlington, VT 05401email:  [EMAIL PROTECTED]   
===




Confidentiality Notice:
This message, and any attachments, may contain information that is confidential, 
privileged, and/or protected from disclosure under state and federal laws that deal 
with the privacy and security of medical information. If you received this message in 
error or through inappropriate means, please reply to this message to notify the 
Sender that the message was received by you in error, and then permanently delete this 
message from all storage media, without forwarding or retaining a copy.
PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING:

http://www.catb.org/~esr/faqs/smart-questions.html


Is there a secret to getting this to run with Multinet 4.4a?

2003-12-24 Thread Hearn, Rich J.


Hi all,

This is what I'm seeing in log.smbd - I can't see any drives to map.  Is there anything
obvious that this indicates I'm failing to set up?  

Thoughts welcomed  Merry Christmas,

Rich

VIA04::[RJHEARN]_type   dsa0:[samba]log.smbd
[2003/12/24 12:27:03, 0] DISK$SWAP:[JYC.SAMBA.WORK.SOURCE.LIB]UTIL_SOCK.C;2:(169)
  Failed to set socket option SO_KEEPALIVE (Error bad address)
[2003/12/24 12:27:03, 0] DISK$SWAP:[JYC.SAMBA.WORK.SOURCE.LIB]UTIL_SOCK.C;2:(169)
  Failed to set socket option TCP_NODELAY (Error bad address)
[2003/12/24 12:27:03, 0] DISK$SWAP:[JYC.SAMBA.WORK.SOURCE.LIB]UTIL_SOCK.C;2:(1020)
  getpeername failed. Error was system service failure exception, status=!xl, pc=!xh, 
ps=!xl
[2003/12/24 12:27:03, 0] DISK$SWAP:[JYC.SAMBA.WORK.SOURCE.LIB]UTIL_SOCK.C;2:(169)
  Failed to set socket option SO_KEEPALIVE (Error bad address)
[2003/12/24 12:27:03, 0] DISK$SWAP:[JYC.SAMBA.WORK.SOURCE.LIB]UTIL_SOCK.C;2:(169)
  Failed to set socket option TCP_NODELAY (Error bad address)
VIA04::[RJHEARN]_

===
Rich Hearn  personal phone: 802-847-8015
Fletcher Allen Health Care  24hr Helpdesk:  802-847-8100
Information Servicespager:  802-351-7249
One Burlington Square
Burlington, VT 05401email:  [EMAIL PROTECTED]   
===




Confidentiality Notice:
This message, and any attachments, may contain information that is confidential, 
privileged, and/or protected from disclosure under state and federal laws that deal 
with the privacy and security of medical information. If you received this message in 
error or through inappropriate means, please reply to this message to notify the 
Sender that the message was received by you in error, and then permanently delete this 
message from all storage media, without forwarding or retaining a copy.
PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING:

http://www.catb.org/~esr/faqs/smart-questions.html


Re: [Samba] User Addition Automatically

2003-10-22 Thread Rich Webb
 Original Message - 
From: David Lucas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 11:12 PM
Subject: [Samba] User Addition Automatically



 I would like to be able to have this set up so that when I add a user on
the
 Windows 2000 domain that the user gets added on the Linux box
automatically.
 I'd like the user to also be authenticated off the windows domain.  So if
a
 user changes their password on windows then everything is synced up.  If
 someone can point me in the direction to get this done that'd be great.
I'm
 not even sure if I can do this.

The thing you are looking for is winbind.  The Samba HOW-TO collection
(http://us1.samba.org/samba/docs/Samba-HOWTO-Collection.pdf) has an entire
section on winbind and how to set it up.

I have been successful in setting this up in a test environment, however I
am having a bit of trouble making it work in a production environment
because my production server has something different going on than my test
server. I can give you my sample config if you want it, however I am just
using what is listed in the howto.

Rich


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


Re: [Samba] WIN XP Logging on after joining domain

2003-10-21 Thread Rich Webb
- Original Message - 
From: Gerald (Jerry) Carter [EMAIL PROTECTED]
To: Rich Webb [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 9:49 AM
Subject: Re: [Samba] WIN XP Logging on after joining domain -- possible bug?


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Rich Webb wrote:

 | I am running samba version 3.0.1pre1
 |
 | I was able to join my XP machine to my samba domain without problems,
 | however after joining, I cannot log in.
 ...
 | [2003/10/16 19:50:46, 1] auth/auth_util.c:make_server_info_sam(821)
 |   User nobody in passdb, but getpwnam() fails!
 ~
 error message is pretty clear here.  Looks like your have
 a problem with your guest account.

Thanks Jerry, that was the fix.  This might be a clear message to you,
however I did not know (and I don't know if it is clear in the docs) that
samba uses the nobody account for guest.  Further, I am running this on a
home built linux from scratch (LFS)box that prior to tonight did not have a
nobody account.  Most all the documentation assumes that the user is
running some main line distribution of linux (which probably most are) and
leaves out some details that are important, yet are default in a main line
distro.

In any case, I really appreciate you helping me out with this one.  I can
now log in.  The fix was that I created a nobody user in my /etc/passwd
and added it to my samba passdb, however now that I think about it, I
probably don't need it in the passdb as the error says it is already there.

Thanks Again!
Rich.

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


[Samba] WIN XP Logging on after joining domain -- possible bug?

2003-10-20 Thread Rich Webb
I am running samba version 3.0.1pre1

I was able to join my XP machine to my samba domain without problems,
however after joining, I cannot log in.

Nmbd is running and smbd is set at debug level 2.  Here is an excerpt from
the log:

[2003/10/16 19:50:44, 2] smbd/reply.c:reply_special(105)
  netbios connect: name1=OTHELLO name2=ROMEO
[2003/10/16 19:50:44, 2] smbd/reply.c:reply_special(112)
  netbios connect: local=othello remote=romeo, name type = 0
[2003/10/16 19:50:44, 2] smbd/sesssetup.c:setup_new_vc_session(535)
  setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all
old resources.
[2003/10/16 19:50:44, 2] smbd/sesssetup.c:setup_new_vc_session(535)
  setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all
old resources.
[2003/10/16 19:50:44, 1] auth/auth_util.c:make_server_info_sam(821)
  User nobody in passdb, but getpwnam() fails!
[2003/10/16 19:50:44, 2] auth/auth.c:check_ntlm_password(309)
  check_ntlm_password:  Authentication for user [] - [] FAILED with error
NT_STATUS_NO_SUCH_USER
[2003/10/16 19:50:46, 2] smbd/reply.c:reply_special(105)
  netbios connect: name1=OTHELLO name2=ROMEO
[2003/10/16 19:50:46, 2] smbd/reply.c:reply_special(112)
  netbios connect: local=othello remote=romeo, name type = 0
[2003/10/16 19:50:46, 2] smbd/sesssetup.c:setup_new_vc_session(535)
  setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all
old resources.
[2003/10/16 19:50:46, 2] smbd/sesssetup.c:setup_new_vc_session(535)
  setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all
old resources.
[2003/10/16 19:50:46, 1] auth/auth_util.c:make_server_info_sam(821)
  User nobody in passdb, but getpwnam() fails!
[2003/10/16 19:50:46, 2] auth/auth.c:check_ntlm_password(309)
  check_ntlm_password:  Authentication for user [] - [] FAILED with error
NT_STATUS_NO_SUCH_USER
[2003/10/16 19:50:46, 2] smbd/server.c:exit_server(558)
  Closing connections

Othello is my server and Romeo is my workstation.  I notice that in the
section about check_ntlm_password there is no name in the [] and I would
expect there to be.  Any suggestions?  Here is the important stuff in my
config:

[global]
netbios name = othello
workgroup = webbhq
passdb backend = tdbsam
os level = 33
preferred master = yes
domain master = yes
local master = yes
security = user
domain logons = yes
logon path = \\othello\profiles\%u
logon drive = h:
add machine script = /usr/sbin/useradd -d /dev/null -g 101 -s /bin/false -M
%u

[netlogon]
path = /server/netlogon
read only = yes
write list = ntadmin

[profiles]
path = /server/profiles
read only = no
create mask = 600
directory mask = 0700

Any help would be greatly appreciated.
Thanks

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


Re: [Samba] Help with Office / Samba samba-2.2.7a on FreeBSD 4.9-RC

2003-10-20 Thread Rich Webb

- Original Message - 
From: J. Nyhuis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: Scottie Swenson [EMAIL PROTECTED]
Sent: Monday, October 20, 2003 8:17 PM
Subject: [Samba] Help with Office / Samba samba-2.2.7a on FreeBSD 4.9-RC


 Greetings,

 System: FreeBSD 4.9-RC
 Samba: 2.2.7a

 I have a weird SAMBA problem. On my XP Pro box against our Samba server
(been
 online and such for long time) from Office XP only when ever I save a
document
 it gets set as read only. Hence I only get one save for any given
document.
 This is a new problem and is affecting only office XP. Other accounts
other
 then mine do not have this problem.

 I have tried adding in things like force create mask, force security, etc.
No
 help at all.

Have you played around with the file locking options?

Rich

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


Re: [Samba] Re: domain groups accessing samba share

2003-10-15 Thread Rich Webb
- Original Message - 
From: Gavin Davenport [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 12:14 PM
Subject: RE: [Samba] Re: domain groups accessing samba share


 Ok - I replaced my /etc/pam.d/login with the one you've posted.
 
 getent still lists me just local machine users and groups.
 

Do you have the following in your /etc/nsswitch.conf:

passwdfileswinbind
groupfileswinbind
shadowfiles

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


Re: [Samba] winbind use default domain doesn't work on samba 3.0.0

2003-10-15 Thread Rich Webb

- Original Message - 
From: Fabrice Clerc [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 12:01 PM
Subject: [Samba] winbind use default domain doesn't work on samba 3.0.0


 Hi,
 
 On my 2 Debian boxes the option winbind use default domain = yes 
 doesn't make any difference any more where as it dit work just before 
 the rest works fine, but not this option in smb.conf.
 
 I've discussed the matter on the French Samba mailing-list and I seem 
 not to be the only one who's got this problem. The other person uses 
 winbind with ADS, where as i'm still using it in mixed mode.
 
 So do you guys have the same problem? Samba 3 + winbinbd. Could you try 
 to tell me if it's a bug or not.
 

The problem is fixed in Samba-3.0.1pre1.

rich

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


Re: [Samba] Re: domain groups accessing samba share

2003-10-14 Thread Rich Webb

- Original Message - 
From: Gavin Davenport [EMAIL PROTECTED]
To: John H Terpstra [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 4:13 AM
Subject: RE: [Samba] Re: domain groups accessing samba share


 Hi there

 Make this:
 valid users = @LABOR\domain admins

  write list = @LABOR\domain admins
 write useres = @LABOR\domain admins

 What if the domain user doesn't have a local user on the unix machine ?

 How do I get round that ??

That is where winbind comes in.  You use winbind to allow your domain users
from your NT/2k server to be seen by the samba box as normal unix users.

Rich

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


Re: [Samba] Samba 3 ADS: nobody can log in

2003-10-12 Thread Rich Webb

- Original Message - 
From: Ron Gage [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, October 12, 2003 1:32 PM


 Well, I got past the part about the ads server parameter...  :)

 Now, it appears that nobody in the AD Domain can log into (and use) any
 resources on the Samba share.

 If I set security = ads on Samba, then nobody can log into the server -
 period.

 A couple of silly questions at this point (before I go completely mad)...

 1) Is there any requirement that LDAP be functioning on the Samba machine?
 2) Are there any hidden dependancies (like PAM) that are required to make
this
 work?

 More background:  The Samba machine has successfully joined the domain (it
 shows up in AD Users and Computers), kinit works fine when logging in as
 Administrator.


The way I understand it, LDAP and Kerberos need to be functioning for Samba
ADS integration to work.  Is there a compelling reason to use it in ADS
mode?  I use PAM and Winbind so I can control access from windows 2k.  That
works quite well.

Rich

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


Re: [Samba] Samba 3.0 as Active Directory Domain Controller withMIT Kerberos

2003-10-12 Thread Rich Webb

- Original Message - 
From: John H Terpstra [EMAIL PROTECTED]
To: Jane Deer [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, October 12, 2003 3:38 PM


 What is inaccurate please? I am ready to fix it!


You are apparently one of the authors of the samba HOWTO collection.  I
would just first like to say thank you for an awesome document.  It helped
immensly for resolving my weekend of hair pulling.

I was wondering if perhaps you could add something in the winbind section
about how to configure a samba share using NT or 2k domain groups.  I found
out the hard way that if I leave the configuration directive winbind use
default domain = yes then I cannot in any way specify a domain group as the
valid users for a share (unless there is a way that I don't know).  I tried
just the group name, I tried the domain name+group name, then I removed the
+ as the seperator and tried domain name\group name.  Nothing worked.  Once
I removed the use default domain directive, I was able to fully specify a
group and it worked great!  This just means that logging into the linux box
as a windows user is a little more painful.

Rich.

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


Re: [Samba] Samba 3.0 as Active Directory Domain ControllerwithMIT Kerberos

2003-10-12 Thread Rich Webb

Did you try:
@group

Also, check with the current code, I think there were some bugs fixed
here.  But this isn't a documentation flaw, it's just a bug - file it in
bugzilla.samba.org if you can reproduce on 3.0.1pre1.

Yep.. I tried @group @DOMAIN+group @DOMAIN\group +group +DOMAIN\group.

It only worked when I removed the winbind use default domain = yes and
then used @DOMAIN\group
I also had to remove winbind seperator = + which from what I have been
reading, the + seems to be a bad idea anyway.

Rich

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


Re: [Samba] Samba 3.0 as Active Directory Domain Controller withMIT Kerberos

2003-10-12 Thread Rich Webb
 I plan to update the winbind section significantly over the next month or
 two. Thanks for the input.



Just to let you know, per Andrew Bartlett I tried the newest version
(3.0.1pre1) and it fixes the problem I talked about.  I can now just specify
the group and use the winbind use default domain=yes


Rich

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


[Samba] PAM-Winbind authentication working but can't use domain groups

2003-10-11 Thread Rich Webb
I have successfully set up samba 3.0, PAM, Winbind and joined my samba
server to a windows 2000 domain.  I can log into my linux box as a domain
user and that all works fine.

I am having trouble trying to figure out how to set up access to a samba
share based on an Active Directory group.  Here is my smb.conf file:

[global]
winbind separator = `
idmap uid = 1-2
winbind gid = 1-2
winbind enum users = yes
winbind enum groups = yes
workgroup = testsys
security = domain
password server = testdc
template shell = /bin/bash
template homedir = /home/%U
winbind use default domain = yes

[shared]
path = /svr/shared
valid users = +TESTSYS`Shared
writeable = yes
browseable = yes

Now in the shared section, I have tried the following for valid users:

valid users = @Shared
valid users = @TESTSYS+Shared(with the seperator being a +)
valid users = +Shared (with seperator being a `)
valid users = +TESTSYS`Shared

All attempts to access the share failed.

The permissions on the directory are:

drwxr-xr-x2 rwebbShared 4096 Oct 11 15:44 shared

When trying to access this share from the win2k server, it pops up the
Connect As box and does not let me proceed.

Any help would be greatly appreciated.
Rich


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


[Samba] Re: PAM-Winbind authentication working but can't use domain groups (FIXED)

2003-10-11 Thread Rich Webb

- Original Message - 
From: Rich Webb [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, October 11, 2003 8:17 PM

 I am having trouble trying to figure out how to set up access to a samba
 share based on an Active Directory group.  Here is my smb.conf file:

In order to make it work, I had to take out the lines winbind use default
domain = yes, and winbind seperator = + and then fully specify the domain
group in my share definition as such:

[shared]
path = /svr/shared
valid users = @TESTSYS\shared   (or @TESTSYS\Domain Users if there are
spaces in the group)
writeable = yes
browseable = yes
force group = TESTSYS\shared

I think this could be a bug that it does not accept only valid users =
shared while winbind use default domain = yes.  It appears that samba is
not correctly matching the group the domain controllers group.

The + is not a good seperator because if you read about the valid users
directive, it uses a + to specify a unix group.

Hope this helps someone!
Rich

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


[Samba] Samba - Active Directory and folder level perm.

2003-03-10 Thread Rich Anglin
I have samba 2.2.7 installed on a Sol8 unix box

I have also config'ed Winbind.

My aim is to map my samba share to my win2k Active Directory server - and apply folder 
lever permision

ie..

\\samba-server\home-share%username%\

however I am seeing only SIDs Everyone and  Administrator  in the security tab of 
my share [sub]folders.

It there a way to implement folder level security on Active Directory server of samba 
mounted shares?

 I can see my users from wbinfo -u

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


[Samba] Re: samba as a replacement for ftp

2003-02-25 Thread Rich Webb
Francis Lau [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi all,

 My organization is thinking of using samba to replace the current ftp
 service that we offer, because it is very easy to use and encrypted
 passwords are built in Windows (for authentication).

 We are running a Solaris 5.8 machine with Samba 2.2 installed.

 We tested samba in our LAN and it works great.  However, this service
 is meant for users to connect from home.  What do we have to do to make
 samba work over a routed network?  Should we use a WINS server (using
 samba), special DNS server? I am very new to samba so please have a
 little patience in my basic questions. =)

I would recommend setting up a vpn server and dole out a private IP address
to the remote users.  Once they are on your network, browsing should work
fine.

Rich






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


RE: [Samba] 2.2.7a logon script will not run

2003-02-25 Thread Rich Forman
 
 Rich Forman schrieb:
 
 I just tried upgrading from 2.2.3 to 2.2.7a on my PDC
 (2.2.17 kernel).  The
 logon script that I have been using all along without any
 problems quits
 executing w/ 2.2.7a.  I can manually map the netlogon share
 after logging in
 and manually run the script and everything work fine.  No
 error messages
 
 have u checked, if the directory /usr/local/samba/netlogon
 has the 'x'
 (1) flag set in all hierachies.
 i had the same problema (as i posted before a view month's) -
 and that
 was the solution.
 
 
  The permissions on /usr/local/samba/netlogon/* are 777.

 sorry, -  i did read your first mail again. seeme i was sleeping
 yesterday - u told, that u have access...

 u did upgrade? - maybe, the machine account went away?
 did u try to re-join a machine to the domain?

Yes, I did upgrade w/ the tar file doing:

./configure
make
make install

Afterwords, I booted my W2K client machine and logged on to the domain.  The
logon script doesn't run, but otherwise everything is fine.  From the
client, I can map drives manually, access files, etc. all without errors.
It authenticates the user name and password throught the pdc and there
aren't any error messages at all either in the server logs or the client
event viewer.  I put everything back w/ 'make revert' and all runs fine
again w/ 2.2.3, including the logon script.  I saw some previous posts on
this subject, but the problem seemed to be using a %u variable in the name
of the script.  That isn't the case w/ me, the file is just logon.bat for
everybody.

Maybe one of these evenings I'll try again w/ log level 10 and try to
diagnose w/ that.

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


RE: [Samba] 2.2.7a logon script will not run

2003-02-24 Thread Rich Forman


 -Original Message-
 From: Kurt Weiss [mailto:[EMAIL PROTECTED]
 Sent: Sunday, February 23, 2003 11:29 PM
 To: Rich Forman
 Subject: Re: [Samba] 2.2.7a logon script will not run
 
 
 
 
 Rich Forman schrieb:
  I just tried upgrading from 2.2.3 to 2.2.7a on my PDC 
 (2.2.17 kernel).  The
  logon script that I have been using all along without any 
 problems quits
  executing w/ 2.2.7a.  I can manually map the netlogon share 
 after logging in
  and manually run the script and everything work fine.  No 
 error messages
 
 have u checked, if the directory /usr/local/samba/netlogon 
 has the 'x' 
 (1) flag set in all hierachies.
 i had the same problema (as i posted before a view month's) - 
 and that 
 was the solution.
 
The permissions on /usr/local/samba/netlogon/* are 777.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Samba Compile problem (2.2.7a)

2003-02-24 Thread Rich Webb
in /usr/src/samba-2.2.7a/source I typed the following command:

 ./configure --prefix=/usr --sysconfdir=/etc/samba

I get an error:

checking configure summary... configure: error: summary failure. Aborting
config

Last 20 lines of config.log:

configure:14091: checking whether struct passwd has pw_age
configure:14104:
gcc -c -O  -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
conftest.c 15
configure: In function `main':
configure:14100: structure has no member named `pw_age'
configure: failed program was:
#line 14097 configure
#include confdefs.h
#include pwd.h
int main() {
struct passwd p; p.pw_age;
; return 0; }
configure:14143: checking for poptGetContext in -lpopt
configure:14162: gcc -o
conftest -O  -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
conftest.c -lpopt   -ldl -lnsl -lcrypt 15
configure:14186: checking whether to use included popt
configure:14201: checking configure summary
configure:14210: gcc -o
conftest -O  -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
conftest.c  -ldl -lnsl -lcrypt -lpopt 15
configure: failed program was:
#line 14206 configure
#include confdefs.h
#include ./tests/summary.c

Any help would be greatly appreciated.
Thanks
Rich



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


[Samba] Re: samba and windows 2000 server

2003-02-24 Thread Rich Webb

Thiruvarasu [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Help needed

 Currenly i'm running samba on a RedHat 7.3 system. The primary domain
contreller in the network in a windows 2000 server machine. I'm using the
windows 2000 server to authenticate my users in the domain. Each time a new
user is created in windows 2000, i have to create the same user in linux
inorder to allow the user to have access to the samba shares. Is the re a
script or method that can automatically create users in linux as new users
being created in windows 2000 ?

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


man smb.conf

Have a look at the password server directive.  It allows samba to get it's
username/passwords from a remote server.

Rich




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


[Samba] 2.2.7a logon script will not run

2003-02-23 Thread Rich Forman
I just tried upgrading from 2.2.3 to 2.2.7a on my PDC (2.2.17 kernel).  The
logon script that I have been using all along without any problems quits
executing w/ 2.2.7a.  I can manually map the netlogon share after logging in
and manually run the script and everything work fine.  No error messages
appear in the log files.  My smb.conf file is included.  Don't know quite
where to go with this one.  Any suggestion would help.  All client machines
are NT4 or W2K.  Thanks in advance.

[global]

#Server Parameters
netbios name = SERVER
server string = Samba %v

#Domain Parameters
workgroup = GRAY1
encrypt passwords = yes
domain logons = yes
os level = 65
preferred master = true
domain master = true
guest ok = yes
domain admin group = @adm
# domain admin users = rich andy
add user script = /usr/sbin/adduser -n -g machines -c NTMachine -d
/dev/null -s /bin/false %m$
time server = yes

# Set to use local profiles
logon script = scripts\logon.bat
logon home =
logon drive =
logon path =

# Name Server Support
wins support = yes
name resolve order = wins hosts lmhosts bcast

# Security Options
security = user
bind interfaces only = yes
interfaces = 192.168.100.1/255.255.255.0 127.0.0.1
hosts allow = 192.168.100.

# Debuggin Information
log level = 1
log file = /var/log/samba/%m.log
max log size = 50
debug timestamp = yes

# Performance Tweaks
getwd cache = yes
socket options = TCP_NODELAY TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
IPTOS_LOWDELAY
dead time = 15
keep alive = 60
# lpq cache = 30

# Printing
printer admin = root, rich, @adm
printcap name = /etc/printcap
load printers = yes

[homes]
comment = Home Directories
browsable = no
writeable = yes
read only = no
#create mode = 0777

[netlogon]
path = /usr/local/samba/netlogon
browsable = no
writeable = yes
guest ok = no
valid users = @users @adm @sec
create mask = 777
directory mask = 777
inherit permissions = yes

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


Re: [Samba] some doubts

2003-01-30 Thread Rich Smrcina
Local accounts should work just fine.  I have nsswitch.conf set up with 
'compat winbind'.

On Thursday 30 January 2003 01:19 pm, Igor Debacker wrote:
 Greetings from Brazil,

 1) how can i login with the local accounts (root and others) while winbind
 is running ? i can only login with domain+user accounts !!!

 my /etc/nsswitch.conf is already configured to check files and winbind..
 what else should i do ?

 2) is there an way of my win2kserver users login only with their user name
 and not as DOMAIN+user ?

 Thanx in advance

 Igor Vieira Debacker
 [EMAIL PROTECTED]

-- 
Rich Smrcina
Sr. Systems Engineer
Sytek Services, A Division of DSG
Milwaukee, WI
[EMAIL PROTECTED]
[EMAIL PROTECTED]

Catch the WAVV!  Stay for Requirements and the Free for All!
Update your S/390 skills in 4 days for a very reasonable price.
WAVV 2003 in Winston-Salem, NC.
April 25-29, 2003
For details see http://www.wavv.org
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Compilation warning on 2.2.7a

2002-12-20 Thread Rich Smrcina
It seems pretty typical that compilation warnings can be essentially ignored. 
Be that as it may, if I can't find evidence that a warning can be ignored in 
the archives, I am compelled to ask about it.  A nod that these are OK or a 
fix for them if they are not OK would be appreciated.

I am getting several warnings with winbind_nss.c :

Compiling nsswitch/winbind_nss.c with -fPIC
nsswitch/winbind_nss.c: In function `fill_pwent': 
nsswitch/winbind_nss.c:600: warning: passing arg 2 of `get_static' from 
incompatible pointer type
nsswitch/winbind_nss.c:612: warning: passing arg 2 of `get_static' from 
incompatible pointer type
nsswitch/winbind_nss.c:629: warning: passing arg 2 of `get_static' from 
incompatible pointer type
nsswitch/winbind_nss.c:641: warning: passing arg 2 of `get_static' from 
incompatible pointer type
nsswitch/winbind_nss.c:653: warning: passing arg 2 of `get_static' from 
incompatible pointer type
nsswitch/winbind_nss.c: In function `fill_grent':
nsswitch/winbind_nss.c:690: warning: passing arg 2 of `get_static' from 
incompatible pointer type
nsswitch/winbind_nss.c:702: warning: passing arg 2 of `get_static' from 
incompatible pointer type 
nsswitch/winbind_nss.c:728: warning: passing arg 2 of `get_static' from 
incompatible pointer type
nsswitch/winbind_nss.c:753: warning: passing arg 2 of `get_static' from 
incompatible pointer type 
nsswitch/winbind_nss.c: In function `_nss_winbind_getpwent_r':
nsswitch/winbind_nss.c:870: warning: passing arg 4 of `fill_pwent' from 
incompatible pointer type
nsswitch/winbind_nss.c: In function `_nss_winbind_getpwuid_r': 
nsswitch/winbind_nss.c:920: warning: passing arg 4 of `fill_pwent' from 
incompatible pointer type
nsswitch/winbind_nss.c:933: warning: passing arg 4 of `fill_pwent' from 
incompatible pointer type
nsswitch/winbind_nss.c: In function `_nss_winbind_getpwnam_r':
nsswitch/winbind_nss.c:982: warning: passing arg 4 of `fill_pwent' from 
incompatible pointer type 
nsswitch/winbind_nss.c:995: warning: passing arg 4 of `fill_pwent' from 
incompatible pointer type
nsswitch/winbind_nss.c: In function `_nss_winbind_getgrent_r':
nsswitch/winbind_nss.c:1119: warning: passing arg 5 of `fill_grent' from 
incompatible pointer type
nsswitch/winbind_nss.c: In function `_nss_winbind_getgrnam_r':
nsswitch/winbind_nss.c:1179: warning: passing arg 5 of `fill_grent' from 
incompatible pointer type
nsswitch/winbind_nss.c:1193: warning: passing arg 5 of `fill_grent' from 
incompatible pointer type
nsswitch/winbind_nss.c: In function `_nss_winbind_getgrgid_r':
nsswitch/winbind_nss.c:1242: warning: passing arg 5 of `fill_grent' from 
incompatible pointer type
nsswitch/winbind_nss.c:1256: warning: passing arg 5 of `fill_grent' from 
incompatible pointer type
Linking nsswitch/libnss_winbind.so
-- 
Rich Smrcina
Sytek Services, Inc.
Milwaukee, WI
[EMAIL PROTECTED]
[EMAIL PROTECTED]

Catch the WAVV!  Stay for Requirements and the Free for All!
Update your S/390 skills in 4 days for a very reasonable price.
WAVV 2003 in Winston-Salem, NC.
April 25-29, 2003
For details see http://www.wavv.org
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



RE: [Samba] AutoCAD temp file error

2002-11-03 Thread Rich Forman
I continue to have this problem w/ LDD and it occurred even before I
switched from an NT server to Samba.  I'm fairly certain it's an Autodesk
problem.

-Original Message-
From: [EMAIL PROTECTED] [mailto:samba-admin;lists.samba.org]On
Behalf Of Brock Nanson
Sent: Friday, November 01, 2002 8:31 PM
To: Jay Ts
Cc: [EMAIL PROTECTED]
Subject: Re: [Samba] AutoCAD temp file error


Hi Jay,

 Brock Nanson wrote:
  I rather doubt this is a samba problem, but perhaps someone can offer a
  hint to solve the issue...

 It's very unlikely to be a Samba bug, but may very well be
 a Samba misconfiguration.

Perhaps.  But the config hasn't been touched in 2 years and the WinXX
workstations have never had the problem.

  The win2k box fails, saying the file could not be found on the path (and
  dumps a listing of the paths checked).  The path exists in the list, and
  the file has been written to the directory!  When the user responds to
the
  error and the command completes, the file is successfully deleted from
the
  server.  So, it is doing everything except finding and inserting the
file
  (which is there!).

 Exactly what is the name of the file, and are you using any foreign
 languages in file names?  If you are using anything other than English,
 be aware that support for internationalization in Samba 2.2 is a little
 complicated to set up, and may be the source of your problem.

 Even if your file names are in the American/English character set,
 there are differences between how Unix and Windows handle filenames.
 A common source of trouble is case sensitivity in filenames. There
 are parameters that can be set in the Samba configuration file (smb.conf)
 to help deal with this.

The filename looks like this: $abc$de.dwg

The letters aren't right (I can't recall them exactly right now), but the
file does start with a '$' and has a second on part way through as shown.

I think the key to this is hidden in the way I can 'seed' the directory with
this file once and have the command work until a new drawing is opened after
doing so.  Note that the file is deleted as a matter of course and that the
file is not there the second, third,... time the command is used and it will
work.  But I need the file there the first time!!

  The temp file on the server is being saved with rwxrw-rw- attributes,
  although all the other files are rw-rw-rw-.

 That is because Samba's default is 'map archive = yes'.  When the
 archive bit is set on a file from MS-DOS/Windows, Samba will keep
 track of it using the owner's execute bit.  It will look like an
 executable file to a Unix user.  If you don't like this, then set

 map archive = no

 in smb.conf.  After doing this, MS-DOS backup software may not work
 right, because it won't see any archive attributes set for files to
 incrementally back up.

Yeah, can't do this as I do use a Windows based backup utility.  Funny that
this file is the only one saved with the execute bit toggled.  The other
files AutoCAD creates don't have the execute bit set.

  I had wondered briefly if the speed with which the file is saved, then
  requested could be a problem.

 In a word: no.  In three words: I highly doubt it!

That's actually four words, but I do agree ;-)

  Any guesses?  Or even a confirmation that the problem is with Win2k and
  NOT the samba box?

 I certainly wouldn't guarantee it's not a Windows bug. ;-)
 If you haven't fixed the problem by now, try providing a little
 more information, specifically, the _exact_ name of a temporary
 file that is problematic -- didn't you think of including that
 in your question? :)

I did think of it but as I'm writing these postings away from the system
couldn't remember the exact file name.  I'm not very familiar with win2k but
found it strange that it differentiates between 'Nobody' and 'nobody'.  That
has me a little worried, but as I can use the work around described above, I
don't think the 'N' vs. 'n' is a problem.  I do think it is a win2k issue,
but it is odd that the problem can't be recreated when using a local drive.

Any other ideas??

Thanks,

Brock


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



[Samba] Large file sizes.

2002-09-26 Thread Rich Parker

Hello and thanks for your informative web site.
I went searching through looking for information on MAX file sizes with 
Samba, unfortunately, I wasn't able to locate what info I needed after 
an hour or so of searching. What OUR issues are here are we have a NAS 
using WinNT that our Linux server is accessing. We have a need to 
COPY/MOVE/TAR a file from one server (NT) to another. What my goal is, 
is to backup requested data (Files in excess of 15GB) in TAR format to a 
given location on our NAS, building a TAR file throughout the day, then 
in the evening (Say 12AM) we would GZip the file down for further 
Archiving. What the issue is, is I can't work with files greater than 
1.8GB, the File Sytem shows this is the size of the file, even if it is 
larger than 10GB.

Since these are '/mnt' drives, I can't figure out if our problem is 
Linux, or Samba related. We are using RedHat 7.0 (I know that 7.2 is 
avaible) and it came with Samba 2.0.10. Would ALL of these issues be 
dealt with in the new version of RH 7.2?? Or will I still experience 
file size problems even if I reload the new OS? I have no issues with 
getting the Latest  greatest versions of Samba  RH Linux, but I need 
to be 100% sure that I don't have file size limitations in the GB range, 
I expect to be dealing with files in the 10-40GB range on a daily basis, 
we are a service bureau so our customers send us this kind of data every 
day.

Can you please provide me an answer or two to these questions??

Thanks you ahead of time.
-- 
Rich Parker
http://www.fssi-ca.com
mailto:[EMAIL PROTECTED]

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



[Samba] network browsing problems

2002-06-12 Thread Rich Henry








I am having trouble making Windows XP machines a member of a
Samba domain. The behavior is when the initial logon screen for XP comes up, it says that it must rebuild the domain list. This
message stays for some time and the disappears. Then
when the domain is selected it tells me that it cannot find the domain
controller for the domain and that I cant logon to it.



The architecture of the setup is a Samba 2.2.4 server built
with smbmount, acl support
and winbind acting as the domain controller. The
master browser of the network is a Samba 2.0.9 server, which is acting as the
WINS server for the 2.2.4 machine.



Any thoughts would be appreciated.



Thanks,



Richard Henry

[EMAIL PROTECTED]








[Samba] PANIC: share_modes_identical

2002-05-23 Thread Rich Forman


When 2.2.4 was released, I updated my cvs and did ./configure and make (no
special options).  Since I came in somewhat early today and nobody was
around I did the make install.  Everything ran fine until I tried to load a
particular file and I'm receiving the following error and unable to open the
file on a network share.  If I place the file on a local drive it loads
fine.  Permissions and what not are identical to when I was running 2.2.3a.
Any thoughts?  TIA.


smbd/service.c:make_connection(651)  forman (192.168.100.14) connect to
service cad as user rich (uid=506, gid=100) (pid 17884)
smbd/open.c:open_mode_check(631)  open_mode_check: exlusive oplock left by
process 17884 after break ! For fileDRV/periscope/PScope15.arx, dev = 801,
inode = 1193703. Deleting it to continue...
smbd/open.c:open_mode_check(635)  open_mode_check: Existent process 17884
left active oplock.
locking/locking.c:share_modes_identical(560)  PANIC: share_modes_identical:
share_mode missmatch (e1 = 32, e2 = 32800). Logic error.
lib/util.c:smb_panic(1092)  PANIC: PANIC: share_modes_identical logic error.


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



[Samba] re: NIS and smbpasswd

2002-05-14 Thread Rich Henry

I am creating a samba domain that will allow PC access to a small group 
of Sun servers running varying and some very old versions of SunOS. They 
are using NIS for users, groups and netgroups. They share files 
internally via NFS from a single share on a Linux server.

I have setup samba to allow access local from their win9x,2000,XP 
workstations and therefore had to use encrypted passwords. Was wondering 
if anyone worked out any interesting password syncronization schemes 
with a similar configuration?

Currently I am using some expect glue to make the smb password sync 
work and I'm working on a backend for yppasswdd but its getting sloppy. 
Any ideas would be appreciated...

Thx,

Rich Henry
[EMAIL PROTECTED]


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