RE: [Samba] 2 GB Limit when writing to smbfs filesystems

2003-07-18 Thread Vizitiu, Ciprian


 
 I'm running RedHat 8.0 with samba-2.2.7-5.8.0 (installed from RedHat
 distribution)
 
 When I use cpio to write a backup ( 2GB) to a smbfs 
 filesystem, I get the
 error: File size limit exceeded
 I get the same error when I linux copy (cp) a file ( 2GB) 
 from a Linux ext3 filesystem to the smbfs filesystem. The 
 smbfs filesystem is mounted from a Windows 2000 Professional 
 workstation.
 
 After experiencing the problem, I installed an NFS client on 
 the Windows 2000 Professional workstation (for testing 
 purposes).  Everything works with NFS, but I want to make it 
 work with samba.
 
 I DO NOT get an error when:
 MS copy from NTFS to samba share (i.e.  copy c:\bigfile
 \\linuxsvr\smbshr\bigfile)
 MS copy from samba share to NTFS (i.e.  copy \\linuxsvr\smbshr\bigfile
 c:\bigfile)
 Linux copy from ext3 to ext3 (i.e. cp -p /home/bigfile1 
 /home/bigfile2) Linux copy from NFS to ext3 (i.e.  cp -p 
 /nfs/bigfile /home/bigfile) Linux copy from ext3 to NFS (i.e. 
  cp -p /home/bigfile to /nfs/bigfile)
 
 I ONLY get the error when linux is trying to copy (cp) or 
 write (cpio, tar,
 dd) to a mounted samba filesystem.
 (i.e. mount -t smb //win2k-ws/share /mnt)
 
 Do I need to install something for linux to treat the mounted 
 share as a CIFS filesystem?

Q: 2GB file limit in samba?
A: No. At this time ( kernel 2.2.4 and samba 2.2.8 ) the limit is in the
kernel code used to access samba not in the samba server. Some patches float
around to for this problem, search for CIFS smbfs patch. OTOH f u're in 4
back-up, one hint: split or tar -M 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Vijay - samba box not seen in browse list.

2003-07-16 Thread Vizitiu, Ciprian

 
 smbclient -L localhost   gives the error :
 
 added interface ip=192.168.0.229 bcast=192.168.0.255 
 nmask=255.255.255.0 error connecting to 127.0.0.1:139 
 (Connection refused) error connecting to 127.0.0.1 
 (Connection refused)

netstat -nap | grep 139

Like this:

[EMAIL PROTECTED] netstat -nap | grep 139
tcp0  0 0.0.0.0:139 0.0.0.0:*   LISTEN
31102/smbd
tcp0  0 193.338.203.231:139  193.338.203.231:53728
ESTABLISHED 2194/smbd
tcp0  0 193.338.203.231:53728193.338.203.231:139
ESTABLISHED 2189/sshd

As you can see there are some connections because I do a tunnel but the
important part is the LISTEN / smbd line. How does the output of the command
look in your case?

 The same command given for the DomainB gives the same 
 error(withteh ip of the server ) 

Let me guess: DomainB is Samba?! :-


 but for DomainA ( NT 
 Server 4.0 ) it asks for a username and password. Why ?

Because you haven't specify in the command line the password. man smbclient
and look how to specify the password, that's not the ideea.

 and mount -t smbfs .. /mnt/floppy  gives 
 the error : Error connecting to 127.0.0.1 (Connection refused)
 10934: Connection to cvsbkup failed
 SMB connection failed.

Heck! Is there ANY smbd running on your machine? :-o
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Question / Help

2003-07-16 Thread Vizitiu, Ciprian

 Good Morning,

Good evening! :)

 Printing, well that is the issue.  I can see the printers, 
 but when I try to print I get a message that the printer is 
 not available, or it just does not print.  I can once in a 
 blue moon get the win 2K machine to do a test print.  

First try following this how-to step by step so you can set reliable
printing at least from W2000: 

http://www.linuxprinting.org/kpfeifle/SambaPrintHOWTO/Samba-HOWTO-Collection
-3.0-PrintingChapter-11th-draft.html

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


RE: [Samba] Vijay - samba box not seen in browse list.

2003-07-15 Thread Vizitiu, Ciprian


 Without modifying any security parameters, I have changed the 
 following : interfaces = 192.168.0.229/24 ; not needed remote 
 announce = 192.168.0.255 local master = yes
 
 and created a user administrator onthe linux box with the 
 same passwd as that of the win2K server - using smbpasswd.
 
 I am still not able to browse/access thislinux box.
 

Can you connect from the very same linux box? Open a terminal and do a 

smbmount '\\thislinuxbox\myshare' /mnt/floppy -o
username=a_valid_samba_username

Does it work?

From the same command prompt do

smbclient -L thislinuxbox 

don't give any passwd and watch for

WorkgroupMaster
----
SOMEWKG  PDC_NAME

If the PDC_NAME is still the windows box your samba lost elections so the
browse list is still in Redmond! ;-) 

Painfull question: are you allowed to reboot the PDC? :)
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Cant Change Password from W2K client

2003-07-14 Thread Vizitiu, Ciprian
 Hello again all. I am only having one problem with my shiny new PDC 
 running Samba 2.2.8a -- The client can't change their password from 
 their own machine! The error returned is:
 
 The user name or old password is incorrect. Letters must be 
 typed using 
 the correct case. Make sure that Caps Lock is not accidentally on
 
 A search of the mailing list archives, a google search, and 
 others have 
 not been able to yield results. Here is what I have tried so far:
 
 - made sure the correct case was being used
 - made sure the (old) password was correct
 - made sure the  username in both smbpasswd and /etc/passwd 
 was lowercase
 - restarted the smbd daemon
 - combed through smb.conf
 
 and nothing. Can anyone offer advice? My smb.conf is below:

   passwd chat = *New*UNIX*password* %n\n 
 *Retype*new*UNIX*password* %n\n *Enter*new*UNIX*password* 
 %n\n *Retype*new*UNIX*password* %n\n *passwd: 
 *all*authentication*tokens*updated*successfully*
   unix password sync = Yes
   log level = 2


If you're on RH, the above sequence for password chat is wrong. Set unix
password sync = No and see if it makes a difference!! If yes then you'll
have to set log level = 103  and  passwd chat debug = yes and look in
the logs! Upon careful examination you'll see what's wrong in the above
chat sequence.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] passwd chat debug

2003-07-14 Thread Vizitiu, Ciprian

 
 I'm trying to set up my passwd chat, then I was adviced to use:
 
 passwd chat debug = yes
 debug level = 103
 encryp passwords = no
 
 But I can't find the chat inside log.smbd
 
 What am I doing wrong?

You're looking in the wrokg place... Look in the machine.log where machine
is the smbname of the WS trying to change the password you should see
something like this:

[2003/07/14 16:08:24, 3] smbd/sec_ctx.c:set_sec_ctx(329)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2003/07/14 16:08:24, 3] smbd/chgpasswd.c:chat_with_program(430)
  Dochild for user zoko (uid=0,gid=0)
[2003/07/14 16:08:24, 10] smbd/chgpasswd.c:dochild(211)
  Invoking '/usr/bin/passwd zoko' as password change program. [2003/07/14
16:08:26, 100] smbd/chgpasswd.c:expect(265)
  expect: expected [*New*password*] received [Changing password for user
zoko. New password: ] match no
[2003/07/14 16:08:28, 100] smbd/chgpasswd.c:expect(265)
  expect: expected [*New*password*] received [] match no [2003/07/14
16:08:28, 10] smbd/chgpasswd.c:expect(276)
  expect: returning False
[2003/07/14 16:08:28, 3] smbd/chgpasswd.c:talktochild(302)
  Response 1 incorrect
[2003/07/14 16:08:28, 3] smbd/chgpasswd.c:chat_with_program(363)
  Child failed to change password: zoko
[2003/07/14 16:08:28, 3] smbd/chgpasswd.c:chat_with_program(401)
  The process exited while we were waiting

From the above dialog it should be clear that samba is expecting something
different than what it is receiving. Question is why * doesn't really match
like it says in the man page?! Anyway carefully crafting the chat sequence
you can overcome this small issue... ;-)
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] passwd chat debug

2003-07-14 Thread Vizitiu, Ciprian
 Would you believe me if I say I didn't find anything similar 
 to what you showed me?
 

You mean you grep expect /var/log/samba/* and you and you end up empty
handed? Woops! :-| 

I do believe you but is sounds very strange... This was the limit of my
trouble with the password change in samba. After many restarts I've got a
chat sequence that worked. Yet I say that the sollution should be deduced
from the logs...

Some gurus should step in and enlighten us... :-)

 I try to change passwd from a W2k Workstation and it says I'm 
 not allowed to change passwd...
 
 And I still can't log in from a Win NT 4 Workstation... :(((

So don't start from W2K, start from linux login on the samba server; can you
change it from bash prompt as that user or not?! If you set unix password
change = no you should be able to do smbpasswd username and basta! Ok, as
as a paranoia test do also a smbmount '\\mysambaserver\myshare'
/mnt/somewhere -o username=mysambaname and if it works it means the samba
infrastructure is OK nomatter what, it's got to be in W2K; or at least
AFAIK...

Why do you insist so much in keeping the UNIX pass in sync anyway? :-o

 
 On Mon, 14 Jul 2003, Vizitiu, Ciprian wrote:
 
 
  
  I'm trying to set up my passwd chat, then I was adviced to use:
  
  passwd chat debug = yes
  debug level = 103
  encryp passwords = no
  
  But I can't find the chat inside log.smbd
  
  What am I doing wrong?
 
 You're looking in the wrokg place... Look in the machine.log where 
 machine is the smbname of the WS trying to change the password you 
 should see something like this:
 
 [2003/07/14 16:08:24, 3] smbd/sec_ctx.c:set_sec_ctx(329)
   setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
 [2003/07/14 16:08:24, 3] smbd/chgpasswd.c:chat_with_program(430)
   Dochild for user zoko (uid=0,gid=0)
 [2003/07/14 16:08:24, 10] smbd/chgpasswd.c:dochild(211)
   Invoking '/usr/bin/passwd zoko' as password change program. 
 [2003/07/14 16:08:26, 100] smbd/chgpasswd.c:expect(265)
   expect: expected [*New*password*] received [Changing password for 
 user zoko. New password: ] match no [2003/07/14 16:08:28, 100] 
 smbd/chgpasswd.c:expect(265)
   expect: expected [*New*password*] received [] match no [2003/07/14 
 16:08:28, 10] smbd/chgpasswd.c:expect(276)
   expect: returning False
 [2003/07/14 16:08:28, 3] smbd/chgpasswd.c:talktochild(302)
   Response 1 incorrect
 [2003/07/14 16:08:28, 3] smbd/chgpasswd.c:chat_with_program(363)
   Child failed to change password: zoko
 [2003/07/14 16:08:28, 3] smbd/chgpasswd.c:chat_with_program(401)
   The process exited while we were waiting
 
 From the above dialog it should be clear that samba is expecting 
 something
 different than what it is receiving. Question is why * 
 doesn't really 
 match like it says in the man page?! Anyway carefully 
 crafting the chat 
 sequence you can overcome this small issue... ;-)
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  http://lists.samba.org/mailman/listinfo/samba
 
 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] samba via ssh; some W2000 do not.

2003-07-14 Thread Vizitiu, Ciprian


Samba 2.2.8a. Since (Free)Swan flew into ground I've started to use
openssh to connect to the samba server. So far so good, what I do is to
forward 139 and then declare the samba server to be 127.0.0.1 in lmhosts on
the Windows WS. It worked well for all XPs Pro that I have tested but in 2
out of 3 W2000 Pro it did not. That is typing in explorer
\\sambaserver\drive like I do in XP resulted in a blocked explorer. Of
course doing net use X: \\server\drive works but my users are scared to
death of the command prompt; I can't seem to be able to do net use from a
.bat that is without having the user to type the commands and password; I
don't even know where to start from as my usual
Linux-Ethereal-10MB_plain_old_Hub tool does not work, I don't speak natively
blowfish... *ANY* hints would be greatly appreciated. :-|

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


RE: [Samba] Having problems connecting xp machine to samba

2003-07-14 Thread Vizitiu, Ciprian
 
 1.There IS another domain controller on the network, 
 however, it is
 not a SAMBA pdc. I've seen instructions that say there should 
 not be another pdc on the network, but I'm assuming that 
 means a samba pdc. I don't know if that makes a difference.

It makes all the difference in the world. There should be ONLY one PDC.
Period. Be it NT, 2000, XP or samba. So make up your mind either samba or
the other box.

If you allready have a PDC maybe you're looking to security=domain in your
smb.conf file. In that moment your samba box will ask the PDC is john with
this password the person who pretends he is? This is authentication. Then
somehow you must tell samba that user john should access only /someshare.
This is authorisation. All the above happen only if you've joined samba to
the domain controlled by the PDC. You need an user account in that domain
that is allowed to add machines to domain and do a smbpassd -j
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] lfs 2GB limit for samba-3.0.0beta2-1.i386.rpm

2003-07-11 Thread Vizitiu, Ciprian

 Re:  Below  I am using samba  samba-3.0.0beta2-1.i386.rpm
 I had previously been on the latest redhat version of samba 
 ... I need large file support... Do you know of a patch for 
 the newer sambas or do I have to go backwards? (see reference below)
 
 I have a samba-2.2.5-1.i386.rpm but then I have to patch the 
 kernel... redhat have some many kernel patches that this 
 would seem to pose a 
 constant maintenance
 issue. Is there a smart way around this?


AFAIK It's strictly a kernel issue not a samba issue. The kernel can not
handle files larger than 2G. At least not the normal one. Sometimes split
might help or, if you're using GNU tar, have a look at -M and the script
that gets called for this...
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Any Idea why this would happen??

2003-07-11 Thread Vizitiu, Ciprian
 
 
 Which windows are you running?
 XP has a setting gpedit.msc-user profiles-local only=enabled
 
 
  
  Windows cannot create a profile directory \\samuel\ikw38 
 you be logged 
  to a local profile only. Then it comes saying any changes 
 made in this 
  session will not be saved.
  All changes made in the session will be lost.
  
  Is some setting I need to check in Windows?
  

Better check again the permissions in the fs on which samba is running. Is
ikw38 user allowed to write in the logon/profiles folder defined in samba?
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Changing passwd as ordinary user

2003-07-11 Thread Vizitiu, Ciprian


 when I try to change my password as ordinary user using 
 smbpasswd, I get the following error message:
 
 machine 127.0.0.1 rejected the password change: Error was : 
 RAP86: The specified password is invalid.
 
 I'm sure my old password is correct and the new password also.
 
 If I change the ordinary user password as root, everything 
 works fine...
 

How about some details? As a wild guess, maybe your samba attempts to change
*BOTH* the UNIX password and the samba password and if one fails the it is
failure. For example if you're on RH, the default argument for doing this in
smb.conf (that is for changing also the UNIX password) does not work. Try
for example unix password sync = no in your smb.conf and see if it makes any
difference...
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Changing passwd as ordinary user

2003-07-11 Thread Vizitiu, Ciprian
 Try
 for example unix password sync = no in your smb.conf and see 
 if it makes any
 difference...
 
 Well, I'm running RH 9.
 I used unix password sync = no and it made *THE* 
 difference. I mean, it worked. Now the question is: how to 
 solve the problem using unix password sync = yes? What's 
 the correct argument for doing this in smb.conf, since I'm on RH?

How about reding the man? Just to see how missleading it can be! ;-)

Try this:

passwd chat = *Changing*password*for*user*New*password* %n\n
*Retype*new*password* %n\n
*passwd*all*authentication*tokens*updated*successfully*
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Changing passwd as ordinary user

2003-07-11 Thread Vizitiu, Ciprian
 
 How about reding the man? Just to see how missleading it can be! ;-)
   I read it, but I'm not able to build the passwd chat I need.. :(

Been there done that! :-D

 
   I thought the passwd chat would be:
 
   But I failed (again) on solving this problem alone...

passwd chat debug = yes
debug level = 103.

Take a deep breath and dive into the logs; if I remember well in log.smbd at
one point you'll see some lines with Expected: and the strings for the
dialog and why the system thinks it got the wrong answer; anyway look
around for something like that. That's how I resolved mine as the samba
mechanics for following the system answer to password change are strange
at least...
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] (no subject)

2003-07-10 Thread Vizitiu, Ciprian
 
 I want to change my Samba 2.2.5 Version to Samba 2.2.8. But I 
 do not know, if I can use the same Config-File ( 
 /lib/smb.conf) and the same userfile ( /private/smbpasswd ) 
 ?? Perhaps I must also convert it.
 

Make also a back-up of all .tdb.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] newbie: instaling samba to use network printers

2003-07-09 Thread Vizitiu, Ciprian
 
 I have a network with an NT as PDC. There are ...5-6 printers on my 
 network shared by the network users. How can I use them? What 
 do I have 
 to put in my configuration file?

You have a very long road ahead, don't expect it to be easy. First, read the
fine doc at http://www.linuxprinting.org/kpfeifle/SambaPrintHOWTO/. It seems
to be 3.0 only but it works for 2.2.x also. As a bird's eye view you have
three steps:

1. Install printer drivers on samba so samba can serve those drivers to
clients
2. Define shares and like.
3. Configure CUPS (most likely with raw spools). This can be easyer than you
think, on a CUPS enabled system you can connect via web interface just
http://cupsmachine:631 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Samba newbie question

2003-07-09 Thread Vizitiu, Ciprian
  
 if anyone has any ideas, they are greatly appreciated.
  

Set log level = 2 or 3 and take a look in /var/log/samba/log.* particularly
the log named like your laptop should be of some interest; that is
log.yourlapname.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] installed samba,enabled nbios,shares, failing

2003-07-08 Thread Vizitiu, Ciprian


 I've installed Samba. And smbstatus shows no locked
 files. enabled netbios.
 
 I Can't seem to find the network on either windows xp
 nor on rhl 9.
 
 Mounting times out. And Network not found error comes
 on WindowsxP.
 
 i don't know if i need to add a share or what. i just
 changed the workgroup name in the configuration file.
 
 That's all no other changes, do i need to ?

What do you mean by I Can't seem to find the network? Are you referring to
network neighborhood of XP?
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Printing Through Samba From Windows

2003-07-08 Thread Vizitiu, Ciprian

 
 i know in CUPS it is a setting on how you control the 
 printer.  I think using lpd there is a flag  -raw (or 
 something, not sure) that you can pass to the print command 
 that basically says:
 
 take this job, send it to the printer but dont fart with it...
 

... And pray that the printer driver does not insist into talking with the
printer while printing. :-|
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Still having the same problem with Samba

2003-07-08 Thread Vizitiu, Ciprian

 Now I get this  error when trying to get W2k pro to join the 
 Linux Domain. Here is the SMB.Conf file again for review. 
 Thanks so much

 security = DOMAIN

Change it to security = server ...

 encrypt passwords = yes
 browsable = yes
 local master = yes
 domain master = yes
 os level = 99
 preferred master = yes
 domain logons = yes
 domain admin group = @ntadmins 

I remember fighting with the same problem weeks ago; which seems like
months. :) 

Do a last test: Just delete the domain admin directive and do a smbpasswd -a
root. Give this account a different password than the linux root and try
joining the domain again with this new root/newpassd combo. For me the
@group never worked, be it domain join or printer add/admin. Maybe it works
for you too...
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Windows XP logon and Samba PDC

2003-07-04 Thread Vizitiu, Ciprian
 
 hi,
 i've tried all the modifications i-ve found to login with 
 Windows XP Pro client on a Samba Server as PDC but nothing 
 have worked. what else could i do or did i do something wrong ?
 
 
 someone's an idea ??

What exactly does not work? Were you able to join the domain, for example?
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] I can't ping NT workstation

2003-07-03 Thread Vizitiu, Ciprian
 When I execute a nmblookup command to find the NT server by 
 the name it works. But it doesn't work with ping command. Is 
 neccesary anything more?

AFAIK ping uses a different resolver than samba suite. It works the other
way around that is a NT box is aware of both WINS and DNS name spaces but
ping on UNIX is not.

Or is there anything that you can put in nsswitch.conf? :-| I doubt...
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Recovering printer drivers ][

2003-07-02 Thread Vizitiu, Ciprian

... Since I got no answers to my previous post about forgotten printer
drivers that is printer drivers that disappear after you reinstall a samba
and brig back all .tdb from back-up I said what a hell let's try adding the
printer drivers again. You guessed, it didn't worked. After asking me for
the printer driver location XP ws returns a message that Operation could
not be completed. and later Access is denied. The most strange thing, in
the printers folder on samba I get a folder named __SKIP_0073. What does
this mean? :-o 2.2.8a RH8.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] 2GB limit in Samba?

2003-07-01 Thread Vizitiu, Ciprian
Hi.

Is there such a limit to 2GB in samba 2.2.8a-1? I get a File imit exceeded
when I try to tar or cp smth to a smbmount. On both machines I can
successfully do dd if=/dev/zero and create a file of 3GB, I can also tar
-cvf it but no cp to smb. RH8 if it matters...

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


RE: [Samba] 2GB limit in Samba?

2003-07-01 Thread Vizitiu, Ciprian


 You can find patches to break the barrier at 
 http://www.hojdpunkten.ac.se/054/samba/index.h tml
 only apply 
 patches 01 and 02, as 00 is included in stock 
 2.4.21 I don't use these as they give me too many errors, but 
 they might work for you.

What exactly do you mean by errors? Patch process gives you errors or you
get errors during transfer of big files?
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] How to recover the printer drivers?

2003-07-01 Thread Vizitiu, Ciprian

Samba 2.2.8a-1, RH8.

... So, I had to reinstall. Fortunately I had a back-up copy. I've installed
everything and then went to back-up and brought back all the stuff from
/etc/samba and /var/cache/samba and all /etc/cups and /etc/printcap*.
Aparently samba is working corectly: All user/machine accounts are in place
winbind OK... It's just that although I've restored the /home/printers
folder in the previous state it looks like I've lost my printer drivers.
Rpcclient enumdrivers shows empty hands although the driver files are in the
corresponding folder! Printing directly to CUPS works without any problem
and using the same config files it worked before the move.

Logs for the machine trying to print looks like:

[2003/07/01 15:41:08, 0] printing/pcap.c:pcap_printername_ok(289)
  Unable to open printcap file cups for read!
[2003/07/01 15:41:08, 0] smbd/service.c:make_connection(252)
  ws130 (191.x.y.130) couldn't find service
::{2227a280-3aea-1069-a2de-08002b30309d}
[2003/07/01 15:42:00, 1] smbd/service.c:make_connection(636)

Of course printcap is there in /etc and it is 644. Did I forgot to copy
something? Anybody with a hint?
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] How to recover the printer drivers?

2003-07-01 Thread Vizitiu, Ciprian
  
  Of course printcap is there in /etc and it is 644. Did I forgot to 
  copy something?
 
 Yes, the Registry
 
  Anybody with a hint?
 
 Samba stores printer driver information (including DeviceMode 
 etc.) in its own equivalent to the Windows Registry, the 
 *.tdb files. These should also be restored to get 
 everything up and running as before

Hmmm... I've restored ALL the content of /etc/samba and /var/cache/samba.
Please tell me that there are other places where samba keeps tdbs... Because
otherwise I've restored them all. :-/ Is the printers registry different
than the users one? Because the rest of the samba seems to be working domain
auth and like.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Drive letter map to Samba using ssh or scp?

2003-06-30 Thread Vizitiu, Ciprian
 Jonathan,
 
  Shouldn't there be someway of using SSH or SCP to transparently 
  connect to a Samba share, and have the share appear as a 
 drive letter?
 
 Yes, there should be.
 
http://ibiblio.org/gferg/ldp/Samba-with-SSH/


That's for linux2linux. For windows2linux try also:
http://www.bitvise.com/file-sharing.html
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Huh... 2.2.8 exploit?!

2003-06-30 Thread Vizitiu, Ciprian

... By my mistake a 2.2.8a-1 running on RH8 was exposed to the Internet. It
was cracked in a matter of hours. I noticed it because they've deleted my
smbd. :-| 

I'm ready to reinstall the machine, if there are any logs that anybody is
interested into please say it now. 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Huh... 2.2.8 exploit?!

2003-06-30 Thread Vizitiu, Ciprian
 Are you really shure, that the computer was breaked through 
 samba, you 
 can be sure only if just the samba ports (137,138,139,445) 
 was opened to 
 the Internet?!

Yes, totally agree with you. Maybe my message was... No, for sure my message
was badly formulated. I had a RH8 machine with qmail, latest pure-ftpd and
latest Courier IMAP and samba. It was exposed to the Internet and was
cracked. From logs like:

Jun 30 16:17:39 server smbd[28856]: [2003/06/30 16:17:39, 0]
lib/fault.c:fault_report(38) 
Jun 30 16:17:39 server smbd[28856]:
=== 
Jun 30 16:17:39 server smbd[28856]: [2003/06/30 16:17:39, 0]
lib/fault.c:fault_report(39) 
Jun 30 16:17:39 server smbd[28856]:   INTERNAL ERROR: Signal 11 in pid 28856
(2.2.8) 
Jun 30 16:17:39 server smbd[28856]:   Please read the file BUGS.txt in the
distribution 
Jun 30 16:17:39 server smbd[28856]: [2003/06/30 16:17:39, 0]
lib/fault.c:fault_report(41) 
Jun 30 16:17:39 server smbd[28856]:
=== 
Jun 30 16:17:39 server smbd[28856]: [2003/06/30 16:17:39, 0]
lib/util.c:smb_panic(1094) 
Jun 30 16:17:39 server smbd[28856]:   PANIC: internal error 
Jun 30 16:17:39 server smbd[28856]: 
Jun 30 16:19:03 server kernel: Unable to handle kernel paging request at
virtual address 8491bb2e
Jun 30 16:19:03 server kernel:  printing eip:
Jun 30 16:19:03 server kernel: 8491bb2e
Jun 30 16:19:03 server kernel: *pde = 
Jun 30 16:19:03 server kernel: Oops: 
Jun 30 16:19:03 server kernel: lp parport e1000 iptable_filter ip_tables
reiserfs mousedev keybdev hid input usb-ohci usbcore ext3 jbd ips sd_mod
scsi_mod  
Jun 30 16:19:03 server kernel: CPU:0
Jun 30 16:19:03 server kernel: EIP:0010:[8491bb2e]Not tainted
Jun 30 16:19:03 server kernel: EFLAGS: 00010283

... to me *it looks* like a samba exploit. Please note that the trigger for
the whole issue was the absence of smbd file. It was deleted. And that
stopped Winbind auth from working so I started to investigate the issue then
I saw the logs and then looked at the firewall rules that I've modified
short time ago and found the real mistake. 

Is it better now?

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


RE: [Samba] Huh... 2.2.8 exploit?!

2003-06-30 Thread Vizitiu, Ciprian



  Signal 11, mmm, that could be a memory error(hardware).
  Is the hardware certified? (www.memtest86.com)
 

:-D ... Well it's a IBM e-server. No, I didn't change the original memory
modules.

 If it was a hardware error; why would be smbd deleted?

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


RE: [Samba] Huh... 2.2.8 exploit?!

2003-06-30 Thread Vizitiu, Ciprian
Le lun 30/06/2003 à 08:38, Rashkae a écrit :
 For that matter, why would smbd (but not the system logs) be deleted in
 the first place?

on which FS type on does smbd reside ?

ext3. But it served files from a [Homes] on a ReiserFS
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] setting passwd help

2003-06-26 Thread Vizitiu, Ciprian

 unable to open passdb database.
 Failed to find entry for user root.
 Failed to modify password entry for user root
 
 any ideas on how i can fix this ?? 
 

You'll have to add a linux user to smbpasswd before changing his password.
E.g. smbpasswd -a username
-- 
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.8a, printer driver download: need to use setdriver

2003-06-26 Thread Vizitiu, Ciprian
 I'm setting up the automatic printer driver download feature, 
 and it works nicelly except for one little thing: I have to 
 use, on the samba machine, rpcclient's setdriver command to 
 associate a printer with its driver.
 
 I didn't see this requirement in the Samba howto, it only 
 mentions setdriver as a way to speed up large installations. 
 Am I missing something? 

You seem to be missing the right how-to. Try
http://www.linuxprinting.org/kpfeifle/SambaPrintHOWTO/Samba-HOWTO-Collection
-3.0-PrintingChapter-11th-draft.html

-- 
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.8a, printer driver download: need to use setdrive r

2003-06-26 Thread Vizitiu, Ciprian
  
 http://www.linuxprinting.org/kpfeifle/SambaPri ntHOWTO/Samba-HOWTO-Coll
  ection
  -3.0-PrintingChapter-11th-draft.html
 
 This URL crashes my mozilla, I only have 128M of RAM :)

Damn! We're in 2003 and I feel like in the mail era...

Check this: http://www.linuxprinting.org/kpfeifle/ 

From there navigate to SambaPrinting and there search for 11th version. BTW,
get a newer Mozilla anyway! ;-)

 
 Anyhow, I was talking about samba-2, not 3.

Again! Please check that how-to, it is by no mean version3-only! It works
very well with 2.2.7 or 2.2.8 and it contains many !



PS(/2) Kurt why on earth did you name it like that? :-/
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Installing samba on Red Hat 8

2003-06-25 Thread Vizitiu, Ciprian
 I get a msg. like flie blabla conflicting with file from 
 samba-2.2.7'' or something like that.

How about more details about that blabla? :-/

In principle there is a big difference between samba.rpm that you get from
samba.org and samba that comes with RedHat. RedHat splits the samba package
in several parts. Mount the RH CDROMs and see how many sambas you can find.
Most likely Redhat installed only a part of the samba suite like
samba-client or smth; the response in the blabla part. OTOH samba from
samba.org is a big gulp it gets you everything. You have to choose which
path you'll go. Oh, and if you're in search of one installed package do a
rpm -qa | grep package; rpm -q samba will just ask about samba but if all
you have is samba-client...
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Re: Problems with Samba File Server

2003-06-24 Thread Vizitiu, Ciprian
 I have added the linux box to the PDC NT Controller if 
 you mean that!?
 
 boris blaha [EMAIL PROTECTED] schrieb im Newsbeitrag 
 news:[EMAIL PROTECTED]
  do you have your LINUX-Box in your DNS zone ??
 

Can you access it via IP? Eg in eplorer \\192.168.1.2\myshare ... Nevermind
the delay.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] How does @group works after all?

2003-06-23 Thread Vizitiu, Ciprian
Hi everyone. 

On a Samba 2.2.8a I have a share:

[S]
   path = /sdrive
   public = no
   read only = yes
   write list = @special
   browsable = no

I also have special:x:528:jane,jim,james in /etc/group; yet none of those
users can write a file in [S]. 

If I replace write list = @special with write list = jane jim james it
works. What am I obviously missing? :-o
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Regarding Samba as a PDC

2003-06-20 Thread Vizitiu, Ciprian

   
 Sir, Samba is great  thing. Sir, please tell me how can I 
 make PDC to a Red Hat Linux 8.0 using  Samba. Can I have to 
 install Red Hat Linux 8.0 as a Server or I will have to  do 
 Custom Installation. Sir, please tell me what to do in 
 SMB.CONF file and  where is the option for making it as a 
 PDC. I want that Windows Users can  login into Red Hat Linux 
 8.0 box. I will be grateful to you? 

http://hr.uoregon.edu/davidrl/samba/samba-pdc.html

http://us1.samba.org/samba/ftp/docs/htmldocs/Samba-PDC-HOWTO.html

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


RE: [Samba] how to make unix password and samba password same

2003-06-19 Thread Vizitiu, Ciprian
 
 Is it possible to have UNIX password and samba password same 
 so that user  only need to remember one userid and password ?
 
 How to sync both this password ?
 
 Thanks in advance.

You've looked at smb.conf, haven't you? Look at the smb.conf particularly
search for unix password sync = Yes and related. Then man smb.conf... 

BTW I hope you know most of today apps accept pam for auth so you can use
winbind for this. E.g. you can auth say a Courier IMAP user using ONLY
samba. Man winbindd f you're going in this direction.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Drive letter map to Samba using ssh or scp?

2003-06-19 Thread Vizitiu, Ciprian

 
 OK, what I want to do is access files on my Samba server remotely.
 
 Currently, I can use WinSCP, but this isn't ideal because [...]

 Anyone done anything like this? I don't want to reinvent the 
 wheel if I don't have to.
 

Don't know how it will work apart from VPN. Unfortunately a samba/windows
world is very much tied to broadcasts. That's how it works... I have yet to
see someone forwarding broadcasts through a ssh tunnel. You can quit using
broadcasts if you don't want to use network neighborhood on the remote
net. You'll do it with ssh by forwarding 139 but there is a catch: this ties
you to accessing a single samba machine at a time! 

Users do not have to type complicated command lines each time. That's what
.bat files are used for ;-) You make a bat file with ssh command to connect
to the remote host and the user clicks it on the desktop; it only asks for a
password. Some SSL gurus please step in and enlighten us about certificates
and alike, I'm sure you can avoid passwords too!! 
Only once, you the windows admin modify the lmhosts file to point the name
of the remote samba machine to 127.0.0.1. Then after the ssh connection is
established you can access the remote machine in explorer with
\\remote\sharename. Use IE's bookmarks features, name the shares
accordingly. I know it's an ugly hack and it sucks badly but until some
brave hart makes a VPN-how-to the magnitude Kurt Pfeifle did for samba
printing it seems the only way... :-|
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] IP address for workstation

2003-06-18 Thread Vizitiu, Ciprian

 
 How get IP address the remote workstation in logon process (logon 
 process in Samba Server)?

man smb.conf? Maybe you're looking for what's under VARIABLE
SUBSTITUTIONS...
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] PDC without profiles

2003-06-13 Thread Vizitiu, Ciprian
 I'am using Samba 2.27 as PDC on mandrake 9.1. I don't need to 
 use profiles. How to do it? I tried to delete share 
 [profiles] and rule 'logon path', but then is WinXP saying 
 can't load roaming profiles,...blah blah each time I started it.

Disable roaming profiles from XP like advised here:
http://hr.uoregon.edu/davidrl/samba/samba-pdc.html
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] domain master name query fail

2003-06-13 Thread Vizitiu, Ciprian
 
 Jun 13 15:04:59 SERVER nmbd[2010]: [2003/06/13 15:04:59, 0] 
 nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(358)
 Jun 13 15:04:59 SERVER nmbd[2010]:   
 find_domain_master_name_query_fail:
 Jun 13 15:04:59 SERVER nmbd[2010]:   Unable to find the Domain Master 
 Browser name HOME1b for the workgroup HOME.
 Jun 13 15:04:59 SERVER nmbd[2010]:   Unable to sync browse 
 lists in this 
 workgroup.
 
 I am wondering how causes these messages? what is a 
 domain_master_name? My network, including this box are set up 
 to use workgroups only, not 
 tied to any domain.


  preferred master = no

I'd start by questioning about the above line...


WHICH machine did won the elections in your net? You do know about the
process by which the network neighborhood gets built don't you?

So is there another W2K/XP server which is supposed to keep the browse list?
From your short message my wild guess is that the master browser did not
register the 1b record to WINS because it:
1. Didn't knew that it has to (that is it's still broadcast only based, that
is you've never reconfigured it for wins!)
2. It didn't knew that it is time to do that. Windows machines do not
register names to WINS every second... BTW: I'd be a life grateful to
someone pointing me to a Microsoft tool or method to trigger wins
registration in a MS box; roughly the equivalent of service smb restart...


So check who is the master browser in your network and why it doesn't use
that particular WINS.

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


RE: [Samba] Workgroup/Domain Browsing

2003-06-13 Thread Vizitiu, Ciprian


(lmhosts.sam would not work for some reason though.)


:-D Been there done that. Lmhosts.sam is a sample! So copy it to lmhots,
alter it, run nbstat -R from a DOS box and that's it.


However, browsing does not work.  The workgroup aip-ky does not show up,
and neither does the server aip-ky.  I guess that I have two
problems/questions:

1)  How can I have the machine names resolve automatically (ala wins)
across the different network segments?

2)  How can I enable browsing of the remote network resources from the
Windows client so that I don't have to manually specify the resource
address?

Any help would be appreciated!


There are two different things involved here: browsing and resolving names.
Some times they're performed by the same machine sometimes not. Browsing is
about who is on the network in terms of names ( that is letters like
XPWkst_1 ). Every time a windows machine boots it sends a BROADCAST message
on the configured NIC stating Hi, I'm XPWkst_1 is there anybody taking care
of this net? and a designated machine called Master Browser answers Yep, I
heard you! You are on the list now.; next WS2 asks the Master Browser Give
me the list of other machines that you know about and that's how you get to
see the network neighborhood. Clicking on a name in that list implies the
next step: XPWkst_1 has a bunch of letters and it must know the
corresponding IP address so it can make a connection; that's where WINS
comes in: it's a thing that you ask questions like which is the IP of
XPWkst_4?. Which machine XPWkst_1 will ask wins questions to, is configured
by the admin (either via DHCP or manually in the NIC settings). The Master
Browser is tricky game, MB gets elected (and like in any political system
you can cheat those elections to your benefit ;-) ). Beware that I left out
a lot of ugly details.

So in order to perform the functions that you have requested you have to
somehow propagate the BROADCAST from one net to another and configure the
machines on both nets to use the same WINS machine. The second one is simple
the first one is tricky at least...

Another idea (that I have tested myself) would be to have two samba machines
one in each net. Machines in 192.168.13.0 will use .3 samba as a MB and
machines in 192.168.10.0 will use their own samba to do the same. Then you
configure sambas to synchronize the browsing lists so each net knows about
lists in the other. If my memory serves me well is about remote browse
sync and remote announce in smb.conf; dig more, call for help after
you've done lessons.

IMO you should start experimenting with a simple config two nets and a
router. AVOID putting samba on router (that would be trivial) and try to
make both nets to see each other. Once you've sorted that out replace the
router box with the VPN and nothing should change. 


Remember: tail -f /var/log/samba/log.nmbd should be your friend but set a
decent debug level e.g. 6.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] domain master name query fail

2003-06-13 Thread Vizitiu, Ciprian
 I have always thought that declaring a machine to be a WINS 
 server will automatically make it the browser server which 
 stores browse lists and NetBIOS records.  My understanding 
 right now is that they can be separated.  

They are normally separated. In big networks WINS is a core machine while
master browser function is done on each subnet.

 Assuming I'd also make this machine (using the attached 
 smb.conf), which is already set up as a WINS server, also a 
 browser server.  How do I register this browser server 
 title to the WINS server (which is itself as well)?  Or it is 
 not required to be done? 

It is required but fortunately it's done automagically. ;-) When you restart
samba if it ends up being a master browser it register itself as 1x
depending of the config; otherwise it will register as share. 

 Which ever machine won the election 
 to be the browser server, rest of clients within the subnet 
 will know it, including the WINS server that will 
 automicatlly picks it up (therefore the browser server is 
 registered to the WINS server)?

WINS server never picks up thinks. Only the MB. It depends of the config of
the MB: If the machine who wins the elections is configured to use WINS it
will ALSO register itself at WINS server as a pair name-IP.

 I will try to add following two lines into my smb.conf.
 domain master = yes;
 perferred master = yes;
 
 If any more steps are required, I think it's how to register 
 browser server to the WINS?

Like I said: it is the duty of the MB to register the name of the
domain/workgroup to the WINS. So whoever gets elected IF it knows about WINS
it will register.

My very own advice is to cheat elections (like putting os level = 254 and
also domain master and preferred) so samba always wins. By doing this you
bring the whole issue to the Linux world where you can control things...
E.g. you can very easy look in /var/cache/samba/wins.dat and browse.dat and
see what the WINS and the MB think of the network. A common problem though
is that after blatantly cheating elections like that the list will be mostly
empty. You have to signal the rest of the machines to reanounce
themselves so the list gets populated. I was only able to do that by
rebooting them Win9X and 2000. Beware that some gurus advice against this
practice. I've never understood why; Yet I've seen a more powerful W2000
winning MB from the NT PDC and all worked fine until the MB was overloaded
with a heavy SQL query; browse list responses were coming very slow although
both the PDC and other machines had plenty of time. I was watching dumps
hoping elections will start again but somehow the delay was short enough...
Ever since I make samba win. Again: keep looking at the logs. On log level =
6 log.nmbd and smbd will give you good info about what is going on!
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Accessing remote samba server

2003-06-12 Thread Vizitiu, Ciprian
 
 Hi,
 
 I have a setup where my samba server is located at my
 main office and I need to provide remote access to a
 branch office.
 
 I already have the conection part operational and the
 branch office (remote) uses a frame-relay connection
 to my office (local).
 
 I have linux machine with multiple ethernets serving
 as a firewall at each point (remote and local).
 
 The clients will be windows.
 
 What do I need to change in my samba conf in order to
 allow the remote clients to mount the shares ?
 Which traffic (protocol/port) should I allow to pass ?
 

If assume you want the traffic to be encrypted. So if you're into browsing
the net IMHO VPN is the only way. OTOH if all you want is to mount a share
on THE remote samba server there is a simple and elegant trick you can
perform: ignore name resolution and forward only 139 via ssh! E.g. all the
remote windows clients will run ssh 139:IP.Of.Remote:139 [EMAIL PROTECTED]
Then on the remote Windows WS define in lmhosts 
127.0.0.1   remotesambaname

... Do a nbtstat -R and that's it. Windows WS will be able to do in explorer
\\remotesambaname\share. After a initial short delay you'll be prompted for
a name and passwd. Openssh for windows is free.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Do we need WINS Replication?

2003-06-12 Thread Vizitiu, Ciprian


  Just a silly idea don't know even if it works: If you are 
 in control 
  of the link how about messing with the wins.dat file? When the link 
  gets up you exchange/merge wins.dat files from both servers and 
  restart nmbds... For example all machines in one net are 
 called with a 
  distinctive a_ in name so you grep in b network in the 
 wins.dat file 
  and replace all a_ entries with the new ones. Same for the other 
  wins.dat for hosts named b_whatever.
  
 wins.dat has simple format,
 so it's possible to detect fi any machines are registered on 
 a secondary WINS server, replace/add this data to the primary 
 WINS server's wins.dat, 

The idea is not to add to the primary but also to bring back the data FROM
the primary to the secondary. A more elegant approach will be to detect the
link is down and DELETE from secondary the missing primary machines! 

There seems to be one aspect you're missing: the damn browse list! IMO
You'll have to change that too.

 and killstart nmbd (because I don't 
 know how to make it reread wins.dat).

Oh, that was a problem for me too.

 
 Will this work?

Exactly my point Michael: why don't you try and tell us? ;-)

Long ago I had problems with a stupid NT server refusing to register himself
at the wins... Without being rebooted; So all I did was to alter the
wins.dat file by hand... It worked back then it was samba 2.2.0 or smth. I
think it *should* work but someone has to try and bring back the
knowledge...
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Samba XP

2003-06-12 Thread Vizitiu, Ciprian

 But I need the following details to set up the server:-
 1.  Samba version
 2.  Linux kernel version (preferably what distribution and 
 what version) THe lesser the bugs the better. 3.  What patch 
 level should I have for the samba 4.  Any more sites that 
 tells me how to setup the XP Pro Clients with the samba server?

RH 8; Samba 2.2.8 from samba org rebuilt as rpm.

after reading this http://hr.uoregon.edu/davidrl/samba/samba-pdc.html
and this http://us1.samba.org/samba/ftp/docs/htmldocs/Samba-PDC-HOWTO.html
and eventually this  http://www.math.temple.edu/computing/samba.html

I was able to do a samba PDC and join the XP Pro clients to it. Beware it's
a long and painfully frustrating journey. ;-)
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Samba member server not seen in network neighborhood

2003-06-12 Thread Vizitiu, Ciprian


 Samba 2.2.5 / AIX 5.1  -  NO ERRORS in any logs
 Can map shares and even correct authentication / user ID 
 mappings work from all WIN2K domain clients using a URL or 
 share mapping utilities.
 
 Samba member is not populated / seen in Network Neighborhood
 
 but nmblookup -M - ,querying MSBROWSE fails with failed to 
 find name __MSBROWSE__#01 and if I try to query with 
 nmblookup the Samba server Name / IP address it also fails to 
 find either.
 
 Any suggestions on what further steps will point to a problem 
 and ultimately a solution.  The only thing I can think of is 
 to disjoin the domain and rejoin with smbpasswd -j DOMAIN . . .


Which machine is the PDC? Samba or a W2K? Are you using WINS? 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Setting Separate File server from Samba PDC

2003-06-11 Thread Vizitiu, Ciprian
 
 I'm aim to set up a file server that is separate from my 
 SAMBA PDC. I've had no problem setting file server up, and 
 joining it to he domain using smbpasswd. 
 
 Can I use winbind with a SAMBA PDC or is it meant only for 
 Windows NT servers.
 


Not so long ago I posted the same question and someone sent me this patch. I
was on RH 8.0 with 2.2.7 so I needed it.

--- nmbd/nmbd_logonnames.c  30 Jan 2002 06:08:22 -  1.11
+++ nmbd/nmbd_logonnames.c  6 Oct 2002 09:58:09 -
@@ -139,6 +139,7 @@
 void add_logon_names(void)
 {
   struct subnet_record *subrec;
+  struct nmb_name nmbname;
   for (subrec FIRST_SUBNET; subrec; subrec
NEXT_SUBNET_INCLUDING_UNICAST(subrec))
   {
@@ -146,7 +147,6 @@
 if (work  (work-log_state LOGON_NONE))
 {
-  struct nmb_name nmbname;
   make_nmb_name(nmbname,global_myworkgroup,0x1c);
   if (find_name_on_subnet(subrec, nmbname, FIND_SELF_NAME) NULL)
@@ -162,4 +162,6 @@
   }
 }
   }
+  make_nmb_name(nmbname,global_myworkgroup,0x1c);
+  insert_permanent_name_into_unicast(FIRST_SUBNET, nmbname, 0x1c);
 }

After this wbinfo started to work with SAMBA PDC. It was 2.2.7 from RH8...
Well the patch worked with some small quirks but it can be done.
Unfortunately I don't have the original mail so I can't tell you who he was
;-). 

I remember him telling me that in 2.2.8 things should be fixed so maybe the
listers can tell you more about this.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Setting Separate File server from Samba PDC

2003-06-11 Thread Vizitiu, Ciprian

If I were you I'd get the sources and see if the patch is in there. I
haven't tested the latest samba from RH, right now I run 2.2.8 from
samba.org.

I hope you  know that if you're desperate you can to that too on RH, samba
from samba.org can be made .rpm! That is the tgz from the site has a .spec
in it. It's just that you get only a samba.rpm and not all the sepparate
components that RedHat does. I guess that's what --nodeps and --forced were
given for as rpm options... :-s

 
 Then that explains it, I'm running version 2.27a-8.9.0 from 
 Redhat 9.0. I'm going to download and install the latest Samba.
 
 Thanks Again
 Roberto
 
 On Wed, 2003-06-11 at 11:11, Vizitiu, Ciprian wrote:
   
   I'm aim to set up a file server that is separate from my
   SAMBA PDC. I've had no problem setting file server up, and 
   joining it to he domain using smbpasswd. 
   
   Can I use winbind with a SAMBA PDC or is it meant only for
   Windows NT servers.
   
  
  
  Not so long ago I posted the same question and someone sent me this 
  patch. I was on RH 8.0 with 2.2.7 so I needed it.
  
  --- nmbd/nmbd_logonnames.c  30 Jan 2002 06:08:22 -  1.11
  +++ nmbd/nmbd_logonnames.c  6 Oct 2002 09:58:09 -
  @@ -139,6 +139,7 @@
   void add_logon_names(void)
   {
 struct subnet_record *subrec;
  +  struct nmb_name nmbname;
 for (subrec FIRST_SUBNET; subrec; subrec
  NEXT_SUBNET_INCLUDING_UNICAST(subrec))
 {
  @@ -146,7 +147,6 @@
   if (work  (work-log_state LOGON_NONE))
   {
  -  struct nmb_name nmbname;
 make_nmb_name(nmbname,global_myworkgroup,0x1c);
 if (find_name_on_subnet(subrec, nmbname, 
 FIND_SELF_NAME) NULL) 
  @@ -162,4 +162,6 @@
 }
   }
 }
  +  make_nmb_name(nmbname,global_myworkgroup,0x1c);
  +  insert_permanent_name_into_unicast(FIRST_SUBNET, nmbname, 0x1c);
   }
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Outlook .pst on a samba share; do or don't?

2003-06-10 Thread Vizitiu, Ciprian

 Hi listers.

 People here are trying to push me into moving the Outlook .psts on a samba
share for back-up reasons. I'd like to hear your experience about this: is
it feasible in the size of 20 users with 400...800MB each .pst? Any special
settings on samba side? Something special that I should pay attention to? Or
is just NO?
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] shadow folders in XP explorer?

2003-06-10 Thread Vizitiu, Ciprian

Samba 2.2.8 which is also PDC, logon from windows XP WS.

If different users log on from the same WS one can tell the history of the
logons because upon exploring the samba server one can see all the other
users home shares; I mean the previously logged in users. That is if John
logs in to XP WS and the samba server was just started he sees his home. If
he logs off and then Jane logs in, Jane can see on the samba server her home
and a share John that she can not access. If samba gets a restart the
ghost home disappears immediately. Anybody with a hint on how to avoid
this kind of behavior?

[homes]
   comment = Home Directories
   browseable = no
   writable = yes
   public = no
   create mode = 0700
   directory mode = 0700


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


RE: [Samba] Samba newbie need help with files copied from NT to samba linux box...

2003-06-10 Thread Vizitiu, Ciprian
 
 I've managed to get samba up and running on my rh7.3 web 
 server. I'm able to see this server in My Network Places and 
 browse to see the shared directories. My problem is this: 
 I want to create and test my web pages on my XP box using 
 DWMX, upload these files to one of the shared directories to 
 be published to the site. The problem is that after copying a 
 few files to this directory for testing; I go to the linux 
 box and copy the files to my /wwwroot/htdocs directory and 
 attempt to access it from a broswer. I get page not found. 
 The files aren't displaying as they do in DWMX. 


Here a better trick: define a share that will point to your /wwwroot/htdocs!
So there would be no need to copy them to an other folder. ;-)

In smb.conf have something like

[webdevelop]

   comment = Web root drive
   path = /wwwroot/htdocs
   public = yes
   read only = no
   browsable = yes
   create mask = 0777
   directory mask = 0777


This should get you in the right direction. Then man smb.conf and see about
file permisions. The files that you put there are supposed to be read by the
apache user (f you haven't changed anything...) OTOH samba will create them
as the user that you connect. So look at groups and file permisions. The
above 777 example is not a good ideea but should you started.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] shadow folders in XP explorer?

2003-06-10 Thread Vizitiu, Ciprian


 Try the
 following:
 
 1. restart samba

OK

 2. login john
 3. run smbstatus (save output)

[EMAIL PROTECTED] tmp]# smbstatus

Samba version 2.2.8
Service  uid  gid  pid machine
--
john  johnjohn 15079   XPWS  (192..132) Tue Jun 10 22:12:51
2003
netlogon  johnjohn 15079   XPWS  (192..132) Tue Jun 10 22:12:52
2003
IPC$  nobody  nobody   15079   XPWS  (192..132) Tue Jun 10 22:12:47
2003

No locked files

 4. logoff john 
 5. run smbstatus (save output)

[EMAIL PROTECTED] tmp]# smbstatus

Samba version 2.2.8
Service  uid  gid  pid machine
--
Profiles john john 15079   XPWS  (192..132) Tue Jun 10 22:15:55
2003
IPC$ john john 15079   XPWS  (192..132) Tue Jun 10 22:13:22
2003

No locked files

Now wait a second! This is a strange one! As admin on that XP WS I used
gpedit to make Computer Configuration\bla bla\User Profiles\Only allow
local user profiles - Enable! Why does it still use Profiles?

... Anyway the profiles connection dissapears after a while but the IPC$ one
no!

 6. login jane
 7. run smbstatus (save output)

Probably this is it:

[EMAIL PROTECTED] tmp]# smbstatus

Samba version 2.2.8
Service  uid  gid  pid machine
--
IPC$ nobody   nobody   15079   XPWS  (192..132) Tue Jun 10 22:21:10
2003
Jane Jane Jane 15079   XPWS  (192..132) Tue Jun 10 22:20:39
2003
PJane Jane 15079   XPWS  (192..132) Tue Jun 10 22:21:09
2003
IPC$ john john 15079   XPWS  (192..132) Tue Jun 10 22:13:22
2003
netlogon Jane Jane 15079   XPWS  (192..132) Tue Jun 10 22:20:40
2003

No locked files

... and after a while:

[EMAIL PROTECTED] tmp]# smbstatus

Samba version 2.2.8
Service  uid  gid  pid machine
--
Jane Jane Jane 15079   XPWS  (192..132) Tue Jun 10 22:20:39
2003
PJane Jane 15079   XPWS  (192..132) Tue Jun 10 22:21:09
2003
IPC$ john john 15079   XPWS  (192..132) Tue Jun 10 22:13:22
2003

No locked files



Huh? What on earth does this mean?? :-o

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


[Samba] Samba + CUPS = Two printers instead of one?

2003-06-10 Thread Vizitiu, Ciprian

Samba 2.2.8 + cups-1.1.17. 

load printers = yes
show add printer wizard = yes
printcap name = cups
printer admin = root
printing = cups

[print$]
   path = /home/printers
   guest ok = yes
   browseable = yes
   write list = root

[printers]
   comment = All Printers
   printable = yes
   path = /var/spool/samba
   browseable = no
   guest ok = yes
   public = yes
   read only = yes
   writable = no

[2 floor IBM BW]
   comment = IBM Infoprint 1222
   path = /var/spool/lpd/samba/2ndflbw
   printable = yes
   browseable = yes
   writable = no
   public = yes
   printer admin = root


Everything all right added drivers, set default all works like a charm just
it's just that... Why do I have two printers instead of one listed on the
server? 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Can't use mount command with samba

2003-06-10 Thread Vizitiu, Ciprian
 I have a home network based on Win XP Pro, with one Linux 
 machine running Red Hat 9. All updates have been applied. 
 There's no domain controller.
 
 I can connect from the Linux machine to the XP machines via 
 Konqueror using smb://mymachine/myshare
 
 However, I can't use the mount command.
 
 I'm trying to use syntax like
 
 mount -t smbfs -o username=myname,password=mypwd 
 //192.168.0.1 /win/myshare


smbmount '\\mymachine\myshare' /mnt/xpshare -o
username=myname,password=mypwd
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Do we need WINS Replication?

2003-06-06 Thread Vizitiu, Ciprian
 We have 2 segments of the corporate network,
 which are connected by a unstable(~90% uptime) 2Mbps link.
 This link cannot be made better.

Just a silly idea don't know even if it works: If you are in control of the
link how about messing with the wins.dat file? When the link gets up you
exchange/merge wins.dat files from both servers and restart nmbds... For
example all machines in one net are called with a distinctive a_ in name so
you grep in b network in the wins.dat file and replace all a_ entries with
the new ones. Same for the other wins.dat for hosts named b_whatever.

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


[Samba] Moving samba from one machine to another?

2003-05-29 Thread Vizitiu, Ciprian

Hi listers.

I have a 2.2.7 samba running on a RH8. I'd like to move the current samba
(with all the accounts and so) to a more powerful machine. Assuming that at
the destination I have exactly the same installed packets what files must be
copied in order to make the move as easy as possible? To me it looks like
copying /etc/samba/* and /var/cache/samba/* will do the trick. Am I missing
something?

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


[Samba] Can I use winbind to auth against a samba 2.2.7 PDC?

2003-04-04 Thread Vizitiu, Ciprian

I'm looking for a valid way to let users have a single point password change
for windows login and IMAP. As I don't want to resort to clear text
passwords (that would allow to sync the UNIX passwords) I went the other way
that is pam for IMAP (via winbind). It's just that  wbinfo -t says Secret
is bad and wbinfo -a gives a:

plaintext password authentication failed
error code was NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND (0xc233)
Could not authenticate user ... with plaintext password

The NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND is the most strange one. If I
tcpdump the machine it looks like winbind asks for PDC only at broadcast as
there were no wins = ... directive in smb.conf.

Needles to say I've joined the  domain. I can do a smbclient -L PDC and the
response comes instantly. Run out of ideas... Still: is it possible to use
winbind and samba PDC? Or it was designed only for M$ software?
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] problems with pam_winbind, that is linux box to samba remote server

2003-04-04 Thread Vizitiu, Ciprian

It looks like the winbind client will NOT natively auth you against a
samba PDC. After 2 days of browsing through lists it looks like the cause is
this: (Kevin Stefanik)

winbindd gets a list of domain controllers via 
broadcast and then confirms each directly with a unicast query to the 
controller itself (in cm_get_dc_name in winbindd_cm.c) specifically querying

the 0x1c role.  That query is coming into nmbd as a unicast query.

The solution (that worked for me) seems to be a small patch by Volker
Lendecke:

--- nmbd/nmbd_logonnames.c  30 Jan 2002 06:08:22 -  1.11
+++ nmbd/nmbd_logonnames.c  6 Oct 2002 09:58:09 -
@@ -139,6 +139,7 @@
 void add_logon_names(void)
 {
   struct subnet_record *subrec;
+  struct nmb_name nmbname;
   for (subrec FIRST_SUBNET; subrec; subrec
NEXT_SUBNET_INCLUDING_UNICAST(subrec))
   {
@@ -146,7 +147,6 @@
 if (work  (work-log_state LOGON_NONE))
 {
-  struct nmb_name nmbname;
   make_nmb_name(nmbname,global_myworkgroup,0x1c);
   if (find_name_on_subnet(subrec, nmbname, FIND_SELF_NAME) NULL)
@@ -162,4 +162,6 @@
   }
 }
   }
+  make_nmb_name(nmbname,global_myworkgroup,0x1c);
+  insert_permanent_name_into_unicast(FIRST_SUBNET, nmbname, 0x1c);
 }


 Greetings,
 
 Maybe someone tried to make linux box authorize with pam_winbind to 
 remote samba server ?
 
 The problem is that when I log in my id is not resolved to 
 username, whoami shows whoami: cannot find username for UID 10280

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