Using mounted nas drive for data docker apps

Piet200

New Member
Joined
Jul 31, 2025
Messages
4
Reaction score
0
Credits
41
I have a raspberry pi (pi os x64) and have a mount point to a nas drive.

I have added the following line to my fstab file to connect to the drive:
\\<ip-address>\nas-share /mnt/nas cifs credentials=/etc/nas-credentials,iocharset=utf8,uid=1000,gid=1000,file_mode=0770,dir_mode=0770,nofail 0

reading and writing seems to be fine from the nas as well as from the rpi. but I have issues redirecting a data folder to this location. It might be related to the lack of linux permissions on the nas drive mount. is there a way I can use the raspberry linux permissions on the mounted drive?
 


Yes, you can manage Linux permissions for a mounted drive on a Raspberry Pi by using the uid and gid mount options or by changing the ownership of the mounted drive with chown and the permissions with chmod commands.
That's according to AI.

WORKING WITH FILE PERMISSIONS ON YOUR RASPBERRY PI


@VP9KS I think is running Raspberry Pi so he may be able to explain more.
 


Follow Linux.org

Members online


Top