--
Cheng(誠)
Fedora Project Contributor -- Ambassador
https://fedoraproject.org/wiki/User:Freakrobot
_______________________________________________
My Page: http://freakrobot.blogbus.com/
>
> Linux下/dev下的设备文件都要是root用户才能访问。那如果我要访问这些文件有没什么办法可以让非root用户也访问的,除了改文件访问权限啊,那个不可移植的。谢谢~
>
>
你可以通过修改udev的规则,来改变/dev/下面设备文件的属主。
--
Best Regards,
Qin Bo
_______________________________________________
Linux 内核开发中文邮件列表
Linux-...@zh-kernel.org
http://zh-kernel.org/mailman/listinfo/linux-kernel
Linux 内核开发中文社区: http://zh-kernel.org
2011/1/20 Qin Bo <kinb...@gmail.com>
> 在 2011年1月19日 下午6:27,cheng chen <freak...@acm.org>写道:
>
>
>> Linux下/dev下的设备文件都要是root用户才能访问。那如果我要访问这些文件有没什么办法可以让非root用户也访问的,除了改文件访问权限啊,那个不可移植的。谢谢~
>>
>>
> 你可以通过修改udev的规则,来改变/dev/下面设备文件的属主。
>
>
> --
> Best Regards,
> Qin Bo
>
>
2011/1/21 cheng chen <freak...@acm.org>
> _______________________________________________
> Linux 内核开发中文邮件列表
> Linux-...@zh-kernel.org
> http://zh-kernel.org/mailman/listinfo/linux-kernel
> Linux 内核开发中文社区: http://zh-kernel.org
>
--
~Alvin
normally the user must be in that group, for example /dev/ttySx and
the group has the r or w. non owner,group has no any permission.
yao
一般桌面使用的用户要将自己添加到 video, audio 组里头,如果要刻录,还要添加到 cdrom 组。udev
会设置好组权限,只要你在相应的组,就可以打开。
--
~Alvin