LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   smb service doesn't exist (https://www.linuxquestions.org/questions/linux-newbie-8/smb-service-doesnt-exist-932932/)

schrodingore 03-05-2012 10:21 PM

smb service doesn't exist
 
According to the documents I have seen to get samba up and running I just have to install it which I did
__________________
[root@CLM samba]# rpm -qa | grep samba
samba-common-3.6.3-78.fc16.x86_64
samba-winbind-clients-3.6.3-78.fc16.x86_64
samba-client-3.6.3-78.fc16.x86_64
samba-3.6.3-78.fc16.x86_64
_________________________________________

but the service doesn't seem to exist
_____________________________________________
[root@CLM samba]# chkconfig smb --list

Note: This output shows SysV services only and does not include native
systemd services. SysV configuration data might be overridden by native
systemd configuration.
______________________________________________
and my config file seems to be missing
_____________________________________________
[root@CLM samba]# pwd
/etc/samba
[root@CLM samba]# ls
smbusers


any ideas?

schrodingore 03-05-2012 10:24 PM

I also uninstalled it / reinstalled it with the same results

schrodingore 03-05-2012 10:54 PM

uninstalled all above packeges and reinstalled via
yum install samba

but still no service (in fedora)

tried it on a centOS box and it seems to be working :-(

spazticclown 03-05-2012 11:35 PM

Install samba and related packages:
Code:

$ su -c 'yum -y install samba samba-common samba-client'
If you are using Fedora 16 & 15 try:
Code:

$ su -c 'systemctl start smb.service'
$ su -c 'systemctl enable smb.service'

For Fedora 14 and before:
Code:

$ su -c '/etc/init.d/smb start'
$ su -c 'chkconfig smb on'

The configuration file is /etc/samba/smb.conf and it should be replaced when reinstalled. If not there might be a copy availalbe online or in the samba-doc package available through yum.

I hope this helps you out.

schrodingore 03-06-2012 02:58 AM

the smb.conf is there, but the service still isn't there
Fedora 16
Code:

[root@CLM daniel]# chkconfig  --list

Note: This output shows SysV services only and does not include native
      systemd services. SysV configuration data might be overridden by native
      systemd configuration.

ceph                  0:off        1:off        2:off        3:off        4:off        5:off        6:off
dkms_autoinstaller        0:off        1:off        2:on        3:on        4:on        5:on        6:off
netconsole            0:off        1:off        2:off        3:off        4:off        5:off        6:off
netfs                  0:off        1:off        2:off        3:on        4:on        5:on        6:off
network                0:off        1:off        2:off        3:off        4:off        5:off        6:off
sandbox                0:off        1:off        2:off        3:off        4:off        5:on        6:off
vboxballoonctrl-service        0:off        1:off        2:on        3:on        4:on        5:on        6:off
vboxdrv                0:off        1:off        2:on        3:on        4:on        5:on        6:off
vboxweb-service        0:off        1:off        2:on        3:on        4:on        5:on        6:off


Satyaveer Arya 03-06-2012 03:40 AM

These are now controlled by systemd instead of system V. Look for samba with something like:

Code:

# systemctl list-units --all |grep smb
This should show you something like:

Quote:

smb.service loaded active running Samba SMB Daemon
if its not started you can start it with your old service command but under systemd you can use something like:

Code:

# systemctl enable smb.service
# systemctl start smb.service

The enable command move the smb service file into the correct spot (like chkconfig <service> on use to) and start then starts it up. To see the status you can run:

Code:

# systemctl status smb.service


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