this post was submitted on 14 Feb 2025
10 points (100.0% liked)

linux4noobs

1633 readers
6 users here now

linux4noobs


Noob Friendly, Expert Enabling

Whether you're a seasoned pro or the noobiest of noobs, you've found the right place for Linux support and information. With a dedication to supporting free and open source software, this community aims to ensure Linux fits your needs and works for you. From troubleshooting to tutorials, practical tips, news and more, all aspects of Linux are warmly welcomed. Join a community of like-minded enthusiasts and professionals driving Linux's ongoing evolution.


Seeking Support?

Community Rules

founded 2 years ago
MODERATORS
 

I've installed Samba on my Debian 12 home server but can't get it to start. I ran:

sudo systemctl start smbd
sudo systemctl status smbd

Here is the output:

   Duration: 7h 25min 18.079s
  Condition: start condition failed at Fri 2025-02-14 17:13:11 EST; 14min ago
       Docs: man:smbd(8)
             man:samba(7)
             man:smb.conf(5)
    Process: 598599 ExecCondition=/usr/share/samba/is-configured smb (code=exited, status=1/FAILURE)
        CPU: 1ms
Feb 14 17:13:11 harvee systemd[1]: Starting smbd.service - Samba SMB Daemon...
Feb 14 17:13:11 harvee systemd[1]: smbd.service: Skipped due to 'exec-condition'.
Feb 14 17:13:11 harvee systemd[1]: Condition check resulted in smbd.service - Samba SMB Daemon being skipped.

The install also doesn't seem to have created a samba configuration directory in /etc or a log in /var/log

I'm stumped. Googling turns up a lot of people accidentally checking the status of 'samba' instead of 'smbd', but I'm not finding much on this issue. What am I doing wrong?

you are viewing a single comment's thread
view the rest of the comments
[–] watson387@sopuli.xyz 1 points 1 week ago (5 children)

I have samba running on Debian 12 at home but it's been a while since I configured it. I'll look it over when I get a chance to jog my memory, but if I remember correctly you're missing a package.

[–] SnootBoop@lemm.ee 2 points 1 week ago (4 children)

I'll appreciate it if you have a chance to check. I ran sudo apt update --fix-missing and didn't see anything.

[–] watson387@sopuli.xyz 2 points 1 week ago (3 children)

cifs-utils was the package I was thinking of. This article is more or less the same as what I did to get it running.

[–] SnootBoop@lemm.ee 2 points 1 week ago (1 children)

Thank you. Removed the samba package and installed following the instructions. It still didn't create a config or a log file. I'll keep troubleshooting.

[–] dasenboy@lemm.ee 2 points 1 week ago (1 children)

Try creating your own smb.conf file from scratch using this Samba wiki page as reference, I believe Debian doesn't create one for you. https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server

[–] SnootBoop@lemm.ee 1 points 1 week ago

Thank you, creating my own config file from scratch worked. Not sure if I'm remembering wrong. For some reason I thought in the past it was created with the install.

load more comments (1 replies)
load more comments (1 replies)
load more comments (1 replies)