为什么usb-creator-gtk需要root访问权限?

当你想要创建一个可启动的USB记忆棒时,你必须确定为sudoer。 这是为什么? 我不难理解为什么不允许无特权的用户摆弄已安装的系统,但是如果你有写入权限,为什么不允许你将grub复制到记忆棒上呢?

Policy Kit预见了与Usb Creator相关的以下操作

$ pkaction --verbose | grep -A1 '\.usb' | less com.ubuntu.usbcreator.bootloader: description: Install the bootloader -- com.ubuntu.usbcreator.format: description: Format the device -- com.ubuntu.usbcreator.image: description: Image the device -- com.ubuntu.usbcreator.mount: description: Mount a device 

这些是只有root才能执行的操作,因为块设备由root拥有。

它需要格式化USB驱动器,并通过/dev/sd x访问设备。 所以它需要root权限。