Deniyordum chown
içinde /opt
ve nedense chown
ebeveyn ve chowned her şeyi ayağa fırladı.
Birisi bunun neden / nasıl olabileceğini ve gelecekte bunu yapmaktan nasıl kaçınabileceğini önerebilir mi? Belirli bir direkte bir komut çalıştırmanın etkili bir şekilde yukarı atlayıp root dir'de çalıştırmasıyla ilgili bir parça.
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 >
.*
eşleşir ..
(ana dizin, hangisi /
) - bkz . “chmod 777. * -R”, chmod ana dizinlerini (..) gösterir mi?
cd
kök dizine girebilir ve / işaretini atlayabilir ya da komutu başlatabilir (
, bu, eşleşme yazılana kadar komutun yürütülmeyeceği anlamına gelir; )
bu, Ctrl-C'ye çarpma ve geri çekilme fırsatı verir. Kötü bir hata (örneğin rm -rf /tmp/foo-install
T yerine Enter ve isabet).
sudo chown -R root:wwwdata /opt
--help iletişim kutusuna göre ... belki de bu boruyu kullanmak bazı sorunlara neden oldu mu ???