LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I had start smb service but in chkconfig it closed (https://www.linuxquestions.org/questions/linux-newbie-8/i-had-start-smb-service-but-in-chkconfig-it-closed-511759/)

boy_to_man 12-18-2006 08:04 PM

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 0:off 1:off 2:off 3:off 4:off 5:off 6:off
[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:D:Pengy: :Pengy:

bhert 12-18-2006 08:43 PM

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

boy_to_man 12-18-2006 09:09 PM

@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 0:off 1:off 2:off 3:off 4:off 5:off 6:off
[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

wmakowski 12-18-2006 10:03 PM

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

wmakowski 12-18-2006 10:09 PM

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

boy_to_man 12-18-2006 10:59 PM

@wmakowski or BIll :D

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.

wmakowski 12-19-2006 09:41 AM

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.


All times are GMT -5. The time now is 09:03 AM.