this post was submitted on 25 Mar 2024
7 points (76.9% liked)

Selfhosted

40347 readers
366 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Hiya, Edit: Solved by tweaking the ACL in Tailscale, more info on that here; https://tailscale.com/kb/1193/tailscale-ssh

I am accessing my Samba folder from my remote server, over Tailscale. However, this means, each time I close the lid of my laptop or reboot. I need to re-authenticate this, I don't know why. Is there a way around this? Or a better solution?

I've added the share(folder) to "places" via Dolphin, but in order to actually be able to access the share i need to go into the terminal and enter "sftp myserver:port". After that the share will work as normal, until next boot.

I prefer accessing my files via Tailscale, it's very convenient and secure in most cases. I am storing my notes for Obsidian and other frequently used files via this share. The server is running Unraid, my laptop is running an Immutable distro called Aurora (part of Bluefin Project).

Any help appricated!

you are viewing a single comment's thread
view the rest of the comments
[–] Sunny@slrpnk.net 1 points 8 months ago (1 children)

Would you be able to explain in a little bit more detail? I'm not too familiar with Linux yet to know my way around these things so easily hehe.. Thanks!

[–] avidamoeba@lemmy.ca 4 points 8 months ago (1 children)

Dolphin is your file explorer program. That's part of the KDE desktop app collection. It allows you to connect to a samba share. In the background it mounts the samba share to a your local filesystem. The mount point is a location, it looks like a folder but it's actually a view into the samba share. This mounting is done by the kernel using a filesystem driver which talks to the samba server. In order for the driver to do this, it needs your samba credentials. Dolphin presents some UI for you to input them and it passes them to the driver. If it asks for them every time, it means that it doesn't remember them, or if it depends on something else to remember them, it's not working. There might be a way in KDE to tell it to remember the credentials. I'm not a KDE user or expert.

If you can't do that, you could do what Dolphin does by yourself. You could tell the driver the same information Dolphin does but you can also store the credentials in a file and have it read those from there. This can be done in multiple ways. Via fstab, systemd, command line, and possibly many more.

[–] Sunny@slrpnk.net 1 points 8 months ago (1 children)

I greatly appreciate your response, I'll play around with what you've mentioned tmr when I'm back on the laptop. I'm sure I'll sort this out based on the info u gave me, thanks 🌻

[–] avidamoeba@lemmy.ca 2 points 8 months ago

Try to get Dolphin/KDE to remember the credentials. I know GNOME can do it so I assume it's possible in KDE.