PCDVD數位科技討論區

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)

隨風浮雲 2015-01-08 07:54 PM

如何變更 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 我有試過掛載硬碟是可以改權限,就是網芳掛載進來的無法改而已。

mount 2015-01-08 08:21 PM

O... :stupefy:

Fabio 2015-01-08 08:22 PM

http://pcdvd.com.tw/member.php?u=135314

mount大大表示XD

引用:
作者mount
O... :stupefy:


晚了一步XDD

ttqqww 2015-01-08 08:28 PM

引用:
作者mount
O... :stupefy:

:laugh:

有人想改你的權限

darkangel 2015-01-08 08:29 PM

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

chaotommy 2015-01-08 09:08 PM

引用:
作者mount
O... :stupefy:

:laugh: :laugh: :laugh:

chenyuan 2015-01-08 09:12 PM

引用:
作者mount
O... :stupefy:

泥……泥……泥……

又作了什麼事嗎? :confused:

關係好複雜喔~ :fear:

whales4 2015-01-08 09:30 PM

引用:
作者chenyuan
泥……泥……泥……

又作了什麼事嗎? :confused:

關係好複雜喔~ :fear:

沒想到老M也有這一天... :laugh: :laugh: :laugh: :laugh: :laugh:

mount 2015-01-08 09:52 PM

引用:
作者chenyuan
泥……泥……泥……

作了什麼事嗎? :confused:

關係好複雜喔~ :fear:

什麼叫"" :stupefy: , 算了, 樓主問正經事, 我只是看到"關鍵字"進來看看...
引用:
作者whales4
沒想到老M也有這一天... :laugh: :laugh: :laugh: :laugh: :laugh:

你倒是笑得很開心蛤~ :unbelief:

chenyuan 2015-01-08 09:57 PM

~
 
引用:
作者mount
什麼叫"又" :stupefy: , 算了, 樓主問正經事, 我只是看到"關鍵字"進來看看...


開開玩笑而已啦~大大請別放在心上啊~ :ase


所有的時間均為GMT +8。 現在的時間是08:55 PM.

vBulletin Version 3.0.1
powered_by_vbulletin 2025。