首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >磁盘挂载:“需要额外授权才能挂载”做什么?

磁盘挂载:“需要额外授权才能挂载”做什么?
EN

Ask Ubuntu用户
提问于 2018-03-01 08:16:32
回答 1查看 3.2K关注 0票数 4

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

我选择了这个选项,它所做的就是将x-udisks-auth添加到nosuid,nodev,nofail,noauto中。我找不到关于上述选项的任何相关信息,通过对x-udisks-auth的搜索,我找到了难以理解的信息,因为我对文件系统和磁盘的理解有限。

因此:简单地说,在选择上述选项时需要什么样的额外授权?我欢迎对x-udisks-auth的含义做一些入门级的解释。

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2018-03-01 08:38:56

我认为udisks命令页在解释这一点方面做得相当好:

代码语言:javascript
复制
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

如果系统上也有其他管理员用户,您将能够选择要作为身份验证的用户。

票数 6
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1010892

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档