Samba, autostart problem

**Hello

**I’ve set the autostart of Samba in Yast (runlevel 3, 5). The samba seems to be running after start, but when I try to browse the network in Nautilus so there is the folder is empty. If I restart the Samba manually (rcsmb restart), so it works in nautilus correctly.

Do you know how to force the Samba to work properly after login?

On 3/30/2013 9:16 AM, Skeletonix wrote:
>
> *Hello
>
> *I’ve set the autostart of Samba in Yast (runlevel 3, 5). The samba
> seems to be running after start, but when I try to browse the network in
> Nautilus so there is the folder is empty. If I restart the Samba
> manually (rcsmb restart), so it works in nautilus correctly.
>
> Do you know how to force the Samba to work properly after login?
>
>
Skeletonix;

YaST does not seem to work properly with systemd. In a terminal try:


su -
systemctl status smb.service
systemctl start smb.service  # only if needed
systemctl enable smb.service

(do the same for nmb.service)

This was written for Fedora but it applies to openSUSE and will help explain systemd

http://fedoraproject.org/wiki/SysVinit_to_Systemd_Cheatsheet


P.V.
“We’re all in this togesther, I’m pulling for you” Red Green

This is the result of it:

Kosmik:/home/binturong # systemctl status smb.servicesmb.service - LSB: Samba SMB/CIFS file and print server
      Loaded: loaded (/etc/init.d/smb)
      Active: active (running) since Mon, 01 Apr 2013 11:34:38 +0200; 4min 52s ago
     Process: 2854 ExecReload=/etc/init.d/smb reload (code=exited, status=0/SUCCESS)
     Process: 1501 ExecStart=/etc/init.d/smb start (code=exited, status=0/SUCCESS)
      CGroup: name=systemd:/system/smb.service
          ├ 1550 /usr/sbin/smbd -D -s /etc/samba/smb.conf
          └ 1697 /usr/sbin/smbd -D -s /etc/samba/smb.conf


Apr 01 11:34:38 Kosmik smb[1501]: Starting Samba SMB daemon ..done
Apr 01 11:34:38 Kosmik smbd[1696]: [2013/04/01 11:34:38.577917,  0] printin...t)
Apr 01 11:34:38 Kosmik smbd[1696]: [68B blob data]
Apr 01 11:34:38 Kosmik smbd[1550]: [2013/04/01 11:34:38.579467,  0] printin...k)
Apr 01 11:34:38 Kosmik smbd[1550]: failed to retrieve printer list: NT_STAT...UL
Apr 01 11:34:43 Kosmik smb[2854]: Reloading Samba SMB daemon ..done
Apr 01 11:34:43 Kosmik smbd[2868]: [2013/04/01 11:34:43.160101,  0] printin...t)
Apr 01 11:34:43 Kosmik smbd[1550]: [2013/04/01 11:34:43.161125,  0] printin...k)
Apr 01 11:34:43 Kosmik smbd[1550]: failed to retrieve printer list: NT_STAT...UL
Kosmik:/home/binturong # systemctl start smb.service
Kosmik:/home/binturong # systemctl enable smb.service
smb.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig smb on
Kosmik:/home/binturong # systemctl status nmb.service
nmb.service - LSB: Samba NetBIOS naming service over IP
      Loaded: loaded (/etc/init.d/nmb)
      Active: active (running) (Result: exit-code) since Mon, 01 Apr 2013 11:34:42 +0200; 5min ago
     Process: 2836 ExecReload=/etc/init.d/nmb reload (code=exited, status=3/NOTIMPLEMENTED)
     Process: 2806 ExecStart=/etc/init.d/nmb start (code=exited, status=0/SUCCESS)
      CGroup: name=systemd:/system/nmb.service
          ├ 2818 /usr/sbin/nmbd -D -s /etc/samba/smb.conf
          └ 2819 /usr/sbin/nmbd -D -s /etc/samba/smb.conf


Apr 01 11:34:42 Kosmik nmb[2806]: Starting Samba NMB daemon - Warning: /var...ne
Apr 01 11:34:43 Kosmik nmb[2836]: Reloading Samba NMB daemon ..missing
Kosmik:/home/binturong # systemctl start nmb.service
Kosmik:/home/binturong # systemctl enable nmb.service
nmb.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig nmb on



but it didn’t help. Only the manual rcsmb restart helps :(.

On 2013-04-01 11:46, Skeletonix wrote:
>

> but it didn’t help. Only the manual rcsmb restart helps :(.

Try on a terminal:


su -
chkconfig nmb
chkconfig nmb on
chkconfig smb
chkconfig smb on


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

It didn’t help.

Here’s your solution:

In Yast - Network Devices - Networksettings
Assuming networking is set to ifup.
Go Overview, select the networkcard, click Edit
In the General Tab, change “At cable connection” to “At boot time”.
Reboot and samba should run without a restart.

On 2013-04-01 14:46, Skeletonix wrote:
>
> robin_listas;2543382 Wrote:

> Code:
> --------------------
> > >
> > su -
> > chkconfig nmb
> > chkconfig nmb on
> > chkconfig smb
> > chkconfig smb on
> >
> --------------------

> It didn’t help.

Do yo mean that the services failed to be enabled (“chkconfig smb” will
say), or that the service is activated, it does run on boot, but fails?

Because if it is that, Knurpht advice will be on target.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

That was it. Thank you very much for help :).