LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-18-2006, 08:04 PM   #1
boy_to_man
Member
 
Registered: Dec 2006
Posts: 54

Rep: Reputation: 15
I had start smb service but in chkconfig it closed


hi all

[root@10 sbin]# ./service smb restart
Shutting down SMB services: [ OK ]
Shutting down NMB services: [ OK ]
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]
[root@10 sbin]# ./chkconfig --list smb
smb 0ff 1ff 2ff 3ff 4ff 5ff 6ff
[root@10 sbin]#

above figure is enough or not.
how can i see smb in chkconfig is on, it always off even if i have start it.
one more stupid question. How can i use it,after install samba i can automaticaly connect from other WindowOS to this linux machine or must config something to can do it.

Fedora 6.0, Gnome environment.

peace
 
Old 12-18-2006, 08:43 PM   #2
bhert
Member
 
Registered: May 2006
Distribution: OpenSUSE 10.3 Kubuntu Hardy Heron
Posts: 268

Rep: Reputation: 30
type chkconfig smb 35
your distro may be a little different but you get the idea

3 is runlevel for terminal and 5 is for gui

-bhert
 
Old 12-18-2006, 09:09 PM   #3
boy_to_man
Member
 
Registered: Dec 2006
Posts: 54

Original Poster
Rep: Reputation: 15
@bhert:
i had do follow u but..

[root@10 sbin]# ./chkconfig smb 35
chkconfig version 1.3.30 - Copyright (C) 1997-2000 Red Hat, Inc.
This may be freely redistributed under the terms of the GNU Public License.

usage: chkconfig --list [name]
chkconfig --add <name>
chkconfig --del <name>
chkconfig [--level <levels>] <name> <on|off|reset|resetpriorities>
[root@10 sbin]# ./chkconfig --list smb
smb 0ff 1ff 2ff 3ff 4ff 5ff 6ff
[root@10 sbin]#

anyway can u tell me each level from 0->6 :as 3 for terminal, and 5 for Gui
Thanks a lot
Any comment with my problem is welcome
 
Old 12-18-2006, 10:03 PM   #4
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 25, 26, RHL 5.2
Posts: 560

Rep: Reputation: 56
chkconfig is used to determine what init scripts are run during each run level. It is not meant to give you the status of what is on and off. The command you executed in your first post restarted smb. It doesn't show on with chkconfig because it isn't configured that way. By the way, you don't need to go to the /sbin directory and execute using ./chkconfig. /sbin and /usr/sbin are in the root users $PATH variable and can be executed from anywhere as root.

bhert had it pretty close, the command should have been...
Code:
chkconfig --level 35 smb on
To check the settings for smb use...
Code:
chkconfig --list smb
Here is an explanation of run levels

* rc0.d - System Halted
* rc1.d - Single User Mode
* rc2.d - Single User Mode with Networking
* rc3.d - Multi-User Mode - boot up in text mode
* rc4.d - Not yet Defined
* rc5.d - Multi-User Mode - boot up in X Windows
* rc6.d - Shutdown & Reboot

Bill
 
Old 12-18-2006, 10:09 PM   #5
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 25, 26, RHL 5.2
Posts: 560

Rep: Reputation: 56
I should have also told you that there is a gui based version of chkconfig. Follow the menu path System Settings -> Server Settings -> Services or if you prefer use the command system-config-services at an xterm command line.

Bill
 
Old 12-18-2006, 10:59 PM   #6
boy_to_man
Member
 
Registered: Dec 2006
Posts: 54

Original Poster
Rep: Reputation: 15
@wmakowski or BIll

Thanks for ur help ,now i can start samba service with ur suggest.And now ,might be i can copy data from WindowOS machine to Linux OS ,mightnot?
or mus do anything else.
Thanks for ur explain about runlevel, it great with me.
 
Old 12-19-2006, 09:41 AM   #7
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 25, 26, RHL 5.2
Posts: 560

Rep: Reputation: 56
As always there are a couple of options. Tell me a little more about how you want everything to end up. Are you getting rid of the WindowOS machine or is it going to stick around? Once you have samba up and running you can use it to mount a share in either direction. Windows can map a drive to an area on Linux or Linux can mount a share that is available on the Windows machine.

If you are going to keep both machines around there is no sense in duplicating data. Simply map or mount one machine to the other and be done with it. If you are getting rid of the Windows machine then you would want to mount a share and cp the contents to another directory on the Linux machine.

Bill

ps - This is turning into a Samba discussion rather than chkconfig. You might want to start a new thread.

Last edited by wmakowski; 12-19-2006 at 09:42 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to register auto start/stop service script with chkconfig travellers Linux - Software 8 06-15-2009 11:02 AM
when i try to start samba pdc's smb service nmbd failed to start . sandeepchau123 Linux - Newbie 2 10-20-2007 01:59 PM
service foo does not support chkconfig packets Linux - Newbie 2 12-18-2006 10:23 PM
I can't "service squid start" , and chkconfig squid on not working Niceman2005 Linux - Software 0 11-10-2004 08:18 PM
NEWBIE: The boot is locked on 'start SMB service'. Please HELP ME! edika Linux - General 2 05-06-2004 02:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration