我尝试从中删除文件夹/var/www
,但收到消息,允许该操作:
$ sudo rm -Rf ./contao_old/
rm: cannot remove './contao_old/.git/objects/pack/pack-b3e96bac096853d13b620095481d9bf62f800011.idx': Operation not permitted
rm: cannot remove './contao_old/.git/objects/pack/pack-b3e96bac096853d13b620095481d9bf62f800011.pack': Operation not permitted
$ lsattr
lsattr: Inappropriate ioctl for device While reading flags on ./pack-b3e96bac096853d13b620095481d9bf62f800011.idx
lsattr: Inappropriate ioctl for device While reading flags on ./pack-b3e96bac096853d13b620095481d9bf62f800011.pack
我是linux新手,不明白这个问题。我读过一些关于坐骑的文章,但在我看来,没有坐骑。
答案1
简短回答:
su -
成为root(我想你可以做到)
然后,转到你的/var/www
并执行
# chown -R (your-normal-user):(your-normal-user) .contacto_old
之后,更改为普通用户Ctrl+D
并执行
rm -rf .contacto_old