关于linuxmint下自动挂载分区的权限问题
来源:互联网 发布:软件需求十步走 编辑:程序博客网 时间:2024/06/05 16:28
在基于debian的linuxmint系统上,我门刚装好系统的时候,每次开机之后,打开nautilius,挂载分区的时候都会显示一个对话框,内容是:“Authentication is required to mount the device”。也即是说,每次打开我的电脑的硬盘分区的时候都会需要权限(即授权)。其实这个安全机制在这里并没有什么用对于大多数人来说。因为打开分区是我们经常做的事,而且经常输入管理员的密码是很麻烦的。那么怎么去掉这个权限控制呢?
进入/usr/share/polkit-1/actions目录里,里面就是用来设置各种权限的配置文件。找到一个名为org.freedesktop.udisks.policy的文件,右键点击它用管理员的身份打开,然后把(代码开头部分)下面的红色部分的字体全换成yes即可。编辑完成保存,无需重启即可生效。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
<policyconfig>
<vendor>The udisks Project</vendor>
<vendor_url>http://udisks.freedesktop.org/</vendor_url>
<icon_name>drive-removable-media</icon_name>
<action id="org.freedesktop.udisks.filesystem-mount">
<description>Mount a device</description>
<description xml:lang="da">Montér en enhed</description>
<description xml:lang="de">Ger?t einh?ngen</description>
<message>Authentication is required to mount the device</message>
<message xml:lang="da">Autorisering er p?kr?vet for at montere et fil system</message>
<message xml:lang="de">Zugriffsrechte werden ben?tigt um das Ger?t einzuh?ngen</message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
</action>
<action id="org.freedesktop.udisks.filesystem-mount-system-internal">
<description>Mount a system-internal device</description>
<description xml:lang="da">Montér en intern enhed</description>
<description xml:lang="de">Eingebautes Ger?t einh?ngen</description>
<message>Authentication is required to mount the device</message>
<message xml:lang="da">Autorisering er p?kr?vet for at montere et fil system</message>
<message xml:lang="de">Zugriffsrechte werden ben?tigt um das Ger?t einzuh?ngen</message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
</action>
如果你的系统是ubuntu系统的话,则打开文件/usr/share/polkit-1/actions/org.freedesktop.devicekit.disks.policy,修改下面的红色字体为yes,然后保存即可。
if you wannt to make your system to mounted the partition without authentication,you shou open their diretory and edit the polity file .just repleace the red-color words above with yes ,it will take effect without reboot.still any question ,plz send me email by bkdwei@163.com.
进入/usr/share/polkit-1/actions目录里,里面就是用来设置各种权限的配置文件。找到一个名为org.freedesktop.udisks.policy的文件,右键点击它用管理员的身份打开,然后把(代码开头部分)下面的红色部分的字体全换成yes即可。编辑完成保存,无需重启即可生效。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
<policyconfig>
<vendor>The udisks Project</vendor>
<vendor_url>http://udisks.freedesktop.org/</vendor_url>
<icon_name>drive-removable-media</icon_name>
<action id="org.freedesktop.udisks.filesystem-mount">
<description>Mount a device</description>
<description xml:lang="da">Montér en enhed</description>
<description xml:lang="de">Ger?t einh?ngen</description>
<message>Authentication is required to mount the device</message>
<message xml:lang="da">Autorisering er p?kr?vet for at montere et fil system</message>
<message xml:lang="de">Zugriffsrechte werden ben?tigt um das Ger?t einzuh?ngen</message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
</action>
<action id="org.freedesktop.udisks.filesystem-mount-system-internal">
<description>Mount a system-internal device</description>
<description xml:lang="da">Montér en intern enhed</description>
<description xml:lang="de">Eingebautes Ger?t einh?ngen</description>
<message>Authentication is required to mount the device</message>
<message xml:lang="da">Autorisering er p?kr?vet for at montere et fil system</message>
<message xml:lang="de">Zugriffsrechte werden ben?tigt um das Ger?t einzuh?ngen</message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
</action>
如果你的系统是ubuntu系统的话,则打开文件/usr/share/polkit-1/actions/org.freedesktop.devicekit.disks.policy,修改下面的红色字体为yes,然后保存即可。
- <action id="org.freedesktop.devicekit.disks.filesystem-mount-system-internal">
- <description>Mount a system-internal device</description>
- <description xml:lang="da">Montér en intern enhed</description>
- <description xml:lang="de">Eingebautes Ger?t einh?ngen</description>
- <message>Authentication is required to mount the device</message>
- <message xml:lang="da">Autorisering er p?kr?vet for at montere et fil system</message>
- <message xml:lang="de">Zugriffsrechte werden ben?tigt um das Ger?t einzuh?ngen</message>
- <defaults>
- <allow_any>no</allow_any>
- <allow_inactive>no</allow_inactive>
- <allow_active>auth_admin_keep</allow_active>
- </defaults>
- </action>
if you wannt to make your system to mounted the partition without authentication,you shou open their diretory and edit the polity file .just repleace the red-color words above with yes ,it will take effect without reboot.still any question ,plz send me email by bkdwei@163.com.
- 关于linuxmint下自动挂载分区的权限问题
- Fedora下自动挂载Windows分区的方法及权限问题
- Fedora下自动挂载Windows分区的方法及权限问题
- 关于Linux系统下的“分区”问题
- Linux开机自动挂载WINDOWS下的分区
- linux下各种分区的自动挂载和卸载.
- Ubuntu下自动挂载windows分区磁盘的方法
- ubuntu 自动挂载XP下的分区
- Ubuntu下开机自动挂载Windows的分区
- 关于 Ubuntu 自动挂载 Windows 分区
- 如何获取/dev/sdb下的所有分区的分区名以及开机自动挂载
- 不小心在win7下删除了linuxmint的系统分区,清除了WIN7 mbr~~之后一系列纠结
- linux下其他分区无法挂载的问题修复
- 关于Unity打Android包自动添加权限的问题
- Ubuntu开机自动挂载硬盘的权限问题
- ubuntu14.04用fstab挂载分区写入权限问题
- linuxmint系统下安装HLA的方法
- LinuxMint下tty.js的安装指南
- eclipse android 开发问题:No active compatible AVD's or devices found
- 内连接 左连接 右连接
- MQ配置文档说明手册
- JAVA=====选项卡的实例化
- oracle中以dba_、user_、v$_、all_、session_、index_开头
- 关于linuxmint下自动挂载分区的权限问题
- java数据类型
- Form 个性化-调用自定义程序库(实现:提交请求,自动输出请求结果)
- 树 森林和二叉树的转换
- JAVA======窗体事件实例化
- 如何在Gallery3D中支持Gif功能
- MySQL BIT类型字段插入不成功的问题
- 给学习J2EE的朋友一些值得研究的开源项目
- 进程和线程同步的方法