我有一个 USB 盘,上面有一些目录。所有文件都属于根目录。
\nwhoami \nroot \n\nid\nuid=0(root) gid=0(root) groups=0(root) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023\n\n\nlsblk -f \n[...]\n \xe2\x94\x9c\xe2\x94\x80cs-root xfs 8cd99025-279f-4bc5-82c2-914200ae4e1a /\n \xe2\x94\x9c\xe2\x94\x80cs-swap swap af0674c2-a5e9-4646-be91-93c6f876eb88 [SWAP]\n \xe2\x94\x94\xe2\x94\x80cs-home xfs 39212c8d-0a88-4e55-91c9-a5751233a5ca /home\nsdb \n\xe2\x94\x94\xe2\x94\x80sdb1 vfat 36C7-16EE #-> the faulty usb device, vfat formated.\n\nls -ld /mnt\ndrwxr-xr-x. 10 root root 32768 Dec 31 1969 /mnt\nRun Code Online (Sandbox Code Playgroud)\n我尝试将所有文件的所有权更改为普通用户 (achille)\n但由于意外错误消息,该命令失败
\nchown achille: -R /mnt\n\n...\nchown: changing ownership of '/mnt/2.order/virtualbox/install.VirtualBox.Centos': Operation not permitted\nchown: changing ownership of '/mnt/2.order/virtualbox/install.virtualbox.local.repos': Operation not permitted\nchown: changing ownership of '/mnt/2.order/virtualbox/warning/install.AdditionsGuest': Operation not permitted\nchown: changing ownership of '/mnt/2.order/virtualbox/warning/install.virtualbox.local.repos': Operation not permitted\nchown: …Run Code Online (Sandbox Code Playgroud)