![]() |
PCDVD數位科技討論區
(https://www.pcdvd.com.tw/index.php)
- 七嘴八舌異言堂
(https://www.pcdvd.com.tw/forumdisplay.php?f=12)
- - 如何變更 mount 網芳資料夾的權限
(https://www.pcdvd.com.tw/showthread.php?t=1067680)
|
---|
如何變更 mount 網芳資料夾的權限
我在 /mnt 資料下新增一個 share 資料夾,此時可以用 chown 變更使用者及群組給user:user。
此資料夾再用 mount -t cifs -o password='' //10.10.10.10/share1 /mnt/share 掛載該網芳資料夾到該資料夾,用 ls -l 可以看到確實已掛載網芳資料夾到/mnt/share 下 。 但是share權限就變成 root:root ,我再用 chown user:user /mnt/share 變更該資料夾的權限,debian 不會出現任何錯誤詢息,但是 share 資料夾的權限,還是 root:root ,這是為什麼呢? PS 我有試過掛載硬碟是可以改權限,就是網芳掛載進來的無法改而已。 |
O... :stupefy:
|
|
引用:
:laugh: 有人想改你的權限 |
mount -t cifs -o password='' //10.10.10.10/share1 /mnt/share -o uid=user,gid=user
sorry 忘了 -o man mount http://linux.die.net/man/8/mount |
引用:
:laugh: :laugh: :laugh: |
引用:
泥……泥……泥…… 又作了什麼事嗎? :confused: 關係好複雜喔~ :fear: |
引用:
沒想到老M也有這一天... :laugh: :laugh: :laugh: :laugh: :laugh: |
引用:
什麼叫"又" :stupefy: , 算了, 樓主問正經事, 我只是看到"關鍵字"進來看看... 引用:
你倒是笑得很開心蛤~ :unbelief: |
~
引用:
開開玩笑而已啦~大大請別放在心上啊~ :ase |
所有的時間均為GMT +8。 現在的時間是08:55 PM. |
vBulletin Version 3.0.1
powered_by_vbulletin 2025。