# Best place for samba credentials for fstab in 2025?

**URL:** <https://forum.endeavouros.com/t/best-place-for-samba-credentials-for-fstab-in-2025/76162>\
**Category:** Applications\
**Created:** [November 4, 2025, 1:02pm UTC](https://forum.endeavouros.com/t/best-place-for-samba-credentials-for-fstab-in-2025/76162 "2025-11-04T13:02:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![emk2203](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/emk2203/32/42832_2.png) [@emk2203](https://forum.endeavouros.com/u/emk2203)\
**Post date:** [November 4, 2025, 1:02pm UTC](https://forum.endeavouros.com/t/best-place-for-samba-credentials-for-fstab-in-2025/76162/1 "2025-11-04T13:02:31Z")

</div>

I think I have seen somewhere in a post here that if you have system-wide credentials for a samba filesystem mounted via `/etc/fstab`, there’s now somewhere in `/etc` a designated `... .d` directory (you might have to create it) where you can put stuff like this, and samba automatically loads from there without the need for giving a path, just the filename is enough.

Unfortunately, I cannot find this post anymore. Could someone confirm this and point me to some more info? The docs for samba are a mess, their website has a solid 2000s feel and everything you find in the net is stale information for ages-old versions.

So, I appeal to the shared wisdom of the EndeavourOS users: Can you help me here?

---

<div class="post-metadata">

**Author:** ![PeterRies](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/peterries/32/119956_2.png) [@PeterRies](https://forum.endeavouros.com/u/PeterRies)\
**Post date:** [November 4, 2025, 1:23pm UTC](https://forum.endeavouros.com/t/best-place-for-samba-credentials-for-fstab-in-2025/76162/2 "2025-11-04T13:23:16Z")

</div>

you mean this: [https://wiki.archlinux.org/title/Samba#Storing\_share\_passwords](https://wiki.archlinux.org/title/Samba#Storing_share_passwords) ?

---

<div class="post-metadata">

**Author:** ![emk2203](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/emk2203/32/42832_2.png) [@emk2203](https://forum.endeavouros.com/u/emk2203)\
**Post date:** [November 4, 2025, 1:37pm UTC](https://forum.endeavouros.com/t/best-place-for-samba-credentials-for-fstab-in-2025/76162/3 "2025-11-04T13:37:13Z")

</div>

No. I read this (spent a good part of two hours for some research), and they still reference the full, absolute path:

> For the mount command replace `username=myuser,password=mypass` with `credentials=/etc/samba/credentials/share`.

I am not hung up on the omission of the path _per se_, but the existence of a `... .d` directory for samba stuff, similar to `/etc/pacman.d` or others, intrigues me. This is what I am after.

---

<div class="post-metadata">

**Author:** ![keescase](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/keescase/32/114900_2.png) [@keescase](https://forum.endeavouros.com/u/keescase)\
**Post date:** [November 4, 2025, 2:09pm UTC](https://forum.endeavouros.com/t/best-place-for-samba-credentials-for-fstab-in-2025/76162/4 "2025-11-04T14:09:58Z")

</div>

Don’t know if you are looking for [this](https://forum.endeavouros.com/t/samba-server-from-scratch/33322) exactly, but I think it sure comes close.
