无名阁
Ubuntu启用挂载密码
2014-10-18 笑看风云


Ubuntu默认情况下挂载硬盘并不需要输入用户密码,但是有时为了安全起见我们需要输入密码的时候如何启用密码呢,很简单,修改一下文件既可。



在命令行下输入下面命令:


sudo su
cd /var/lib/polkit-1/localauthority/10-vendor.d/
vi com.ubuntu.desktop.pkla

然后把开头的以下内容改成这样:
#[Mounting, checking, etc. of internal drives]
#Identity=unix-group:admin;unix-group:sudo
#Action=org.freedesktop.udisks.filesystem-*;org.freedesktop.udisks.drive-ata-smart*;org.freedesktop.udisks2.filesystem-mount-system;org.freedesktop.udisks2.encrypted-unlock-system;org.freedesktop.udisks2.filesystem-fstab;
#ResultActive=yes

然后保存,并重启就可以了。




发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容