governa, to ubuntu
@governa@fosstodon.org avatar

How to Enable and Use Nautilus #Samba / #CIFS / Windows File Sharing Feature on #Ubuntu #Linux 24.04 LTS :ubuntu:

https://linuxhint.com/how-to-enable-and-use-nautilus-samba-cifs-windows-file-sharing-feature-on-ubuntu-24-04-lts/

irfan, to Kubernetes

/ Q: I've been having an issue all this while I haven't quite been able to tackle. How do I properly mount a // share in a container on Kubernetes?

I definitely don't want a method that does any "pass through" outside of the container such as mounting said share on the Kubernetes node then passing it to the container, since that seems quite hacky and the deployment/pod could easily be reassigned to a different node.

Is it possible, surely it is?

irfan,

EUREKA I FOUND THE SOLUTION POGGERS WOGGERS!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I totally forgot my cluster runs on / with , I was too focused on the OS the container runs on.

The share could be accessed (ls-ed) directly on the worker node:

sudo ls -alZ /var/lib/kubelet/plugins/kubernetes.io/csi/smb.csi.k8s.io/{volume}/globalmount

-but not on the container itself. The fix is, the worker nodes (with SELinux) needs the boolean, virt_use_samba to be enabled. On the worker node, check if it is indeed disabled:

sudo semanage boolean --list | grep virt_use_samba

If it shows that it's off (disabled), simply enable it and Bob's your mf-in uncle:

sudo setsebool -P virt_use_samba 1

Let's fuckin go boiz

🔗 https://github.com/kubernetes-csi/csi-driver-smb/issues/132

rockylinux,
@rockylinux@fosstodon.org avatar

@irfan Glad you worked it out! The high default level of security (and SELinux in particular) can add some irritating hindrances sometimes, but it’s worth it 🔒

neustradamus, to debian
jbowen, to random
@jbowen@mast.hpc.social avatar

If there are any CIFS/SMB experts floating around, does it seem accurate or absurd that deleting a file in a folder tree has a different effect on the timestamps of the folders "above" it than deleting a folder?

If dir1/dir2/dir3/dir4/hello.txt is the structure, dir1 is "above" dir3.

tux, to askfedi_de German

Weiter geht es mit for Tuxi. Ich habe in eine Volume erstellt, das per eine Freigabe meines NAS einbindet.
Diese Freigabe wird im Container auch eingebunden. Das Problem ist, dass ich absolut nichts in diese Freigabe schreiben kann. Selbst ein chmod 777 im Container bringt nichts.
Ich suche mir echt den Wolf, finde aber absolut nichts, was zu einer Lösung führen könnte.
Was muss ich machen, dass ich im Container in das CIFS-Volume schreiben kann?
@askfedi_de

philipp,
@philipp@nrw.social avatar

@tux @askfedi_de ich hab noch nie mit portainer gearbeitet , liegt das Volumen jetzt IM Container, oder in der vm?

timbo,

@tux
Ich kann beim Containern nicht mitreden, aber Schreibzugriff in ist konfiguriert?

read only = no
create mask = 0600
directory mask = 0700

Eventuell versuchsweise noch "write list" setzen auf den User, der die Freigabe mountet...

@askfedi_de

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • khanakhh
  • mdbf
  • ethstaker
  • magazineikmin
  • GTA5RPClips
  • rosin
  • thenastyranch
  • Youngstown
  • InstantRegret
  • slotface
  • osvaldo12
  • kavyap
  • DreamBathrooms
  • JUstTest
  • Durango
  • everett
  • cisconetworking
  • normalnudes
  • tester
  • ngwrru68w68
  • cubers
  • modclub
  • tacticalgear
  • provamag3
  • Leos
  • anitta
  • lostlight
  • All magazines