this post was submitted on 28 May 2025
1941 points (98.6% liked)

memes

15019 readers
3989 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to [email protected]

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/AdsNo advertisements or spam. This is an instance rule and the only way to live.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 2 days ago* (last edited 2 days ago) (1 children)

This is a good argument for shipping an empty config file.

Your point stands, but this also isn't completely unintuitive. There is pattern there: you installed samba and the config is in /etc/samba/. System level installs will almost always install their config in /etc/ and the sub directory will typically match the name somewhat.

There is likely a general thought that if you're going to administer a samba server, you'll also be comfortable with conventions and man pages. Although, funnily enough, in the particular case of samba, man smb.conf doesn't show the path lol

[–] [email protected] 1 points 2 days ago (1 children)

That's the thing though, when you install Samba it does create an empty config file at \etc\samba\smb.conf, or at least I've never created one

[–] [email protected] 2 points 2 days ago* (last edited 2 days ago)

I see why it does this now. Debian does

CONFIG=/etc/samba/smb.conf
# stuff
ucf --three-way --debconf-ok /usr/share/samba/smb.conf "$CONFIG"

in the postinit inside the .deb file to create the /etc/samba/smb.conf file. They do it this way so they don't nuke an already created file. I take back that they should be shipping an empty file, this way is better, but it also means you'll never be able to query it without some changes to the packaging tools.

The man page should mention the path though that's a bit lame.