如何輕鬆使用 box 網路硬碟服務 - Linux

By George
at 2012-04-16T13:15
at 2012-04-16T13:15
Table of Contents
box 網路硬碟
https://www.box.com
是個相當大方的網路硬碟,個人使用者有 50 GB 的容量,比 dropbox 2 GB 大方多了。
但是在 Linux 底下如何使用似乎比較少人提到,以下筆者將根據
http://www.linuxforum.com/content/
157-Mount-your-box-net-%28box-com%29-account-in-linux
內容及個人經驗撰寫如何使用此網路硬碟,我所使用的 Linux 為 Debian Linux。
各位鄉民若不是使用 Debian Linux 的請自行依據自己環境修改:
0. 安裝必備軟體:
apt-get install davfs2
1. 在 /etc/fstab 底下加上下面這行:
https://www.box.com/dav /box davfs rw,user,noauto 0 0
2. 在 /etc/davfs2/secrets 檔案中增加以下這行:
https://www.box.com/dav [email protected] password
其中的 [email protected] 為各位的 box 帳號
passwd 則為登入密碼
3. 在 /etc/davfs2/davfs2.conf 將
# use_locks 1
改成
use_locks 0
4. 在 / 建 box 目錄
mkdir /box
根據我所找到網頁的作法,這樣就可以使用 root 權限來掛載 /box 了,指令如下:
# mount /box
不過這種作法有個問題,第一個是 /box 目錄之 owner 為 root,一般使用者無法存
資料,第二個是要掛載目錄得要 root 權限才行。因此筆者加了以下流程讓各位可以
使用一般使用者來掛載、存取 /box 目錄
5. 請將 /usr/sbin/mount.davfs 檔案加上 uid 權限:
# chmod u+s /usr/sbin/mount.davfs
6. 假設你平常使用的帳號為 john,請將 john 加入 /etc/group 中 davfs2 群組,
加入後 /etc/group 中 davfs2 之狀態如下所示:
davfs2:x:130:john
加上 5、6 步驟後即可使用 john 來掛載 /box 目錄,並使用 john 權限存取資料了。
恭喜,現在你有 50 GB 的免費網路硬碟可以使用,而且是在 linux 環境下操作。
--
#1FVFsJFI (Gossiping) □ [問卦] 有木有南交大的八卦?
→ Kim0716:木木木木木木木木木木木木木木木木木木木木木木木 很潮嗎 04/05 10:05
推 XESET: ||||||||||||||||||||||| 04/05 10:06
推 misstoomuch:||||||||||||||||||||| 04/05 10:08
噓 a78914124:我也是懶覺大 04/05 10:08
→ hsiawenc: 發黴 04/05 10:10
--
https://www.box.com
是個相當大方的網路硬碟,個人使用者有 50 GB 的容量,比 dropbox 2 GB 大方多了。
但是在 Linux 底下如何使用似乎比較少人提到,以下筆者將根據
http://www.linuxforum.com/content/
157-Mount-your-box-net-%28box-com%29-account-in-linux
內容及個人經驗撰寫如何使用此網路硬碟,我所使用的 Linux 為 Debian Linux。
各位鄉民若不是使用 Debian Linux 的請自行依據自己環境修改:
0. 安裝必備軟體:
apt-get install davfs2
1. 在 /etc/fstab 底下加上下面這行:
https://www.box.com/dav /box davfs rw,user,noauto 0 0
2. 在 /etc/davfs2/secrets 檔案中增加以下這行:
https://www.box.com/dav [email protected] password
其中的 [email protected] 為各位的 box 帳號
passwd 則為登入密碼
3. 在 /etc/davfs2/davfs2.conf 將
# use_locks 1
改成
use_locks 0
4. 在 / 建 box 目錄
mkdir /box
根據我所找到網頁的作法,這樣就可以使用 root 權限來掛載 /box 了,指令如下:
# mount /box
不過這種作法有個問題,第一個是 /box 目錄之 owner 為 root,一般使用者無法存
資料,第二個是要掛載目錄得要 root 權限才行。因此筆者加了以下流程讓各位可以
使用一般使用者來掛載、存取 /box 目錄
5. 請將 /usr/sbin/mount.davfs 檔案加上 uid 權限:
# chmod u+s /usr/sbin/mount.davfs
6. 假設你平常使用的帳號為 john,請將 john 加入 /etc/group 中 davfs2 群組,
加入後 /etc/group 中 davfs2 之狀態如下所示:
davfs2:x:130:john
加上 5、6 步驟後即可使用 john 來掛載 /box 目錄,並使用 john 權限存取資料了。
恭喜,現在你有 50 GB 的免費網路硬碟可以使用,而且是在 linux 環境下操作。
--
#1FVFsJFI (Gossiping) □ [問卦] 有木有南交大的八卦?
→ Kim0716:木木木木木木木木木木木木木木木木木木木木木木木 很潮嗎 04/05 10:05
推 XESET: ||||||||||||||||||||||| 04/05 10:06
推 misstoomuch:||||||||||||||||||||| 04/05 10:08
噓 a78914124:我也是懶覺大 04/05 10:08
→ hsiawenc: 發黴 04/05 10:10
--
Tags:
Linux
All Comments

By Delia
at 2012-04-19T01:10
at 2012-04-19T01:10

By David
at 2012-04-22T07:27
at 2012-04-22T07:27

By Sandy
at 2012-04-22T16:05
at 2012-04-22T16:05

By Kelly
at 2012-04-22T19:52
at 2012-04-22T19:52

By Charlotte
at 2012-04-26T15:40
at 2012-04-26T15:40

By Olivia
at 2012-04-30T13:57
at 2012-04-30T13:57

By Jack
at 2012-05-04T05:59
at 2012-05-04T05:59

By Liam
at 2012-05-08T04:52
at 2012-05-08T04:52

By Charlotte
at 2012-05-12T05:56
at 2012-05-12T05:56

By Robert
at 2012-05-16T03:09
at 2012-05-16T03:09

By Leila
at 2012-05-17T08:37
at 2012-05-17T08:37

By Agatha
at 2012-05-18T08:28
at 2012-05-18T08:28
Related Posts
ubuntu server 如何 免帳號/密碼 登入

By William
at 2012-04-15T09:54
at 2012-04-15T09:54
唉 電腦回不去了嗎? (fedora 16)

By Kyle
at 2012-04-15T01:24
at 2012-04-15T01:24
唉 電腦回不去了嗎? (fedora 16)

By Rae
at 2012-04-14T21:21
at 2012-04-14T21:21
中文輸入法

By Leila
at 2012-04-14T20:18
at 2012-04-14T20:18
唉 電腦回不去了嗎? (fedora 16)

By Gilbert
at 2012-04-14T17:59
at 2012-04-14T17:59