修改
/etc/PolicyKit/PolicyKit.conf
将内容改为(改成你要使用的用户名称)
<config version="0.1">
<match user="你的用户名">
<!-- replace with your login or delete the line if you want to allow all users to manipulate devices (keep security issues in mind though) -->
<match action="org.freedesktop.hal.storage.*">
<return result="yes"/>
</match>
<match action="hal-storage-mount-fixed-extra-options">
<!-- for internal devices mounted with extra options like a wished mount point -->
<return result="yes" />
</match>
<match action="hal-storage-mount-removable-extra-options">
<!-- for external devices mounted with extra options like a wished mount point -->
<return result="yes" />
</match>
</match> <!-- don't forget to delete this line if you deleted the first one -->
</config>
本文介绍如何修改PolicyKit配置文件以允许特定用户无需密码即可挂载设备。通过编辑/etc/PolicyKit/PolicyKit.conf文件并设置匹配规则,可以实现对内部和外部存储设备的自定义挂载选项。
&spm=1001.2101.3001.5002&articleId=83372635&d=1&t=3&u=9ce19279d98448c0acf6f828120fd1de)
870

被折叠的 条评论
为什么被折叠?



