this post was submitted on 26 Nov 2023
1 points (100.0% liked)

Portainer

28 readers
0 users here now

Portainer Community Edition is a lightweight service delivery platform for containerized applications that can be used to manage Docker, Swarm, Kubernetes and ACI environments.

founded 1 year ago
MODERATORS
 

Newbie here.

I have Portainer (CS) v2 up and running.

I set up a Volume to use CIFS to my NAS

I set a Container to map the path in the container to Volume


I can read the files in the CIFS Share, I can not write to them.


I assume this is permitions. The usrer ID logging into the NAS has the permitions,

Is it a

  • PUID
  • PGID

issue? if so, what should I use, or how do I find the User ID / Group ID for the CIF Share?

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 11 months ago

I have set all the volumes to 'public' and the container can now write.

Is this the right process?

[–] [email protected] 1 points 11 months ago (1 children)

I hate Samba.

I chmod 2775 my shared folder And set guest account = shareowner

Then in your share:

public = yes # or guest ok = yes
writeable = yes # or writable = yes or read only = no
create mask = 0660
directory mask = 0770
force user = shareowner

Where shareowner is the user that owns that share, and all subs. Shareowner is in a samba user with a PW.


Login as shareowner, and you should be okay
[–] [email protected] 1 points 11 months ago