Hello, I wanted to use the new samba that is out. I have a few questions: 1. When I try the new net rpc join command, it pops up a password prompt (my nt admin added my server to the nt domain on the pdc). Whose password is it asking for? He tried his nt domain root password, but that got a message about there being some problem with the user or password. He sees in his event log the attempt from my solaris 8 sparc unix box, and it shows that it tried to log in as ROOT. Why doesn't the command work when he types in the root password for the nt pdc server? 2. I used smbpasswd to add root. I then tried smbclient -L hostname_here, and it gave the following output: incorrect size for /usr/local/samba/lib/upcase.dat - got 0 expected 131072 incorrect size for /usr/local/samba/lib/lowcase.dat - got 0 expected 131072 creating lame upcase table creating lame lowcase table incorrect size for /usr/local/samba/lib/valid.dat - got 0 expected 65536 creating default valid table incorrect size for /usr/local/samba/lib/valid.dat - got 0 expected 65536 creating default valid table added interface ip=10.1.5.238 bcast=255.255.255.255 nmask=0.0.0.0 added interface ip=10.1.5.210 bcast=255.255.255.255 nmask=0.0.0.0 wins_srv_died(): Could not mark WINS server 127.0.0.1 down. Address not found in server list. error connecting to 10.1.5.238:445 (Connection refused) Password: Doing spnego session setup (blob length=75) OS=[Unix] Server=[Samba] tree connect failed: SUCCESS - 0 What is up with the 0 sized dat files? Why is it using 127.0.0.1 as the WINS server. My smb.conf was configured to use our department's wins server's ip address. Why is the tree connect failing. What is the Serversay samba instead of the name of my unix server (or is that correct?)? Anyway, no shares show. I tried to start nmbd, but that failed too. It just does not run and shows no errors. I ran a truss on it, and it did whine about something, although I do not know what: rk(0x00109568) = 0 open64("/usr/local/samba/lib/valid.dat", O_RDONLY) Err#2 ENOENT brk(0x00109568) = 0 brk(0x00119568) = 0 open64("/usr/local/samba/lib/valid.dat", O_RDONLY) Err#2 ENOENT brk(0x00119568) = 0 brk(0x00129568) = 0 stat64("/usr/local/samba/lib/smb.conf", 0xFFBEECC8) = 0 brk(0x00129568) = 0 brk(0x0012B568) = 0 open64("/usr/local/samba/lib/smb.conf", O_RDONLY) = 4 fstat64(4, 0xFFBEEBE8) = 0 read(4, " # S a m b a c o n f".., 568) = 568 close(4) = 0 stat64("", 0xFFBEED38) Err#2 ENOENT stat64("/usr/local/samba/lib/smb.conf", 0xFFBEE8C0) = 0 time() = 1012005187 open("/usr/share/lib/zoneinfo/US/Eastern", O_RDONLY) = 4 read(4, " T Z i f\0\0\0\0\0\0\0\0".., 8192) = 1250 close(4) = 0 getuid() = 0 [0] fstat64(3, 0xFFBEEFF8) = 0 brk(0x0012B568) = 0 brk(0x0012D568) = 0 write(3, " [ 2 0 0 2 / 0 1 / 2 5 ".., 63) = 63 getuid() = 0 [0] write(3, " E R R O R : ' w i".., 60) = 60 getuid() = 0 [0] write(3, " a r e c o n f l i".., 44) = 44 llseek(0, 0, SEEK_CUR) = 1068608 _exit(10) The smb.conf is set as such: [global] workgroup = INS netbios name = EXCEL netbios aliases = EXCEL interfaces = 10.1.5.238/32, 10.1.5.210/32 security = DOMAIN password server = PDC log file = /usr/local/samba/var/log.%m max log size = 50 os level = 65 wins server = 10.1.1.244 wins support = Yes admin users = excelsior share modes = No
David Edward Shapiro wrote:> > Hello, > > I wanted to use the new samba that is out. I have a few questions: > > 1. When I try the new net rpc join command, it pops up a password prompt (my > nt admin added my server to the nt domain on the pdc). Whose password is it > asking for? He tried his nt domain root password, but that got a message > about there being some problem with the user or password. He sees in his > event log the attempt from my solaris 8 sparc unix box, and it shows that it > tried to log in as ROOT. Why doesn't the command work when he types in the > root password for the nt pdc server?You need to specify -U administrator to change the username it sends - it defaults to the current user on your Unix box. As you might expect, NT doesn't like the idea of people logging in as 'root' :-). If your machine has been added with server manger, the 'net rpc join oldstyle' command will use the default password set on that account to join itself to the domain. We also need to get some doco in order...> 2. I used smbpasswd to add root. I then tried smbclient -L hostname_here, > and it gave the following output: > > incorrect size for /usr/local/samba/lib/upcase.dat - got 0 expected 131072 > incorrect size for /usr/local/samba/lib/lowcase.dat - got 0 expected 131072 > creating lame upcase table > creating lame lowcase table > incorrect size for /usr/local/samba/lib/valid.dat - got 0 expected 65536 > creating default valid table > incorrect size for /usr/local/samba/lib/valid.dat - got 0 expected 65536 > creating default valid table > added interface ip=10.1.5.238 bcast=255.255.255.255 nmask=0.0.0.0 > added interface ip=10.1.5.210 bcast=255.255.255.255 nmask=0.0.0.0 > wins_srv_died(): Could not mark WINS server 127.0.0.1 down. > Address not found in server list. > error connecting to 10.1.5.238:445 (Connection refused) > Password: > Doing spnego session setup (blob length=75) > OS=[Unix] Server=[Samba] > tree connect failed: SUCCESS - 0Sothing is broken here. The 'success but failed' means that the connection was dropped midstream... Can you see what the server has to say in its logs? Or grab a later CVS snapshot?> What is up with the 0 sized dat files? Why is it using 127.0.0.1 as the > WINS server. My smb.conf was configured to use our department's wins > server's ip address. Why is the tree connect failing. What is the Server> say samba instead of the name of my unix server (or is that correct?)? > Anyway, no shares show. > > I tried to start nmbd, but that failed too. It just does not run and shows > no errors. I ran a truss on it, and it did whine about something, although > I do not know what:Again, check your logs. Andrew Bartlett -- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net
Good point about CC to group. testparm shows a few problems: root@excelsior:/usr/local/samba #testparm Load smb config files from /usr/local/samba/lib/smb.conf incorrect size for /usr/local/samba/lib/upcase.dat - got 0 expected 131072 # How do I fix? incorrect size for /usr/local/samba/lib/lowcase.dat - got 0 expected 131072 # ? creating lame upcase table creating lame lowcase table incorrect size for /usr/local/samba/lib/valid.dat - got 0 expected 65536 # ? creating default valid table incorrect size for /usr/local/samba/lib/valid.dat - got 0 expected 65536 creating default valid table handle_source_env: Failed to open file , Error was No such file or directory # What is this? WARNING: The "alternate permissions"option is deprecated # I will remove this option Unable to copy service - source not found: # What source doe it want? Can't find include file # What include does it want? Processing section "[download]" Loaded services file OK. The log for my connection attempt to the share gets the following panic error: ==============================================================[2002/01/25 21:09:37, 0] lib/util.c:smb_panic(1133) PANIC: internal error [2002/01/25 21:09:50, 0] lib/fault.c:fault_report(37) # How do I fix? ==============================================================[2002/01/25 21:09:50, 0] lib/fault.c:fault_report(38) INTERNAL ERROR: Signal 11 in pid 8192 (3.0-alpha13) Please read the file BUGS.txt in the distribution [2002/01/25 21:09:50, 0] lib/fault.c:fault_report(40) -----Original Message----- From: Andrew Bartlett [mailto:abartlet@pcug.org.au] Sent: Friday, January 25, 2002 8:57 PM To: David Edward Shapiro Cc: 'Andrew Bartlett' Subject: Re: samba 3.0alpah13 - problems/questions David Edward Shapiro wrote:> > Okay, I am in the domain now. I cread in smb.conf the following share: > > [download] > comment = Excelsior Downloads > path = /opt/downloads > read only = No > domain group = excelsiora > hosts allow = 10.1.0.0/255.255.0.0 > > The nt admin created a group called excelsiora. He added my nt domainuser> to this group. Doing \\excelsior\download does not work. Do I need to be > using any other tools on excelsior to set up permissions for sharing? In > that pdbedit or something?Please CC samba@samba.org in future, so others may assist you with your problems -- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net
How do I get the latest CVS? I though alpha13 was the latest. I went to http://us1.samba.org/samba/ftp/alpha/ to get it. Is there a better way to get the latest? David Andrew Bartlett -- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net
David Edward Shapiro wrote:> > How do I get the latest CVS? I though alpha13 was the latest. I went to > http://us1.samba.org/samba/ftp/alpha/ > to get it. Is there a better way to get the latest?There are some details on downloading CVS at http://pserver.samba.org Andrew Bartlett -- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net
I have the 3.0alpha13 in /usr/local/samba. What is the exact cvs command I need to get the lastest update for 3.0? David -----Original Message----- From: Andrew Bartlett [mailto:abartlet@pcug.org.au] Sent: Friday, January 25, 2002 9:40 PM To: David Edward Shapiro Cc: 'Andrew Bartlett'; 'samba@samba.org' Subject: Re: samba 3.0alpah13 - problems/questions David Edward Shapiro wrote:> > How do I get the latest CVS? I though alpha13 was the latest. I went to > http://us1.samba.org/samba/ftp/alpha/ > to get it. Is there a better way to get the latest?There are some details on downloading CVS at http://pserver.samba.org Andrew Bartlett -- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net
I am reading stuff and looking through archives prior to asking questions in the forum. I sense from your shorter responses and tell me to go to links that you feel I am not. I apologize for being a pain again. I just am not familiar with how people respond to problems with getting samba working and things like cvs... Anyway the did the following: did this -> 1. Install a recent copy of cvs. All you really need is a copy of the cvs client binary. 2. run the command did this -> cvs -d :pserver:cvs@pserver.samba.org:/cvsroot login did this -> 3. when it asks you for a password type cvs 4. run the command did this -> cvs -z5 -d :pserver:cvs@pserver.samba.org:/cvsroot co samba is this the latest 2.2 source? or is it 3.0 --- I have no way to tell -> This will create a directory called samba containing the latest samba source code. This corresponds to the HEAD development branch. how do I know what branch to use for 3.0? -> If you want a different branch use the -r option to the co command to specify the branch. For example to checkout the SAMBA_2_2 branch run the command cvs -z5 -d :pserver:cvs@pserver.samba.org:/cvsroot co -r SAMBA_2_2 samba thought, oh cool, I can cd to /usr/local/samba and type this to update, but it whines with the following: cvs update: No CVSROOT specified! Please use the `-d' option cvs [update aborted]: or set the CVSROOT environment variable. -> 5. Whenever you want to merge in the latest code changes use the following command from within the samba directory: cvs update -d -P Is it difficult for you to give me just the cvs commands I need to update 3.0? I did read all this prior to asking for the exact commands... David -----Original Message----- From: Andrew Bartlett [mailto:abartlet@pcug.org.au] Sent: Friday, January 25, 2002 10:25 PM To: David Edward Shapiro Cc: 'Andrew Bartlett'; 'samba@samba.org' Subject: Re: samba 3.0alpah13 - problems/questions David Edward Shapiro wrote:> > I have the 3.0alpha13 in /usr/local/samba. What is the exact cvs commandI> need to get the lastest update for 3.0?Follow the instructions at http://build.samba.org under 'Access via CVS' for downloading a new checkout. You can't 'upgrade' your expanded tarball to a CVS checkout, unfortunately. Andrew Bartlett -- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net
When I get to step 5, cvs update -d -P I am in the directory where it just finished downloading what I hope is 3.0 stuff (co samba). It still says: cvs update: No CVSROOT specified! Please use the `-d' option Do I even need to do this step to get the latest stuff after completing 1-4? David -----Original Message----- From: Andrew Bartlett [mailto:abartlet@pcug.org.au] Sent: Sunday, January 27, 2002 10:37 PM To: David Edward Shapiro Cc: 'Andrew Bartlett'; 'samba@samba.org' Subject: Re: samba 3.0alpah13 - problems/questions David Edward Shapiro wrote:> > I am reading stuff and looking through archives prior to asking questionsin> the forum. I sense from your shorter responses and tell me to go to links > that you feel I am not. I apologize for being a pain again. I just amnot> familiar with how people respond to problems with getting samba workingand> things like cvs...Firstly, sorry for giving you a slight run-around on the URL. The correct URL for Samba's CVS pserver homepage is: http://pserver.samba.org (I gave you the one for the build farm, which I manage. ) Anyway, it looks like you found it.> Anyway the did the following: > > did this -> 1. Install a recent copy of cvs. All you really need is a > copy of the cvs client binary. > 2. run the command > > did this -> cvs -d :pserver:cvs@pserver.samba.org:/cvsroot login > > did this -> 3. when it asks you for a password type cvs > 4. run the command > > did this -> cvs -z5 -d :pserver:cvs@pserver.samba.org:/cvsroot co samba > > is this the latest 2.2 source? or is it 3.0 --- I have no way to tell -> > This will create a directory called samba containing the latest sambasource> code. This corresponds to the HEAD development branch. > > how do I know what branch to use for 3.0?A basic description of the various branches is just a but further down that page... Samba HEAD is currently also named Samba 3.0 alpha, until we get close to relase when yet another branch will be formed.> -> If you want a different > branch use the -r option to the co command to specify the branch. For > example to checkout the SAMBA_2_2 branch run the command > > cvs -z5 -d :pserver:cvs@pserver.samba.org:/cvsroot co -r SAMBA_2_2 samba > > thought, oh cool, I can cd to /usr/local/samba and type this to update,but> it whines with the following: cvs update: No CVSROOT specified! Pleaseuse> the `-d' optionYou need to check out the samba cvs module into a working directrory, then do a normal compile and install from there.> cvs [update aborted]: or set the CVSROOT environment variable. -> 5. > Whenever you want to merge in the latest code changes use the following > command from within the samba directory: > > cvs update -d -P > > Is it difficult for you to give me just the cvs commands I need to update > 3.0? I did read all this prior to asking for the exact commands...The exact cvs commands are as inidicated on that page. Yes, cvs is a bit of a barstad to get going with - follow those commands exactly and you should be fine. Andrew Bartlett -- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net
I think I saw somebody else complain about this earlier: Compiling wrepld/server.c In file included from wrepld/server.c:23: wrepld/wins_repl.h:161:26: wrepld_proto.h: No such file or directory *** Error code 1 make: Fatal error: Command failed for target `wrepld/server.o' Do you have this header file? Will there be anything else missing? David -----Original Message----- From: Andrew Bartlett [mailto:abartlet@pcug.org.au] Sent: Sunday, January 27, 2002 10:37 PM To: David Edward Shapiro Cc: 'Andrew Bartlett'; 'samba@samba.org' Subject: Re: samba 3.0alpah13 - problems/questions David Edward Shapiro wrote:> > I am reading stuff and looking through archives prior to asking questionsin> the forum. I sense from your shorter responses and tell me to go to links > that you feel I am not. I apologize for being a pain again. I just amnot> familiar with how people respond to problems with getting samba workingand> things like cvs...Firstly, sorry for giving you a slight run-around on the URL. The correct URL for Samba's CVS pserver homepage is: http://pserver.samba.org (I gave you the one for the build farm, which I manage. ) Anyway, it looks like you found it.> Anyway the did the following: > > did this -> 1. Install a recent copy of cvs. All you really need is a > copy of the cvs client binary. > 2. run the command > > did this -> cvs -d :pserver:cvs@pserver.samba.org:/cvsroot login > > did this -> 3. when it asks you for a password type cvs > 4. run the command > > did this -> cvs -z5 -d :pserver:cvs@pserver.samba.org:/cvsroot co samba > > is this the latest 2.2 source? or is it 3.0 --- I have no way to tell -> > This will create a directory called samba containing the latest sambasource> code. This corresponds to the HEAD development branch. > > how do I know what branch to use for 3.0?A basic description of the various branches is just a but further down that page... Samba HEAD is currently also named Samba 3.0 alpha, until we get close to relase when yet another branch will be formed.> -> If you want a different > branch use the -r option to the co command to specify the branch. For > example to checkout the SAMBA_2_2 branch run the command > > cvs -z5 -d :pserver:cvs@pserver.samba.org:/cvsroot co -r SAMBA_2_2 samba > > thought, oh cool, I can cd to /usr/local/samba and type this to update,but> it whines with the following: cvs update: No CVSROOT specified! Pleaseuse> the `-d' optionYou need to check out the samba cvs module into a working directrory, then do a normal compile and install from there.> cvs [update aborted]: or set the CVSROOT environment variable. -> 5. > Whenever you want to merge in the latest code changes use the following > command from within the samba directory: > > cvs update -d -P > > Is it difficult for you to give me just the cvs commands I need to update > 3.0? I did read all this prior to asking for the exact commands...The exact cvs commands are as inidicated on that page. Yes, cvs is a bit of a barstad to get going with - follow those commands exactly and you should be fine. Andrew Bartlett -- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net
I cd into samba that cvs downloaded and got the error. Is it the other samba--in that, /usr/local/samba? David -----Original Message----- From: Andrew Bartlett [mailto:abartlet@pcug.org.au] Sent: Monday, January 28, 2002 3:15 PM To: David Edward Shapiro Cc: 'Andrew Bartlett'; 'samba@samba.org' Subject: Re: samba 3.0alpah13 - problems/questions David Edward Shapiro wrote:> > When I get to step 5, > > cvs update -d -P > > I am in the directory where it just finished downloading what I hope is3.0> stuff (co samba). It still says: > cvs update: No CVSROOT specified! Please use the `-d' option > > Do I even need to do this step to get the latest stuff after completing1-4? Only to keep up to date with the latest changes. You need to 'cd' *into* samba before it works. Andrew Bartlett -- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net