I'm newbie in linux. Installed latest Debian Desktop some days ago. Everything is ok but Samba doesn't work for me.
Installed samba via apt-get install samba-common (no errors).
If I tried apt-get install samba, I get error:
Then I edited /etc/samba/smb.conf and added:root@Debian:/home/debian# apt-get install samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
bind9 bind9utils ctdb ldb-tools smbldap-tools winbind ufw
The following NEW packages will be installed:
samba
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/933 kB of archives.
After this operation, 11.2 MB of additional disk space will be used.
Selecting previously unselected package samba.
(Reading database ... 145358 files and directories currently installed.)
Preparing to unpack .../samba_2%3a4.5.12+dfsg-2+deb9u2_amd64.deb ...
Unpacking samba (2:4.5.12+dfsg-2+deb9u2) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for systemd (232-25+deb9u3) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up samba (2:4.5.12+dfsg-2+deb9u2) ...
Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory
Job for smbd.service failed because the control process exited with error code.
See "systemctl status smbd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript smbd, action "start" failed.
● smbd.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2018-07-02 17:51:45 CEST; 9ms ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 20080 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=exited, status=1/FAILURE)
Main PID: 20080 (code=exited, status=1/FAILURE)
Jul 02 17:51:44 Debian systemd[1]: Starting Samba SMB Daemon...
Jul 02 17:51:45 Debian systemd[1]: smbd.service: Main process exited, code=exited, status=1/FAILURE
Jul 02 17:51:45 Debian systemd[1]: Failed to start Samba SMB Daemon.
Jul 02 17:51:45 Debian systemd[1]: smbd.service: Unit entered failed state.
Jul 02 17:51:45 Debian systemd[1]: smbd.service: Failed with result 'exit-code'.
dpkg: error processing package samba (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Errors were encountered while processing:
samba
E: Sub-process /usr/bin/dpkg returned an error code (1)
If I trying to access shared folder computer shows me error about connecting problems (tried in WIN and MAC). I can ping debian without any problems.[test]
Comment = test samba
Read Only = no
Locking = no
Browseable = yes
Writeable = yes
Guest = ok
Path = /home/debian/multimedia/
Can anybody help me?
All I want is to access shared folder from other computers.
Thank you.
Used this tutorial:
https://www.howtoforge.com/tutorial/deb ... ba-server/
testparm /etc/samba/smb.conf
root@Debian:/home/debian# testparm /etc/samba/smb.conf
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "syslog" option is deprecated
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
Processing section "[debian]"
set_variable_helper(no ): value is not boolean!
Error loading services.