Zitat von
fork
Gib das mal ein und statt ENTER drück dann zwei-dreimal die die TAB-Taste.
Code:
/etc/init.d/smb
-bash: /etc/init.d/smb: No such file or directory
Zitat von
florian0285
Ich denke es war samba.service nicht smb.service
systemctl enable samba.service
systemctl start samba.service
Zum Prüfen obs installiert ist:
dpkg --list | grep samba (oder smb)
Code:
systemctl enable samba.service
Synchronizing state for samba.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d samba defaults
Executing /usr/sbin/update-rc.d samba enable
root@cubie:~# systemctl start samba.service
root@cubie:~# dpkg --list | grep samba
ii python-samba 2:4.2.10+dfsg-0+deb8u3 armhf Python bindings for Samba
rc samba 2:3.6.6-6+deb7u5 armhf SMB/CIFS file, print, and login server for Unix
ii samba-common 2:4.2.10+dfsg-0+deb8u3 all common files used by both the Samba server and client
ii samba-common-bin 2:4.2.10+dfsg-0+deb8u3 armhf Samba common files used by both the server and the client
ii samba-libs:armhf 2:4.2.10+dfsg-0+deb8u3 armhf Samba core libraries
ii samba-tools 2:3.6.6-6+deb7u10 armhf Samba testing utilities
Zitat von
BetterWorld
systemctl -a | grep -E 'smb|samba'
Am Rande: Es gibt sehr wohl noch init Scripte.
Man kann ein herkömmliches Init-Script schreiben,
und mit systemctl start|enable someInit.script das Ding einschalten/mit starten lassen beim nächsten System(d)start.
Das ist, wie immer, der Kompatibilität geschuldet.
Man sollte es dennoch nicht (mehr) machen.
Lieber gleich richtiges Servicefile schreiben.
Code:
systemctl -a | grep -E 'smb|samba'
samba.service loaded active exited LSB: start Samba daemons (nmbd and smbd)
Lesezeichen