Article 56KAV Need cifs mount to have specific uid:gid or permissions not root:root or 0755

Need cifs mount to have specific uid:gid or permissions not root:root or 0755

by
gkasica
from LinuxQuestions.org on (#56KAV)
Running a raspberry pi ver. 3 here:
Linux raspberrypi 5.4.51-v7+ #1327 SMP Thu Jul 23 10:58:46 BST 2020 armv7l GNU/Linux

Trying to map to a Windoes share with Everyone Permissions.

Heres my command line (Password XXX out)

# Mount windows share
#
mount.cifs -o username=XXX,password=XXXX //Laptop1/RxFiles2 /home/pi/goes/emwin uid=1000,gid=1000,forceuid,forcegid

I've tried with and without uid and gid and the forceuid and forcegid and still when it mounts from /etc/rc.local it looks like:

# cd /home/pi/goes
#ls -la
drwxrwxrwx 10 pi pi 4096 Aug 5 16:12 .
drwxr-xr-x 29 pi pi 4096 Aug 5 16:55 ..
drwxrwxrwx 3 pi pi 4096 Jul 31 05:52 '.\192.168.1.31 '
drwxr-xr-x 2 root root 0 May 5 16:29 emwin
drwxrwxrwx 5 pi pi 4096 Jul 25 07:58 goes16
drwxrwxrwx 3 pi pi 4096 Jul 25 08:01 goes17
drwxrwxrwx 3 pi pi 4096 Jul 30 08:15 home
drwxrwxrwx 27 pi pi 4096 Aug 5 15:03 nws
drwxrwxrwx 2 pi pi 4096 Jul 27 10:35 .stfolder
drwxrwxrwx 2 pi pi 4096 Jul 30 12:36 WxMessage

I cant get the permissions or gid and uid to allow the pi user to write to the share.

What am I missing??latest?d=yIl2AUoC8zA latest?i=UU2nSr8WPlQ:GGDMPLiDlTY:F7zBnMy latest?i=UU2nSr8WPlQ:GGDMPLiDlTY:V_sGLiP latest?d=qj6IDK7rITs latest?i=UU2nSr8WPlQ:GGDMPLiDlTY:gIN9vFwUU2nSr8WPlQ
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments