Tôi đã cố gắng để chownbên trong /optvà vì một số lý do chownđã nhảy lên với cha mẹ và đuổi theo tất cả mọi thứ.
Bất cứ ai có thể đề nghị tại sao / làm thế nào điều này có thể xảy ra, và làm thế nào để tránh làm điều đó trong tương lai? Có một chút liên quan đến việc chạy một lệnh trong một thư mục đã cho có hiệu quả có thể nhảy lên và chạy nó trong thư mục gốc.
ubuntu: /opt > sudo chown -R root:www-data .*
chown: changing ownership of '../var/lib/lxcfs/proc/cpuinfo': Operation not permitted
chown: changing ownership of '../var/lib/lxcfs/proc/meminfo': Operation not permitted
chown: changing ownership of '../var/lib/lxcfs/proc/stat': Operation not permitted
chown: changing ownership of '../var/lib/lxcfs/proc/uptime': Operation not permitted
chown: changing ownership of '../var/lib/lxcfs/proc/diskstats': Operation not permitted
chown: changing ownership of '../var/lib/lxcfs/proc/swaps': Operation not permitted
chown: changing ownership of '../var/lib/lxcfs/proc': Operation not permitted
chown: changing ownership of '../var/lib/lxcfs/cgroup/devices': Operation not permitted
chown: changing ownership of '../var/lib/lxcfs/cgroup/blkio': Operation not permitted
chown: changing ownership of '../var/lib/lxcfs/cgroup/hugetlb': Operation not permitted
chown: changing ownership of '../var/lib/lxcfs/cgroup/rdma': Operation not permitted
chown: changing ownership of '../var/lib/lxcfs/cgroup/pids': Operation not permitted
chown: changing ownership of '../var/lib/lxcfs/cgroup/freezer': Operation not permitted
chown: changing ownership of '../var/lib/lxcfs/cgroup/cpuset': Operation not permitted
chown: changing ownership of '../var/lib/lxcfs/cgroup/memory': Operation not permitted
chown: changing ownership of '../var/lib/lxcfs/cgroup/perf_event': Operation not permitted
chown: changing ownership of '../var/lib/lxcfs/cgroup/cpu,cpuacct': Operation not permitted
chown: changing ownership of '../var/lib/lxcfs/cgroup/net_cls,net_prio': Operation not permitted
chown: changing ownership of '../var/lib/lxcfs/cgroup/name=systemd': Operation not permitted
chown: changing ownership of '../var/lib/lxcfs/cgroup/unified': Operation not permitted
chown: changing ownership of '../var/lib/lxcfs/cgroup': Operation not permitted
chown: changing ownership of '../var/lib/lxcfs': No such file or directory
^C
:ubuntu: /opt >
cdvào thư mục gốc và bỏ qua lệnh nhảy /, hoặc bắt đầu lệnh (, điều đó có nghĩa là lệnh sẽ không được thực thi cho đến khi khớp )được nhập, tạo cơ hội để nhấn Ctrl-C và bảo lãnh của một lỗi sai (chẳng hạn như rm -rf /tmp/foo-installvà nhấn Enter thay vì T).
sudo chown -R root:wwwdata /opttheo hộp thoại --help ... có lẽ việc sử dụng đường ống đó gây ra một số vấn đề ???