Synology cifs mount 不允許執行

Synology cifs mount 不允許執行

我有一台 Synology NAS。我能夠在 Linux 上正常安裝 cifs 目錄(嘗試了 centos 6 和 Ubuntu 12)。我可以做任何事情,但我不能執行任何事情。如果我嘗試按 Tab 鍵完成,它不會顯示任何可執行文件,只顯示目錄。如果我實際輸入可執行文件,即使我以 root 身分嘗試它,它也會顯示「權限被拒絕」。

我的 fstab 看起來像這樣:

//172.22.1.3/public/data /data cifs user,uid=501,rw,suid,credentials=/etc/credentials 0 0 auto

我在linux方面做錯了什麼嗎?或者這是 Synology 或 NAS 的一般問題嗎?

謝謝。

答案1

這是一個非常古老的問題,但我發現它試圖解決相同的問題。我想我已經找到了解決方案(至少對我有用)。

我發現如果刪除“用戶”選項,問題就會消失。或者,如果我使用“user,exec”代替“user”。

我終於在手冊頁的一個版本的底部找到了:

user   Allow an ordinary user to mount the filesystem.  The name of the
          mounting user is written to the mtab file  (or  to  the  private
          libmount  file  in /run/mount on systems without a regular mtab)
          so that this same user can unmount the filesystem  again.   This
          option  implies  the  options  noexec, nosuid, and nodev (unless
          overridden  by  subsequent  options,  as  in  the  option   line
          user,exec,dev,suid).

相關內容