在Ubunut16.04中,我正在探索带有实用磁盘的外部硬盘。在挂载选项界面下,我看到了需要额外授权才能挂载的可能性。

我选择了这个选项,它所做的就是将x-udisks-auth添加到nosuid,nodev,nofail,noauto中。我找不到关于上述选项的任何相关信息,通过对x-udisks-auth的搜索,我找到了难以理解的信息,因为我对文件系统和磁盘的理解有限。
因此:简单地说,在选择上述选项时需要什么样的额外授权?我欢迎对x-udisks-auth的含义做一些入门级的解释。
发布于 2018-03-01 08:38:56
我认为udisks命令页在解释这一点方面做得相当好:
ACCESS CONTROL
By default, logged-in users in active log-in sessions are permitted to
perform operations (for example, mounting, unlocking or modifying) on
devices attached to the seat their session is on. Access-control is
fine-grained and based on polkit(8), see the “Authorization Checks”
chapter in the udisks documentation for more information. Note that the
x-udisks-auth option can be used in the /etc/fstab and /etc/crypttab
files to specify that additional authorization is required to mount
resp. unlock the device (typically requiring the user to authenticate
as an administrator). 因此,默认情况下,本地登录的用户(而不是远程登录,例如通过SSH等)可以插入USB磁盘并挂载它,而无需作为管理员进行身份验证。x-udisks-auth禁用此功能,并强制您提供授权。
正如它所说的,授权将通过polkit完成。因此,您必须作为一个拥有与安装、卸载、弹出式等相应的Polkit操作的权限的用户进行身份验证。默认情况下,这些用户将是管理员用户(属于sudo组的用户)。
如果您是管理员,则只需提供密码:

在图像中,Polkit操作是org.freedesktop.udisks2.filesystem-fstab。
如果系统上也有其他管理员用户,您将能够选择要作为身份验证的用户。
https://askubuntu.com/questions/1010892
复制相似问题