Re: mount -oloop 問題? - Linux

Table of Contents


ps:原題目是要求不用root權限再console下掛載iso檔

其實前面很多人都有提他的作法了

剛剛看到 acetoneiso2 其實是調用 fuseiso 來進行 iso檔的掛載

所以就做了小小嚐試,事實證明可以用fuseiso 進行console 下的掛載

fuseiso 的用法 :
Version: 20070708
Usage: fuseiso [-n] [-p] [-c <iocharset>] [-h] <isofs_image_file>
<mount_point> [<FUSE library options>]
Where options are:
-n -- do NOT maintain file $HOME/.mtab.fuseiso
-p -- maintain mount point;
create it if it does not exists and delete it on
exit
-c <iocharset> -- specify iocharset for Joliet filesystem
-h -- print this screen

Common FUSE library options are:
-f -- run in foreground, do not daemonize
-d -- run in foreground and print debug information
-s -- run single-threaded

Please consult with FUSE ducumentation for more information



如以上所敘述,如果我要掛載 1.iso 這個檔案到isomount這資料夾,可以這樣做

fuseiso -p 1.iso isomount/

其中isomount是要掛載的資料夾

-p選項代表若該資料夾不存在則建立,並再離開時刪除

用上面的指令可以安全掛載iso成功而不用動用root

當要umount這個iso時,用以下方法

fusermount -u isomount/

※ 引述《[email protected] (goodman)》之銘言:
: 感謝各位提供的寶貴意見。但這仍然無法解決我的問題。
: 請問我想看 .iso 檔案的內容,有沒有不要牽扯到管理員的方案?例如像 winrar
: 就可以,但是我是要在 linux 的 console 底下看的。
: ==> 在 [email protected] (可以愛你嗎) 的文章中提到:
: > 基本上...
: > 讓user來mount是一個很危險的動作吧...
: > 只要他弄一個有root權限 setuid的程式在他的filesystem裡面
: > mount近來,他就直接變成root了
: > 你在fstab的option裡面最好加上
: > uid=xxx,gid=xxx
: > 一些沒有特殊權限的id...
: > 或是用umask把setuid擋掉...

--

All Comments