Re: mount -oloop 問題?

看板Linux作者 (夜影)時間17年前 (2009/03/07 01:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串15/15 (看更多)
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/ ※ 引述《coscell.bbs@bbs.cis.nctu.edu.tw (goodman)》之銘言: : 感謝各位提供的寶貴意見。但這仍然無法解決我的問題。 : 請問我想看 .iso 檔案的內容,有沒有不要牽扯到管理員的方案?例如像 winrar : 就可以,但是我是要在 linux 的 console 底下看的。 : ==> 在 adolf.bbs@cd.twbbs.org (可以愛你嗎) 的文章中提到: : > 基本上... : > 讓user來mount是一個很危險的動作吧... : > 只要他弄一個有root權限 setuid的程式在他的filesystem裡面 : > mount近來,他就直接變成root了 : > 你在fstab的option裡面最好加上 : > uid=xxx,gid=xxx : > 一些沒有特殊權限的id... : > 或是用umask把setuid擋掉... -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.44.202.208 ※ 編輯: coldnew 來自: 114.44.202.208 (03/07 01:33)
文章代碼(AID): #19iLuwUt (Linux)
討論串 (同標題文章)
文章代碼(AID): #19iLuwUt (Linux)