I'm in the process of beginning to set up Samba with the aid of the book Special Edition Using Samba. The problem that I have is that I cannot get the service to run. I am using Red Hat 7.2 - kernel 2.4.9-13. I modified the smb.conf file and get the following when running the "testparm" command: Load smb config files from /etc/samba/smb.conf Processing section "[homes]" Loaded services file OK. Press enter to see a dump of your service definitions The processing section does not mention the [global] section entered as recommended in the above referenced book. The use of the ntsysv command does not show an entry for smb. Also any of the samba commands are responded with "samba: command not found". All other networking works fine such as ping or internet access. The system sits on a Ethernet network with 1 each of the following stations: XP, 2000 and ME. Kevin
First step, The components of samba are smbd and nmbd. Nothing at the console actually answers the name of "samba". You can check to see if those daemons are running by typing ps -C smbd ps -C nmbd those daemons will show up if they're running (note the upper case C). julian. ========================At 12:42 PM 12/30/01 -0500, Kevin Barry wrote:>I'm in the process of beginning to set up Samba with the aid of the book >Special Edition Using Samba. The problem that I have is that I cannot >get the service to run. > >I am using Red Hat 7.2 - kernel 2.4.9-13. > >I modified the smb.conf file and get the following when running the >"testparm" command: >Load smb config files from /etc/samba/smb.conf >Processing section "[homes]" >Loaded services file OK. >Press enter to see a dump of your service definitions > >The processing section does not mention the [global] section entered as >recommended in the above referenced book. The use of the ntsysv command >does not show an entry for smb. Also any of the samba commands are >responded with "samba: command not found". All other networking works >fine such as ping or internet access. The system sits on a Ethernet >network with 1 each of the following stations: XP, 2000 and ME. > >Kevin > > > >-- >To unsubscribe from this list go to the following URL and read the >instructions: http://lists.samba.org/mailman/listinfo/samba=============================Julian A. Opificius. 802 Fawn Road, Elk River, MN 55330. Home: 763.441.1291, Cell: 763.360.5919 julianop@mninter.net ICQ: 3268206 ==============================
Seems samba isn't running. So it starts at boot: chkconfig --level 345 smb on to start it now: /etc/rc.d/init.d/smb start Dennis Kevin Barry wrote:> I'm in the process of beginning to set up Samba with the aid of the book > Special Edition Using Samba. The problem that I have is that I cannot > get the service to run. > > I am using Red Hat 7.2 - kernel 2.4.9-13. > > I modified the smb.conf file and get the following when running the > "testparm" command: > Load smb config files from /etc/samba/smb.conf > Processing section "[homes]" > Loaded services file OK. > Press enter to see a dump of your service definitions > > The processing section does not mention the [global] section entered as > recommended in the above referenced book. The use of the ntsysv command > does not show an entry for smb. Also any of the samba commands are > responded with "samba: command not found". All other networking works > fine such as ping or internet access. The system sits on a Ethernet > network with 1 each of the following stations: XP, 2000 and ME. > > Kevin > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba-- Dennis K. Grow RedHat 7.2 Kernel: 2.4.13 KDE: 2.2-10 ALSA: 0.5.11 11:05am up 20 min, 5 users, load average: 0.25, 0.65, 0.64 ------------------------------------------------------------
Did you get the latest samba ? Plus which one are you using the tar or the rpm . If your using the rpm make sure that you down load all 3 rpms . That's how I got mind to work Samba.-xx Samba-common Samba-client do a rpm -q samba to see if you did install it right. If you have trouble setting it up I could help you. ----- Original Message ----- From: "Kevin Barry" <kfbarry@bellatlantic.net> To: <samba@lists.samba.org> Sent: Sunday, December 30, 2001 9:42 AM Subject: Samba Newbie> I'm in the process of beginning to set up Samba with the aid of the book > Special Edition Using Samba. The problem that I have is that I cannot > get the service to run. > > I am using Red Hat 7.2 - kernel 2.4.9-13. > > I modified the smb.conf file and get the following when running the > "testparm" command: > Load smb config files from /etc/samba/smb.conf > Processing section "[homes]" > Loaded services file OK. > Press enter to see a dump of your service definitions > > The processing section does not mention the [global] section entered as > recommended in the above referenced book. The use of the ntsysv command > does not show an entry for smb. Also any of the samba commands are > responded with "samba: command not found". All other networking works > fine such as ping or internet access. The system sits on a Ethernet > network with 1 each of the following stations: XP, 2000 and ME. > > Kevin > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
Please ignore my previous message I remembered to go to the cd images for RH 7.2 to load the missing Samba file which I did and set it to run automatically with the 'ntsysv' command app. The samba 'parameter' commands still do not work although I have verified from the system monitor that the smbd and nmbd services are working. Also a check of the network places in Win XP shows the Samba PC. When I run the 'smbstatus' command I get the following error "Failed to open byte range locking database ERROR: Failed to initialise locking database Can't initialise locking module - exiting" The smbd log file does not yet contain any entries although the nmbd does contain the following: nmbd/nmbd_become_lmb,c:become_local_master_stage2(405) Samba name server KEVIN is now a local master browser for workgroup WORKGROUP on subnet 192.168.0.6 Any suggestions would be welcome on the error. Thanks Kevin -----Original Message----- From: Kevin Barry [mailto:kfbarry@bellatlantic.net] Sent: Sunday, December 30, 2001 9:44 PM To: 'Luis' Cc: 'samba@lists.samba.org' Subject: RE: Samba Newbie Luis, Thanks for the response to my message. You're right I don't have all the files installed just the client and common files with the versions of 2.2.1a-4 but when I use the GnoRPM app to add the common file I get dependency errors as the latest version seems to be 2.0.10-0.7. When I download the latest version from the Red Hat site and use the command rpm -Uvh samba -file name I get the error code that 'libreadline.so.4.1' is required although I have searched all over I cannot find the needed files. Do you have any suggestions? Kevin -----Original Message----- From: Luis [mailto:Luis@paycom.net] Sent: Sunday, December 30, 2001 4:13 PM To: Kevin Barry; samba@lists.samba.org Subject: Re: Samba Newbie Did you get the latest samba ? Plus which one are you using the tar or the rpm . If your using the rpm make sure that you down load all 3 rpms . That's how I got mind to work Samba.-xx Samba-common Samba-client do a rpm -q samba to see if you did install it right. If you have trouble setting it up I could help you. ----- Original Message ----- From: "Kevin Barry" <kfbarry@bellatlantic.net> To: <samba@lists.samba.org> Sent: Sunday, December 30, 2001 9:42 AM Subject: Samba Newbie> I'm in the process of beginning to set up Samba with the aid of the > book Special Edition Using Samba. The problem that I have is that I > cannot get the service to run. > > I am using Red Hat 7.2 - kernel 2.4.9-13. > > I modified the smb.conf file and get the following when running the > "testparm" command: Load smb config files from /etc/samba/smb.conf > Processing section "[homes]" > Loaded services file OK. > Press enter to see a dump of your service definitions > > The processing section does not mention the [global] section entered > as recommended in the above referenced book. The use of the ntsysv > command does not show an entry for smb. Also any of the samba commands> are responded with "samba: command not found". All other networking > works fine such as ping or internet access. The system sits on a > Ethernet network with 1 each of the following stations: XP, 2000 and > ME. > > Kevin > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
Ahhhh.... OK, your S (start) and K (kill) scripts need to both be in the /etc/rc.d/init.d directory first - then it should work. Here is a pretty good page explaining how this works... www.linuxnewbie.org/nhf/intel/osbooting/sysvinit.html Hope this helps... Charles> -----Original Message----- > From: Julian Opificius [mailto:julianop@mninter.net] > Sent: Wednesday, January 02, 2002 10:05 AM > To: Charles Marcus > Subject: RE: Samba Newbie > > > At 07:21 AM 1/2/02 -0500, you wrote: > >Not sure what you mean - how are you trying to use it in a script? > > I'm not trying to use it IN a script, I'm trying to get to > manage my script. > > >This is a command line tool. You only have to issue the > command once. > > > >For example, after issuing the command: > > > >chkconfig --level 3 swat on > > > > >From now on, swat will startup automatically when the > server is started in > >runlevel 3. > > > >If, however, you don't have a swat startup script in > /etc/xinetd.d/swat to > >begin with, then all you have to do is create one once. It > should have been > >automatically created/installed when you installed Samba, > but if you need > >it, just let me know... > > Let's back up :-) > > Having been successful with getting swat running, I'm trying > to get my own > script to start at boot time, like swat, et al. My script is > called seti, > which I got from the Setiathome website and adapted for my > directory tree. > > (Setiathome is a global project for processing radio info > received from > outerspace - looking for ET, essentially. Several million > people run the > seti client which pulls info packets from the setiathome website and > processes them when their computers are idle, and return the > results of the > analysis. If you're even vaguely interested, the website is > http://setiathome.ssl.berkeley.edu) > > My understanding from running "man chkconfig" is that I have > to ... well, > "register" my script with the command "chkconfig --add seti". > I get the following error: > "service seti does not support chkconfig". > That's why I suspected it wanted the runlevel and priority info. I > understand the runlevel part, but I have no idea whatsoever > about choosing > start and stop priorities. man is characteristically > unhelpful about the issue. > > Thanks! > > Julian. > ========================> > >Charles > > > > > -----Original Message----- > > > From: Julian Opificius [mailto:julianop@mninter.net] > > > Sent: Wednesday, January 02, 2002 1:34 AM > > > To: Charles Marcus > > > Subject: RE: Samba Newbie > > > > > > > > > Charles, > > > > > > I can't get chkconfig to accept my own script. Do I have > to put the > > > runlevel and start/stop priority notes in like system services? > > > > > > julian. > > =============================> Julian A. Opificius. > 802 Fawn Road, Elk River, MN 55330. > Home: 763.441.1291, Cell: 763.360.5919 > julianop@mninter.net ICQ: 3268206 > =============================> >
Hello, I am new to Samba and trying to set up a little network with just a pc (Windows ME) and linux server (Mandrake 8.1). I'm sorry if these questions seem simple, but we need to have this network set up asap and I don't have lots of time to do research (networking is not my responsiblility but this was thrown on me). We have the pc and linux box connected to a mini-hub and I can ping the server from the pc, but when I try to map a drive I get an error saying something like the machine could not be found. I have added a user to the linux box and to samba , and have added this user to the frontline group. Unfortunately this network is set up at a different office so I can only test the setup at certain times. I did have Samba working correctly at our office with this same linux box, however we had a NT Server and the PDC. Here is my simple smb.conf: [global] workgroup = STOGDEN server string = Samba %v encrypt passwords = Yes unix password sync = Yes log file = /var/log/samba/log.%m max log isze = 50 socket options = TCP_NODELAY SO_RCVBUF8192 SO_SNDBUF dns proxy = No invalid users = root [test] comment = Test path = /opt/frontline valid users = @frontline read only = No Does anyone see anything that I need to add to get this to work? Do I need to make this linux box the domain master? Again sorry for the questions without a lot of research. Thanks for any responses, Jeff -------------- next part -------------- HTML attachment scrubbed and removed