Missing findsmb in current CVS SAMBA_2_2 for RedHat

2002-06-03 Thread Olaf Frczyk

Hi,
I checked out SAMBA_2_2 branch yesterday, and tried to make rpm.
The spec file needs /packaging/RedHat/findsmb. But it is not there.
I've copied one from Mandrake and everything went fine.
Please, fix.

Regards,

Olaf Fraczyk






Re: Changing domain passwords

2002-06-03 Thread Andrew Bartlett

James Willard wrote:
 

 By the way, is SWAT broken in the HEAD branch or is it just my
 configuration? Whenever I try to run it, it traps a SIGABRT and dies. The
 backtrace is as follows:
 
 #0  0x808e0d5 in lp_save_defaults ()
 #1  0x808e468 in lp_load ()
 #2  0x805ef4b in load_config ()

I just noticed this for testparam.  I might get to chase it up, but I've
CC'ed 'ab', who I think was the last person messing in that area.  (It
could also be somthing comleatly unrealated)

Thanks,

Andrew Bartlett

-- 
Andrew Bartlett [EMAIL PROTECTED]
Manager, Authentication Subsystems, Samba Team  [EMAIL PROTECTED]
Student Network Administrator, Hawker College   [EMAIL PROTECTED]
http://samba.org http://build.samba.org http://hawkerc.net




Re: Missing findsmb in current CVS SAMBA_2_2 for RedHat

2002-06-03 Thread Gerald Carter

On Mon, 3 Jun 2002, Olaf [iso-8859-2] Fr±czyk wrote:

 Hi,
 I checked out SAMBA_2_2 branch yesterday, and tried to make rpm.
 The spec file needs /packaging/RedHat/findsmb. But it is not there.
 I've copied one from Mandrake and everything went fine.
 Please, fix.

This file is located in script/findsmb.in and is created as part of
the configure script now.  My RPM builds worked fine.  Are you using an 
old specfile by chance?





cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--





Makefile error when no winbind

2002-06-03 Thread Michel Stoop (samba)

I'm currently compiling on HP-UX 10.20.

This OS does not have winbind support.
In Makefile.in the variable @WINBIND_LTARGETS@
is used, but when I run configure this variable
is empty because HP-UX 10.20 does not have winbind.

This gives a syntax error on line 664 in the Makefile.

---
Michel Stoop,

Senior Network and Systems Administrator
postmaster for ncg.nl, ccggron.nl and centralindustrygroup.com
Numeriek Centrum Groningen B.V. Shipbuilding Services
Postbus 204
9700AE Groningen
+31 (0)50 541 26 32  fax: +31 (0)50 542 37 17
http://www.ncg.nl
mailto:[EMAIL PROTECTED]
---






Re: Makefile error when no winbind

2002-06-03 Thread Gerald Carter

On Mon, 3 Jun 2002, Michel Stoop (samba) wrote:

 I'm currently compiling on HP-UX 10.20.
 
 This OS does not have winbind support.
 In Makefile.in the variable WINBIND_LTARGETS
 is used, but when I run configure this variable
 is empty because HP-UX 10.20 does not have winbind.
 
 This gives a syntax error on line 664 in the Makefile.

You didn't say what release/cvs branch you are using.

I think we already fixed this in the latest SAMBA_2_2
cvs code.  Please retest and let me know.




cheers,jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--





VFS: Can you track fd (last activity on a file descriptor) ??

2002-06-03 Thread troutb

I looking for a way to check the last activity performed on a specific fd.

What I trying to do is,

see if the last action was a open while during the current write request.
this will tell me that a file was opened and actually written to.
when this occurs I will make a copy of file for ( FDA Part11 compliance ).

The issues is that most things open with write but perform so action .. or
possible not. If you right click properties in explorer it opens for write.
( I must track paired actions .. to conclude if a backup is needed or not.

---
My idea is created a GLOBAL array



int fd_stat[1024] = 0;

0=unused or closed
1=open for write
2=written too

int stat *vfs_init
-

Does SAMBA already do this with the current structures ?

help ...


if anyone else needs Part 11 Compliance .. I will releases this
if I can get it working










Re: VFS: Can you track fd (last activity on a file descriptor) ??

2002-06-03 Thread Derek Holden

I think this is going to become a common question for people starting with 
VFS modules. The mapping of open and subsequent write calls to real world 
operations such as newly created, modified, etc.

Sorry, I don't know the best way to do it yet. There is a 'BOOL modified' 
flag attached to the files struct, though I  don't know in which context 
it's updated. Other tricks I've seen involve checking the file sizes at 
various stages, i.e. an open with a file size of 0 is a possible new 
creation, etc.

Derek

At 6/3/2002 10:50 AM, you wrote:
I looking for a way to check the last activity performed on a specific fd.

What I trying to do is,

see if the last action was a open while during the current write request.
this will tell me that a file was opened and actually written to.
when this occurs I will make a copy of file for ( FDA Part11 compliance ).

The issues is that most things open with write but perform so action .. or
possible not. If you right click properties in explorer it opens for write.
( I must track paired actions .. to conclude if a backup is needed or not.

---
My idea is created a GLOBAL array



int fd_stat[1024] = 0;

0=unused or closed
1=open for write
2=written too

int stat *vfs_init
-

Does SAMBA already do this with the current structures ?

help ...


if anyone else needs Part 11 Compliance .. I will releases this
if I can get it working





Re: Missing findsmb in current CVS SAMBA_2_2 for RedHat

2002-06-03 Thread Olaf Frczyk

On Mon, 2002-06-03 at 16:18, Gerald Carter wrote:
 On Mon, 3 Jun 2002, Olaf [iso-8859-2] Fr±czyk wrote:
 
  Hi,
  I checked out SAMBA_2_2 branch yesterday, and tried to make rpm.
  The spec file needs /packaging/RedHat/findsmb. But it is not there.
  I've copied one from Mandrake and everything went fine.
  Please, fix.
 
 This file is located in script/findsmb.in and is created as part of
 the configure script now.  My RPM builds worked fine.  Are you using an 
 old specfile by chance?
 
Yes you are right, I used specfile for 2.2.4.
Sorry, I misguided you.

Regards,

Olaf







bug with profiles and logon home?

2002-06-03 Thread Terry Davis

Hello, I have my profiles being saved to a certain share.  However, the
profiles are not always going to this share, they are sometimes being
saved to the user's home directory.   here is the relevant config:

logon home = \\%N\%U
logon path = \\%N\profiles\%u
[profiles]
path = /home/profiles
read only = no
create mask = 0600
directory mask = 0700

Any ideas as to why I am seeing this behavior ? 
Thank you!!

-- 
Terry Davis
http://approbation.org/





Re: Missing findsmb in current CVS SAMBA_2_2 for RedHat

2002-06-03 Thread Gerald Carter

On 3 Jun 2002, Olaf [iso-8859-2] Fr±czyk wrote:

 On Mon, 2002-06-03 at 16:18, Gerald Carter wrote:
  On Mon, 3 Jun 2002, Olaf [iso-8859-2] Fr±czyk wrote:
  
   Hi,
   I checked out SAMBA_2_2 branch yesterday, and tried to make rpm.
   The spec file needs /packaging/RedHat/findsmb. But it is not there.
   I've copied one from Mandrake and everything went fine.
   Please, fix.
  
  This file is located in script/findsmb.in and is created as part of
  the configure script now.  My RPM builds worked fine.  Are you using an 
  old specfile by chance?
  

 Yes you are right, I used specfile for 2.2.4.
 Sorry, I misguided you.

No biggie.  Thanks for checking on it.






cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--





(no subject)

2002-06-03 Thread Jetapa

 




WinXP allows login to expired/forbidden accounts

2002-06-03 Thread Mario Juric

Hi,
I've stumbled upon this problem while trying to limit access to specific 
machine to specific domain users. I did it by setting Samba to obey PAM 
restrictions, and then using the pam_access PAM module ('account' clause) 
to do user validation (described below).

On Win2000, this works fine - if an unauthorized user tries to login, 
Win2000 says 'Account not permitted to login at this time' (or something 
along those lines), and disallows the login.

But WinXP _allows_ the login to proceed, but refuses to map any drives 
(home directory) and disallows access to PDC shares. In this way, the user 
has access to local disks and resources.

Can someone try to replicate and find the source of this bug? I'm seeing it 
on two different WinXP machines, and on no Win2k machines. Is it too late 
to fix this for 2.2.5?

I'm using stock Samba 2.2.4 on RedHat 7.2 as a PDC to Win2k and WinXP domains.

-

Disallowing Samba logins of users from specific machines:

The question was how to restrict logging in from a specific machine
(kaitain.zagreb.fizika.org) only to users listed in specific UNIX groups
(ss, admins) and to root. Kaitain is a WinXP machine.

This is how I did it, using PAM and pam_access module:

1. Set the global smb.conf configuration option:

  obey pam restrictions = yes

2. Modify/create your /etc/pam.d/samba configuration file
along these lines:

/etc/pam.d/samba :
-
#%PAM-1.0
auth   required pam_nologin.so debug
auth   required pam_stack.so service=system-auth

# [majuric] -- implement Samba login restrictions
accountrequired pam_access.so accessfile=/etc/samba/samba-access.conf

accountrequired pam_stack.so service=system-auth
sessionrequired pam_stack.so service=system-auth
password   required pam_stack.so service=system-auth
-

This is a RedHat 7.2 setup, so your file (pam_stack portions in particular)
might differ. The important bit is the pam_access line.

3. Create samba-access.conf file

/etc/samba/samba-access.conf :
-
#
# [majuric] - this is a file for restriction of Samba access
#   using the pam_access module. For this to work, smb.conf
#   parameter obey pam restrictions = 'yes' must be set,
#   and in /etc/pam.d/samba the following line must be added:
#
#   auth  required  pam_access.so accessfile=/etc/samba/samba-access.conf
#

#
# [majuric] -- disallow logins from restricted computers
# (currently, Kaitain) to users other than root and ss and admins groups
#

-:ALL EXCEPT ss admins root: kaitain.zagreb.fizika.org
-
-
Mario Juric,
Student at Physics dept. of Faculty of Science, University of Zagreb
Voice : +385 1 3095 649 SS HFD : http://fizika.org
Mobile: +385 98 736 550 VO : http://www.astro.hr

 I'm successful because I'm lucky.
 The harder I work, the luckier I get.





Does ACL requires RPC?

2002-06-03 Thread Igor Lerner

Hi,

Maybe this is the wrong place to ask this question...
Can anyone tell me whether implementation of ACL in CIFS requires RPC
(remote services) support or it is just sufficient to implement ACL related
transactions.
Thanks in advance.

Igor

--
[EMAIL PROTECTED]

attachment: winmail.dat

Re: [PATCH] Clean up samba-2.2 for POSIX-96

2002-06-03 Thread Jeremy Allison

On Sat, Jun 01, 2002 at 02:52:00PM -0400, [EMAIL PROTECTED] wrote:
 At Jeremy's request, here is a version of the POSIX-96 cleanup
 patches for the Samba 2.2 branch.

Applied, thanks !

Jeremy.




Re: compile samba-2.2.4 on Solaris 7

2002-06-03 Thread Gerald Carter

On Thu, 30 May 2002, Juergen Hasch wrote:

 I believe the test program isn't that wrong. Wouldn't it be correct simply not 
 to use dirent64 at all if readdir64 isn't defined ?

This sounds correct to me.  Although I'm trying to find a box on which 
readdir64 is not available.  I'm checking it into SAMBA_2_2 now.










cheers, jerry





Re: compile samba-2.2.4 on Solaris 7

2002-06-03 Thread Eric Boehm

On Mon, Jun 03, 2002 at 03:31:10PM -0500, Gerald Carter wrote:
 Jerry == Gerald Carter [EMAIL PROTECTED] writes:

Eric On Thu, 30 May 2002, Eric Boehm wrote: I've seen the
Eric following behavior on Solaris 8.

Eric 1. compiling 32-bit with Sun Workshop, configure checks for
Eric and finds readdir64... yes dirent64... yes

Eric 2. compiling 32-bit with Sun Workshop, configure checks for
Eric and finds readdir64... no dirent64... yes

Jerry Do you mean 64-bit here for #2?

Yes, I mean 64-bit. cut-and-paste too quickly, sorry.

-- 
Eric M. Boehm  /\  ASCII Ribbon Campaign
[EMAIL PROTECTED]   \ /  No HTML or RTF in mail
X   No proprietary word-processing
Respect Open Standards / \  files in mail