2013年7月8日星期一

强行删除php5.fcgi的方法

For security reasons, those particular files are setup with the "immutable" attribute.  

//因为安全的原因,这个文件被加上了“不能被删除的属性”

You can delete those files, but you'd first need to unset the immutable attribute.

//你还是可以删除这个文件,但要选去除这个“不能被删除”(immutable) 属性

To do that, log into your server over SSH as root, and run:

//用root权限运行以下命令:

chattr -i  /home/fengxy.org/fcgi-bin/php5.fcgi

After that, you'd be able to delete that file.

//然后你就可以删除它了。



 

例如:

[root@www fcgi-bin]# rm php5.fcgi

rm: remove write-protected regular file `php5.fcgi'? y

rm: cannot remove `php5.fcgi': Operation not permitted

[root@www fcgi-bin]# chattr -i php5.fcgi
[root@www fcgi-bin]# rm -rf php5.fcgi
[root@www fcgi-bin]#

 

没有评论:

发表评论