mount partition 的時候,mount folder 的 ower 依據 partition 的 filesystem 而有不同的決定方法。
像沒有 owner attr 的 filesystem, 像 fat。
就可以在 mount 的時候指定 uid, gid
如果是本來就有 ower attr 的 filesystem, 像 ext4
就是由 partition 的 root attrib 決定的。
像 mount ext4 進來後,到 mount folder 的 root 去看 (ls -al)
那個 . 的 owner 是誰,就決定 mount folder 的 owner 是誰。
沒有留言:
張貼留言