LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Samba Failed To start (https://www.linuxquestions.org/questions/linux-software-2/samba-failed-to-start-4175589606/)

kingcatdaan 09-17-2016 02:41 AM

Samba Failed To start
 
i have trouble with samba i tried to config it and then sudo service smbd start
and then i get this its Debian GNU/Linux 8.5 (jessie)

here is the error log when i try to start it i think i messed up the config it may be cut off because i copied it from an ssh terminal Putty

Sep 17 02:29:19 anna samba[7068]: [2016/09/17 02:29:19.248716, 0] ../lib/util/b
Sep 17 02:29:19 anna samba[7068]: STATUS=daemon failed to start: Samba detecte
Sep 17 02:30:09 anna sudo[7072]: root : TTY=pts/0 ; PWD=/etc/proftpd ; USER=
Sep 17 02:30:09 anna sudo[7072]: pam_unix(sudo:session): session opened for user
Sep 17 02:30:10 anna systemd[1]: Starting LSB: start Samba SMB/CIFS daemon (smbd
-- Subject: Unit smbd.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit smbd.service has begun starting up.
Sep 17 02:30:13 anna smbd[7096]: Starting SMB/CIFS daemon: smbd failed!
Sep 17 02:30:13 anna systemd[1]: smbd.service: Control process exited, code=exit
Sep 17 02:30:13 anna systemd[1]: Failed to start LSB: start Samba SMB/CIFS daemo
-- Subject: Unit smbd.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit smbd.service has failed.
--
-- The result is failed.
Sep 17 02:30:13 anna systemd[1]: smbd.service: Unit entered failed state.
Sep 17 02:30:13 anna systemd[1]: smbd.service: Failed with result 'exit-code'.
Sep 17 02:30:13 anna sudo[7072]: pam_unix(sudo:session): session closed for user

Doug G 09-17-2016 07:47 PM

In Fedora anyway, the samba service name is smb, not smbd.

frankbell 09-17-2016 08:40 PM

(smbd is the Samba server daemon.)

I'm not sure this has a bearing, but, in Debian, sudo is not enabled by default. Unless you have edited your sudoers file to enable sudo, Debian expects you to use su and enter the root password so as to perform administrative tasks. Attempting to perform root functions with sudo with otherwise fail.

The sudo fetish is unique to Ubuntu and its derivatives.

Doug G 09-17-2016 10:52 PM

Quote:

(smbd is the Samba server daemon.)
Yes, but the unit name is smb in redhat land and you use just 'smb' (or smb.service) to the service and/or systemctl commands to control the samba daemon, like
Quote:

service smb start
systemctl start smb.service

frankbell 09-18-2016 09:33 PM

It might have been useful had you mentioned you were referring to SystemD in your post.

Tell me, when the Samba server daemon is running and you execute the command

Code:

ps -A | grep smb
what is returned?


All times are GMT -5. The time now is 10:49 AM.