我正在 Windows 8 主机上运行 Xubuntu。我无法通过任何sudo chown ...
命令更改 xubuntu 共享文件的所有者。还有其他方法可以将所有者从 the 更改root
为 the吗user
?我也尝试将共享文件夹挂载到主目录中,仍然没有改变任何东西
hooman@ubuntu:~/win/meteor$ ls -al
total 20
drwxrwxrwx 1 root root 0 Dec 10 19:03 .
drwxrwxrwx 1 root root 16384 Dec 11 18:30 ..
drwxrwxrwx 1 root root 4096 Dec 10 19:03 simple-todos
hooman@ubuntu:~/win/meteor$
编辑:
做完后sudo chown
:
hooman@ubuntu:~/win/meteor$ ls -al
total 20
drwxrwxrwx 1 root root 0 Dec 10 19:03 .
drwxrwxrwx 1 root root 16384 Dec 11 18:30 ..
drwxrwxrwx 1 root root 4096 Dec 10 19:03 simple-todos
hooman@ubuntu:~/win/meteor$ sudo chown -v hooman simple-todos/
changed ownership of ‘simple-todos/’ from root to hooman
hooman@ubuntu:~/win/meteor$ ls -al
total 20
drwxrwxrwx 1 root root 0 Dec 10 19:03 .
drwxrwxrwx 1 root root 16384 Dec 11 18:30 ..
drwxrwxrwx 1 root root 4096 Dec 10 19:03 simple-todos
答案1
试试这个
sudo chown -v hooman. simple-todos/
不要忘记 hooman 后面的点
ls -l | grep 简单
drwxr-xr-x 2 root root 4096 十二月 12 11:23 simple-todo
sudo chown -v kaustubh。简单待办事项/
将 `simple-todos/' 的所有权从 root:root 更改为 kaustubh:kaustubh
kaustubh@hacked:~/test$
ls -l | grep 简单
drwxr-xr-x 2 kaustubh kaustubh 4096 十二月 12 11:23 simple-todos