回文章列表
作者Adama.bbs@ptt.cc (So Say We All.) 看板: linux
標題[問題] /dev/下的裝置讀寫權限
時間批踢踢實業 (2008/02/29 Fri 11:34:35)
OS: Fedora 8 i386
想請問一個問題,/dev/下的裝置檔,如何在開機時讓它自動變更權限呢?

細節是,我想啟動我的webcam,我裝好module並載入後,會產生 /dev/video0 這個檔
它的權限是  crw-rw---- 1 root root 81, 0 2008-02-29 10:38 /dev/video0
於是我想用webcam時 (v4l or skype) 只有root才能用,一般user會permission denied
手動去改成 crw-rw-rw 就可以讓一般使用者用了,但每次module重新載入它又會恢復
所以有什麼辦法讓 module 在產生裝置時變動它的權限呢?
是在modprobe.conf裡加什麼options嗎?
畢竟在 rc.local裡加 chmod看起來有點笨耶... :p
謝謝各位

--
The 4400     ~ A Place In Time ~              [Amanda Abizaid]

So long ago, another life, I can feel your heartbeat.
It's not a dream, remember us. I can see it in your eyes.
We'll find our place in time, a place in time beyond the sun.
We'll find our place in time, a place in time to call our own.

--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 72.253.60.41
※ 編輯: Adama           來自: 72.253.60.41         (02/29 11:34)
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻