[Samba] Re: installing Samba as non-root user at work - please help.

2007-09-24 Thread Matt Seitz
[EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 All I wish to achieve is being able to map my Linux home directory on my
 Windows PC.


 Speaking of ports, I specify ports of 1445 and 1139 for smdb, since I cannot
 use a port below 1024 without having root access.

Unless you want to do something fancy like SSH port tunneling, that won't work. 
The Windows CIFS/SMB client will only connect to port 139 and port 445.

I can't see a way to map a drive letter from your Windows box to your Linux box 
without cooperation from someone with root access on the Linux box.  If your 
Linux box supports SSH access, you could use a tool like WinSCP on your Windows 
box to copy files to and from your Linux box. 



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


[Samba] Re: forcing XP clients to use CIFS

2007-09-03 Thread Matt Seitz \(matseitz\)


Andrew Bartlett [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
On Wed, 2007-08-29 at 21:48 +0200, Jax wrote:
 I guess there is a registry value for it. As I noticed winxp try to
use 
 smbfs first not cifs. In linux it's easier because you can choose
when 
 you mount your shares.

smbfs v cifsvfs is a matter of two implementations of the protocol
client, that happen to exist in the Linux Kernel.  

Windows XP only has one CIFS client, there is nothing to choose. 

Maybe Jax meant getting the Windows CIFS client to always use SMB Direct
Host (TCP port 445), instead of using NetBIOS/TCP (TCP port 139)?
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] SAMBA HOWTO: time displayed in UNIX file listing

2005-03-15 Thread Matt Seitz
The SAMBA HOWTO says that ls displays access time.  Doesn't it display modify 
time?
The HOWTO says
A UNIX file listing looks as follows:
[listing removed]
The columns above represent (from left to right): [...], access date, access 
time, file name.
--http://us2.samba.org/samba/docs/man/Samba-HOWTO-Collection/AccessControls.html#id2562588

The UNIX standard says:
The date and time field shall contain the appropriate date and timestamp of 
when the file was last modified.

--http://www.opengroup.org/onlinepubs/95399/utilities/ls.html
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] net ads joing fails using Red Hat samba 3.0.7-1.3E.1 (Re: Samba 3 as domain member of w2k realm)

2004-11-18 Thread Matt Seitz
R.B. wrote:
i've a problem joining a samba 3.0.7-1.3E.1 in a w2k domain:
[EMAIL PROTECTED] squid]# net ads join -U myuser
myuser's password:
[2004/11/18 13:29:32, 0] utils/net_ads.c:ads_startup(183)
 ads_connect: Program lacks support for encryption type
This appears to be a bug in Red Hat's version of Samba.  See:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=139668
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Re: share names longer than 12 characters

2004-11-18 Thread Matt Seitz
Kristof Van Landschoot wrote:
The problem is this: using smbclient -L, the
shares are just not listed.  
This is a known limitation, but there is a workaround.  See:
https://bugzilla.samba.org/show_bug.cgi?id=1629
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Re: winbind: authenticating UNIX user before Win Domain user

2004-11-18 Thread Matt Seitz
Luke Mewburn wrote:
  I have the same requirement; except samba can't currently do this.  See:
  http://lists.samba.org/archive/samba/2004-October/094981.html
I implemented a trim default domain option and provided a patch in:
  http://www.dragoninc.on.ca/mail-archives/samba-technical/2004-10/0342.html
What about the following scenario?
1.  User1 is not in NIS.
2.  DOMAIN\User1 logs into Samba
3.  Winbind creates UID for User1
4.  NIS administrator then adds User1 to NIS
It appears you could end up with conflicting UIDs for User1, unless Winbind 
automatically added the user to NIS at the same time.

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


[Samba] Re: net ads join fails using Red Hat samba 3.0.7-1.3E.1 (Re: Samba 3 as domain member of w2k realm)

2004-11-18 Thread Matt Seitz
Resending with corrected subject line
Matt Seitz wrote:
R.B. wrote:
i've a problem joining a samba 3.0.7-1.3E.1 in a w2k domain:
[EMAIL PROTECTED] squid]# net ads join -U myuser
myuser's password:
[2004/11/18 13:29:32, 0] utils/net_ads.c:ads_startup(183)
 ads_connect: Program lacks support for encryption type

This appears to be a bug in Red Hat's version of Samba.  See:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=139668


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


[Samba] GID-to-SID mapping fails

2004-11-11 Thread Matt Seitz
Name-to-SID works:
[EMAIL PROTECTED] mpmCx]# wbinfo -n QA4\\DnsUpdateProxy
S-1-5-21-3152226350-2923503207-3337354198-1105 Domain Group (2)
SID-to-Name works
[EMAIL PROTECTED] mpmCx]# wbinfo -s 
S-1-5-21-3152226350-2923503207-3337354198-1105
QA4\DnsUpdateProxy 2
SID-to-GID works:
[EMAIL PROTECTED] mpmCx]# wbinfo -Y 
S-1-5-21-3152226350-2923503207-3337354198-1105
10010
GID-to-SID fails:
[EMAIL PROTECTED] mpmCx]# wbinfo -G 10010
Could not convert gid 10010 to sid
Any suggestions?
Additional info:
[EMAIL PROTECTED] mpmCx]# wbinfo --version
Version 3.0.7-1.3E
[EMAIL PROTECTED] mpmCx]# wbinfo -g
BUILTIN\System Operators
BUILTIN\Replicators
BUILTIN\Guests
BUILTIN\Power Users
BUILTIN\Print Operators
BUILTIN\Administrators
BUILTIN\Account Operators
BUILTIN\Backup Operators
BUILTIN\Users
QA4\Domain Computers
QA4\Domain Controllers
QA4\Schema Admins
QA4\Enterprise Admins
QA4\Domain Admins
QA4\Domain Users
QA4\Domain Guests
QA4\Group Policy Creator Owners
QA4\DnsUpdateProxy
[EMAIL PROTECTED] mpmCx]# getent group | grep 10010
QA4\DnsUpdateProxy:x:10010:
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Re: smbclient - NT_STATUS_LOGON_FAILURE

2004-04-07 Thread Matt Seitz
John Sheridan wrote:
smbclient //excalibur2/test -U \\MYDOMAIN\darrenk
Try:

smbclient //excalibur2/test -W MYDOMAIN -U darrenk

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


Re: [Samba] Building as non-root user

2003-11-21 Thread Matt Seitz
Andrew Bartlett wrote:
On a reasonably sensible linux system, the tests that require root can
be ignored safely.  Indeed, it's only the ./configure stage that needs
it at all.

 (On other unix systems, these tests can be important however)
If I run configure as root, and then run make as non-root, I run into a 
problem.  I read in GNU AUTOCONF, AUTOMAKE AND LIBTOOL 
(http://sources.redhat.com/autobook) that it is best to use a build directory 
separate from the source directory.  I like that approach, so I am creating a 
build directory and running ../source/configure from that directory as root.

If I then run make as non-root, I get an error:

Building include/proto.h
creating /opt/teamware/orion-cifs/src/ext/samba/build/include/proto.h
/opt/teamware/orion-cifs/src/ext/samba/source/script/mkproto.sh: 
/opt/teamware/orion-cifs/src/ext/samba/build/include/proto.h.14373.tmp~: No such 
file or directory
mv: cannot stat 
`/opt/teamware/orion-cifs/src/ext/samba/build/include/proto.h.14373.tmp~': No 
such file or directory
make: *** [include/proto.h] Error 1

It appears the error is caused by configure creating an include directory 
that cannot be modified by another user.

Any suggestions on how best to solve this problem?

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


[Samba] Building as non-root user

2003-11-20 Thread Matt Seitz
Are there any drawbacks to building SAMBA as a user other than root?  I would 
like to build using a different account.  But USING SAMBA 2nd Edition says, 
Before running the configure script, it is important that you become the root 
user on the system.  The make examples in both USING SAMBA and SAMBA HOWTO 
also use the root user.

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


[Samba] Re: Dfs - Load Balancing

2003-10-30 Thread Matt Seitz
[EMAIL PROTECTED] wrote:
1) How does it load balance?  Is it some sort of round robin?
No, its more like autofs using NFS with sym links in the Unix 
world.
Actually, MS-DFS can do load balancing.  You can define multiple targets for a 
DFS link.  The client can then pick any of those targets.

However, MS-DFS does nothing to make sure those targets are identical.  It is up 
to the administrator to make sure the targets stay synchronized.

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


[Samba] smbcacls will not connect to Windows 2003 server

2003-08-21 Thread Matt Seitz
The Samba 3.0-RC1 smbcacls utility is reporting an error when I ask it 
to display the security information of a file on a Windows 2003 server:

 [EMAIL PROTECTED] bin]# ./smbcacls --user=SEITZDNSDOMNAIN\Administrator 
//seitzwin2003/Documents test.txt
 params.c:OpenConfFile() - Unable to open configuration file 
/root/samba/debug/lib/smb.conf:
 No such file or directory
 Password:
 signing_good: SMB signature check failed on seq 1!
 SMB Signature verification failed on incoming packet!
 failed session setup with NT_STATUS_LOGON_FAILURE
 cli_full_connection failed! (NT_STATUS_LOGON_FAILURE)

The smbclient utility works fine:

 [EMAIL PROTECTED] bin]# ./smbclient -WSEITZDNSDOMNAIN -UAdministrator 
//seitzwin2003/Documents
 ./smbclient: Can't load /root/samba/debug/lib/smb.conf - run testparm 
to debug it
 Password:
 smb: \ dir
   .  DR0  Wed Aug 20 15:33:56 2003
   .. DR0  Wed Aug 20 15:33:56 2003
   desktop.ini   AHS   62  Mon Jul 28 06:36:43 2003
   test.txtA9  Wed Aug 20 15:34:15 2003

 65389 blocks of size 65536. 31222 blocks available
 smb: \
Is this just my error, a known problem, or should I report it to bugzilla?

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


[Samba] Re: smbcacls will not connect to Windows 2003 server

2003-08-21 Thread Matt Seitz
Jeremy Allison wrote:
On Thu, Aug 21, 2003 at 02:52:38PM -0700, Matt Seitz wrote:

The Samba 3.0-RC1 smbcacls utility is reporting an error when I ask it 
to display the security information of a file on a Windows 2003 server:

 [EMAIL PROTECTED] bin]# ./smbcacls --user=SEITZDNSDOMNAIN\Administrator 
//seitzwin2003/Documents test.txt
 params.c:OpenConfFile() - Unable to open configuration file 
/root/samba/debug/lib/smb.conf:
 No such file or directory
 Password:
 signing_good: SMB signature check failed on seq 1!
 SMB Signature verification failed on incoming packet!
 failed session setup with NT_STATUS_LOGON_FAILURE
 cli_full_connection failed! (NT_STATUS_LOGON_FAILURE)


Can you get me a debug level 10 log of this please ?
I'm guessing that for some reason smbcalcs is not obeying
the request to turn on sessino signing.
I discovered that it works fine if use a forward slash (/) instead of 
a backwards slash (\) between SEITZDNSDOMAIN and Administrator. 
Would you still like a level 10 log, or should I just chalk it up to 
user error?



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


[Samba] Re: smbcacls will not connect to Windows 2003 server

2003-08-21 Thread Matt Seitz
Matt Seitz wrote:
The Samba 3.0-RC1 smbcacls utility is reporting an error when I ask it 
to display the security information of a file on a Windows 2003 server:

 [EMAIL PROTECTED] bin]# ./smbcacls --user=SEITZDNSDOMNAIN\Administrator 
//seitzwin2003/Documents test.txt
 params.c:OpenConfFile() - Unable to open configuration file 
/root/samba/debug/lib/smb.conf:
 No such file or directory
 Password:
 signing_good: SMB signature check failed on seq 1!
 SMB Signature verification failed on incoming packet!
 failed session setup with NT_STATUS_LOGON_FAILURE
 cli_full_connection failed! (NT_STATUS_LOGON_FAILURE)

User error.  I should have used a forward slash (/) between 
SEITZDNSDOMAIN and Administrator:

./smbcacls --user=SEITZDNSDOMNAIN/Administrator //seitzwin2003/Documents 
test.txt
params.c:OpenConfFile() - Unable to open configuration file 
/root/samba/debug/lib/smb.conf:
No such file or directory
Password:
REVISION:1
OWNER:BUILTIN\Administrators
GROUP:SEITZDNSDOMAIN\Domain Users
ACL:NT AUTHORITY\SYSTEM:ALLOWED/0/FULL
ACL:BUILTIN\Administrators:ALLOWED/0/FULL
ACL:BUILTIN\Administrators:ALLOWED/0/FULL
ACL:S-1-5-32-547:ALLOWED/0/CHANGE
ACL:BUILTIN\Users:ALLOWED/0/READ



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


[Samba] DFS Version 3 referral documentation

2003-08-19 Thread Matt Seitz
Where can I find documentation for the DFS Version 3 Referral?  I see 
that Samba implements it, but I cannot find it documented anywhere.

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


[Samba] Disable optimization

2003-08-14 Thread Matt Seitz
I would like to build Samba with optimizations disabled (easier to step 
through the code in a debugger).  Is there an option I can pass to 
./configure, or must I edit the resulting makefile by hand?

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


[Samba] [Fwd: Re: GLASS in The Samba Team announces Samba 3.0.0beta3]

2003-07-17 Thread Matt Seitz
Thanks for replying to my question.  However, I am still confused.

Rafal Szczesniak [EMAIL PROTECTED] wrote:

On Thu, Jul 17, 2003 at 08:58:30AM -0700, Matt Seitz wrote:
The Samba web site contains The Samba Team announces Samba 3.0.0 
beta3.  This document includes a section titled Trust Relationships 
and a Samba Domain.  
For reference, here's the URL:  http://www.samba.org/samba/whatsnew/samba-3.0.0beta3.html

What does GLASS represent?

It's sample name of the remote domain. You can call it MILKYWAY,
OFFICE and DOMAIN as well. It is aritrary name the administrator
of the remote name gave her while installing primary domain controller.
I thought that in this example that WINDOWS was the sample name of the remote domain.  If GLASS is the name of the remote domain, then what does WINDOWS represent?

Here is a fuller excerpt:

To establish Samba as the trusting domain (named SAMBA) from a Windows NT
4.0 domain named WINDOWS:
 1) create the trust account for SAMBA in User Manager for Domains
 2) connect the trust from the Samba domain using
'net rpc trustdom establish GLASS'
To create a trustlationship with SAMBA as the trusted domain:

 1) create the initial trust account for GLASS using
'smbpasswd -a -i GLASS'.  You may need to create a UNIX
account for GLASS$ prior to this step (depending on your
local configuration).
 2) connect the trust from a WINDOWS DC using User Manager
for Domains 

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


ANSI C (was RE: Access control to SAM / _samr_query_sec_obj)

2002-06-06 Thread Matt Seitz

From: Tim Potter [mailto:[EMAIL PROTECTED]]
On Thu, Jun 06, 2002 at 09:01:45PM +1000, Andrew Bartlett wrote:

 Secondly, I have some further style nit-picks:
  - We can't use \\ as a comment in Samba, as many C compilers don't
 understand it.

It's actually not ANSI C!  
Another one I found recently was having a comma on the last element of 
an enum is not ANSI C. 

Actually, both single line comments (//) and trailing commas in
enumeration declarations have been legal in ANSI C since 1999.




RE: Thanks for fixing oplock.c for Linux 2.0 in 2_2 CVS

2002-05-31 Thread Matt Seitz

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
The only thing would be to completely disallow
connection timeouts for Win9x clients - I'm not sure
this is what we want.

Perhaps timeouts could be prevented for a 9x client when an oplock is
present?  Or have two timeouts:  a shorter (soft) timeout when an oplock is
not present and a longer (hard) timeout even when an oplock is present?




RE: One more compile warning fix for Solaris

2002-05-17 Thread Matt Seitz

From: Richard Bollinger [mailto:[EMAIL PROTECTED]]
- int fromlen = sizeof(from);
+ unsigned int fromlen = sizeof(from);

Wouldn't the following be more portable?
size_t fromlen = sizeof(from);

Sincerely,

Matt Seitz
Senior Software Engineer
Quantum Corporation