pastebin

Paste #82335: 怎么更改文件夹所有者?

怎么更改文件夹所有者?不成功更改经历:
will@Ubuntu:~$ls -l /
drwxrwxrwx   1 root root  4096 Oct 23 11:00 data
will@Ubuntu:~$ls -l /data
total 18624
-rwxrwxrwx 2 root root 19038198 Sep 22 23:47 firefox-15.0.1.tar.bz2
drwxrwxrwx 1 root root        0 Sep 19 22:48 Program Files (x86)
drwxrwxrwx 1 root root        0 Sep 18 23:23 $RECYCLE.BIN
drwxrwxrwx 1 root root      488 Oct 23 13:25 shared
drwxrwxrwx 1 root root        0 Oct 20 16:09 VM
will@Ubuntu:~$ mkdir /data/tempFolder
will@Ubuntu:~$ ls -l /data
total 18624
-rwxrwxrwx 2 root root 19038198 Sep 22 23:47 firefox-15.0.1.tar.bz2
drwxrwxrwx 1 root root        0 Sep 19 22:48 Program Files (x86)
drwxrwxrwx 1 root root        0 Sep 18 23:23 $RECYCLE.BIN
drwxrwxrwx 1 root root      488 Oct 23 13:25 shared
drwxrwxrwx 1 root root        0 Oct 23 13:36 tempFolder
drwxrwxrwx 1 root root        0 Oct 20 16:09 VM
will@Ubuntu:~$ chown -hR will:will /data/tempFolder/
will@Ubuntu:~$ ls -l /data
total 18624
-rwxrwxrwx 2 root root 19038198 Sep 22 23:47 firefox-15.0.1.tar.bz2
drwxrwxrwx 1 root root        0 Sep 19 22:48 Program Files (x86)
drwxrwxrwx 1 root root        0 Sep 18 23:23 $RECYCLE.BIN
drwxrwxrwx 1 root root      488 Oct 23 13:25 shared
drwxrwxrwx 1 root root        0 Oct 23 13:36 tempFolder
drwxrwxrwx 1 root root        0 Oct 20 16:09 VM
will@Ubuntu:~$ sudo chown -hR will:will /data/tempFolder/
[sudo] password for will: 
will@Ubuntu:~$ ls -l /data
total 18624
-rwxrwxrwx 2 root root 19038198 Sep 22 23:47 firefox-15.0.1.tar.bz2
drwxrwxrwx 1 root root        0 Sep 19 22:48 Program Files (x86)
drwxrwxrwx 1 root root        0 Sep 18 23:23 $RECYCLE.BIN
drwxrwxrwx 1 root root      488 Oct 23 13:25 shared
drwxrwxrwx 1 root root        0 Oct 23 13:36 tempFolder
drwxrwxrwx 1 root root        0 Oct 20 16:09 VM
怎么更改文件夹所有者?

Private
Wrap long lines

3 + 2 =