naughton@domino.danielwoodhead.com
2000-May-02 14:03 UTC
starting smb services at bootup on x86 RH6.1
I am running RH6.1 on an x86 with 2.0.6 installed with an RPM. I am confused as to getting smb to start at bootup. It works fine if I start it manually (/etc/rc.d/init.d/smb start). I swear, the 5.2 installation had smb start at bootup, but I can't find the difference between the two. Is the answer 1 - edit the /etc/inetd.conf file (swat needed a line uncommented) 2 - edit the /etc/rc.d/rc.local file to add /etc/rc.d/init.d/smb start 3 - add symlinks to the /etc/rc.d/rcx.d directories to point to smb I'm a bit my league with this one. Unfortunately, this is as close as I could get. TIA Dan Naughton
Re:> Date: Tue, 02 May 2000 15:16:49 +0200 > From: Michel Jouvin <jouvin@lal.in2p3.fr> > To: samba@samba.org > Subject: 2.0.7 : 2 problems with install on Compaq Tru64 > > [...] > > 2- As AIX, Tru64 has utmpx.h but 'x functions' are not implemented. I had > to undefined HAVE_UTMPX_H for Tru64 to be able to link smbd. > This is in smbd/connection.c. I added after the same code for AIX : > > #if defined (__osf__) > #undef HAVE_UTMPX_H > #endif > > This happens with Tru64 native C compiler. I don't know if gcc exhibits the > same behaviour.Thanks for the report. The "utmp" support is new. During development, it became apparent that almost every OS had its own little oddities. The code has therefore evolved a lot during its short life. What is in 2.0.7 is very different from the first attempt that went into Samba's development tree. It is adequate and stable for a few systems, but, as you discovered, inadequate for others. Indeed, even though it might compile, there are probably then other things that might subsequently fail. But good news follows later... Although the "#if defined(AIX)" worked, the "autoconf" philosophy tends to be against such OS-specific things, and prefer instead testing for features. That "AIX" thing was, therefore a quick-and-dirty fudge, and not recommended. Similarly, therefore, "#if defined(__osf__)", should be avoided if reasonably possible. Since the utmp code in the 2.0.7 development cycle was frozen (for stability purposes), a patch has evolved which tries to fix known compilation problems, to prevent future compilation problems, and to fix some known bugs. It tries not to use "#if defined (AIX)" constructions. This patch (about 100k) is at: http://www.dur.ac.uk/~samba/utmp-207.patch Please could you try that, as it stands, on your system. Let me know if (and how!) you need to adjust that. Thanks, in anticipation. -- : David Lee I.T. Service : : Systems Programmer Computer Centre : : University of Durham : : http://www.dur.ac.uk/~dcl0tdl South Road : : Durham : : Phone: +44 191 374 2882 U.K. :
Is there anyway to turn off the roaming part of the profiles under windows 98. I do want to keep the local profiles, but not to sync them with the samba server. Any reg hack, or policy hacks I can do? Or is this just something that I cant do? Email me if you shall, prolly better. mailto: fatz@linuxhaven.com Phil Mather Simple Network Dude.
The answer is as root chkconfig --level <levels> smb on /etc/rc.d/init/smb start e.g. chkconfig --level 3 smb on Next time the machine will autostart samba Regards, Henri "The Geezer Geek" -- ------------------------------------------------------------- "Hold on sonny, let me go get my clue-by-four for you" -------------------------------------------------------------
The specification file is a PDF file contained in a self-extracting Zip archive. The license agreement (not visible at the technet download area, but appended to the end of the spec!) specifically forbids implementations using information contained in the document.
At 12:07 AM 5/3/00 +1000, naughton@domino.danielwoodhead.com wrote:>I am running RH6.1 on an x86 with 2.0.6 installed with an RPM. I am >confused as to getting smb to start at bootup. It works fine if I start it >manually (/etc/rc.d/init.d/smb start). I swear, the 5.2 installation had >smb start at bootup, but I can't find the difference between the two. Is >the answer > >1 - edit the /etc/inetd.conf file (swat needed a line uncommented) >2 - edit the /etc/rc.d/rc.local file to add /etc/rc.d/init.d/smb start >3 - add symlinks to the /etc/rc.d/rcx.d directories to point to smb > >I'm a bit my league with this one. Unfortunately, this is as close as I >could get. TIA > > >Dan Naughton >The answer is number 3. An easy way to do it is, as root: chkconfig smb on This will set all the symlinks for you. (It will not start Samba for this bootup though, unless you change run levels.) Mikkel -- Do not meddle in the affairs of dragons, for you are crunchy and taste good with ketchup.