내 서버에 php 파일이 있습니다. 삭제하려고했지만 권한이 거부되었습니다. 그것은 PHP 바이러스에 의해 만들어졌습니다.왜 PHP 파일을 삭제할 수 없습니까?
루트 @ 호스트 [/ 홈/depotdeb/public_html을]
총 HL -la # 1! 12
d--------- 2 depotdeb depotdeb 4096 Jul 16 11:25 ./
drwxr-x--- 6 depotdeb depotdeb 4096 Jul 21 01:49 ../
-rwxrwxrwx 1 depotdeb depotdeb 89 Jul 21 01:48 index.php*
[email protected] [/home/depotdeb/public_html]# cd hl
[email protected] [/home/depotdeb/public_html/hl]# rm -f index.php
rm: cannot remove `index.php': Permission denied
루트 @ 호스트 [/ 홈/depotdeb/public_html을/HL] # lsattr index.php를
-------------e- index.php
[email protected] [/home/depotdeb/public_html/hl]# ls -la
total 12
d--------- 2 depotdeb depotdeb 4096 Jul 16 11:25 ./
drwxr-x--- 6 depotdeb depotdeb 4096 Jul 21 01:49 ../
-rwxrwxrwx 1 depotdeb depotdeb 89 Jul 21 01:48 index.php*
[email protected] [/home/depotdeb/public_html/hl]# chattr -i index.php
[email protected] [/home/depotdeb/public_html/hl]# lsattr index.php
-------------e- index.php
루트 @ 호스트 [/ 홈/depotdeb/public_html을/HL] # rm을의 index.p HP
rm: remove regular file `index.php'? y
rm: cannot remove `index.php': Permission denied
[email protected] [/home/depotdeb/public_html/hl]# cd ../
루트 @ 호스트 [/ 홈/depotdeb/public_html을] #에 대한 Chown의 depotdeb.depotdeb의 HL
chown: changing ownership of `hl': Operation not permitted
루트 @ 호스트 [/ 홈/depotdeb/public_html을] #에서 cd HL
-IL루트 @ 호스트 [/ 홈/depotdeb/public_html을/HL] # 1! 이에 따라
total 12 26620397 d--------- 2 depotdeb depotdeb 4096 Jul 16 11:25 ./ 533919 drwxr-x--- 6 depotdeb depotdeb 4096 Jul 21 01:49 ../ 26620398 -rwxrwxrwx 1 depotdeb depotdeb 89 Jul 21 01:48 index.php*
루트 @ 호스트 [/ 홈/depotdeb/public_html을/HL] #
파일에 기본 권한보다 우선 적용되는 ACL이 있습니까? – user3553031
'hl' _folder_에'쓰기 '권한이 있습니까? – Cynical