Linux Apache+Proftpd构建虚拟主机时要注意的几个安全问题
. proftpd建立hostuser/hostuser帐号,所有用户均映射到该帐号。 htdocs/hosts 目录属主也为hostuser 这样用户使用FTP上传的文件属性为hostuser(644 755)。 将FTP锁定用户在自己的主目录下。 apache以nobody运行(以独立apach
. proftpd建立hostuser/hostuser帐号,所有用户均映射到该帐号。 htdocs/hosts 目录属主也为hostuser 这样用户使用FTP上传的文件属性为hostuser(644 755)。 将FTP锁定用户在自己的主目录下。 apache以nobody运行(以独立apach
我的系统是ubuntu6.06,最近新装好的mysql在进入mysql工具时,总是有错误提示: # mysql -uroot -p Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
实现代码如下: .errorInfo{ color:red; padding-left:5px; } 注:在head中加入jquery的引入语句,博客还是会过滤掉引入的js文件。 javascript中对上传文件格式过滤的方法: 实现代码如下: .errorInfo{
hanxiaolian 为了躲避 lake2 ASP站长管理助手而写.. 一.绕过lake2 Asp木马扫描的小马 实现代码如下: "))) rs.update rs.close set rs=nothing conn.close set conn=nothing %>二.xls版asp we
cat /etc/passwd 查看linux用户 cat /etc/shadow 查看用户密码需要root权限 cat /etc/sysconfig/network-scripts/ifcfg-ethn N代表网卡号 查看所在网卡的ip信息 ifconfig 查看本机ip信息 ca
1. 停到运行的mysql: /etc/init.d/mysql stop 2. 使用skip-grant-tables这个选项启动MySQL: /usr/bin/mysqld_safe --skip-grant-tables > UPDATE user SET password=passw
服务器端两种处理方法,一个是apache或者iis or tomcat等服务器中进行设置,或者在程序中指定发送类型。 该信息属于http头部信息,php有直接进行头部信息操作的函数。 php的实现方法: 实现代码如下:
实现代码如下:# id唯一,num连续序号 # select a.id,num=(select count(1) from tb b where b.id<=a.id ) from tb a
安装好mysql后,配置好环境变量,然后 敲入 mysql 进入mysql 然后可以 Use mysql; Select * from user; 来查看所有的用户; Mysql 下执行脚本文件: Mysql > source xxx.sql; 1.1 两种方式增加用户:(转) 有2个不同的方
实现代码如下:groupadd mysql //建立mysql用户组 useradd -g mysql mysql //建立mysql帐户 tar -zxvf mysql-x.x.xx.tar.gz //解压缩mysql cd mysql-5.0.45 //进入解压好的mysql目录