7
submitted 2 years ago* (last edited 2 years ago) by Sunny@slrpnk.net to c/selfhosted@lemmy.world

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
[-] avidamoeba@lemmy.ca 4 points 2 years ago

Sounds like a KDE thing where it doesn't remember your credentials/doesn't want to automatically provide them to the connector. You could take over the fs mounting and do it via systems or some other means if there's no way for KDE to do it.

[-] Sunny@slrpnk.net 1 points 2 years ago

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 2 years ago

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 2 years ago

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 2 years ago

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

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

Selfhosted

61877 readers
563 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:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

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

Questions? DM the mods!

founded 3 years ago
MODERATORS