CIFS(挂载网络共享)功能缺少关键参数uid和gid

aini6658】 在 https://github.com/istoreos/istoreos/issues/2498 发布:

Describe the bug

如题,因缺少此关键参数导致只能挂载为root所有,用root用户共享文件可不是啥好习惯。
仅需在/etc/init.d/cifs中的 mount_natshare() 里加上这两个参数即可。

/usr/bin/mount -t cifs -o "${uid}${gid}${smbverarg}username=$users,password=$pwd,iocharset=$iocharset,$agm" "//$server/$name" "$natpath"

OpenWrt version

2025062010

OpenWrt release

2025062010

OpenWrt target/subtarget

2025062010

Device

e52c

Image kind

Official downloaded image

Steps to reproduce

No response

Actual behaviour

No response

Expected behaviour

No response

Additional info

No response

Diffconfig


Terms

  • I am reporting an issue for OpenWrt, not an unsupported fork.