Hi, I'm fairly new to both linux and samba. I'm running RH8 with Samba 2.2.7a. Samba's installed and is basically working, but can anyone tell me how I can get samba to start when linux boots up? I'm currently having to start it by running the following commands; ./usr/local/samba/sbin/smbd -D ./usr/local/samba/sbin/nmbd -D I've got the Using samba book from o'reilly, but it doesn't tell you how to set conf xinetd Thx in advance Roland
On Tue, 2003-01-14 at 07:41, Roland Thompson wrote:> Hi, > > I'm fairly new to both linux and samba. > I'm running RH8 with Samba 2.2.7a. > Samba's installed and is basically working, but can anyone tell me how I > can get samba to start when linux boots up? > I'm currently having to start it by running the following commands; > ./usr/local/samba/sbin/smbd -D > ./usr/local/samba/sbin/nmbd -D > > I've got the Using samba book from o'reilly, but it doesn't tell you how > to set conf xinetd > > Thx in advance > > RolandYou should be able to run "serviceconf" and put a tick next to the service you want to run - but Samba SHOULD be running by default. Either which, running "serviceconf" and then doing a "save" will ensure that it's starting at bootup - if it isn't already. Another thing to do is when it dies or if you want to restart it, is to open a term and run: service smb --full-restart Cheers! HTH -- Tue Jan 14 07:45:00 EST 2003 7:45am up 1 day, 9:31, 5 users, load average: 1.52, 0.56, 0.33 ------------------------------------------------------------------ | __ __ | kuhn media australia | | / ,, /| |'-. | http://kma.0catch.com | | .\__/ || | | |=================================| | _ / `._ \|_|_.-' | stephen kuhn | | | / \__.`=._) (_ | email: skuhn@telpacific.com.au | | |/ ._/ |"""""""""| | email: stephen.kuhn@gmx.net | | |'. `\ | | | icq: 5483808 | | ;"""/ / | | | | | smk ) /_/| |.-------.| | mobile: 0410-728-389 | | ' `-`' " " | Berkeley, New South Wales, AU | ------------------------------------------------------------------ * linux user:267497 * RH 7.3+ * PC/Mac/Linux/Networking/Consulting ------------------------------------------------------------------ A lie in time saves nine.
Thanks for the reply, but smb isn't one of the options. Any idea on how I can get it there? -----Original Message----- From: Kevin Kint [mailto:KKint@snapappliance.com] Sent: 13 January 2003 20:46 To: 'roland@thompson.name' Subject: RE: [Samba] auto start Easiest way to do it is set it to start in your service menu. As root, run "setup" and go to the services option, the put a check mark on smb. -----Original Message----- From: Roland Thompson [mailto:roland@thompson.name] Sent: Monday, January 13, 2003 12:41 PM To: samba@lists.samba.org Subject: [Samba] auto start Hi, I'm fairly new to both linux and samba. I'm running RH8 with Samba 2.2.7a. Samba's installed and is basically working, but can anyone tell me how I can get samba to start when linux boots up? I'm currently having to start it by running the following commands; ./usr/local/samba/sbin/smbd -D ./usr/local/samba/sbin/nmbd -D I've got the Using samba book from o'reilly, but it doesn't tell you how to set conf xinetd Thx in advance Roland -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
On Mon, 2003-01-13 at 12:41, Roland Thompson wrote:> I'm running RH8 with Samba 2.2.7a. > how I can get samba to start when linux boots up?Here are three ways: 1) if using Gnome as your desktop, click on the 'foot' -> Programs -> System -> Service Configuration. You will be prompted for the root password, if you are not already root. Go down through the list, put a check next to 'smb'. For me, nmbd starts automatically as a consquence of smb starting. 2) from a console, you can type 'serviceconf'. This basically does exactly the same as option 1). 3) from a console (or, in case you have no GUI), you type 'ntsysv'. Again, this gives you a list of services and checkboxes; tick off 'smb'. HTH, -Gord -- Gordon Pritchard, P.Eng. | Institute of Electrical and Research Labs Manager | Electronics Engineers Simon Fraser University, Surrey | Quarter Century Wireless Ass'n gordonp@sfu.ca | Telephone Pioneers of America phone: 604.586.6186