首页 Soft PlugIn RAN乱 Dev开发 Info资料 English WAP 留言 登陆 注册
-
Posted by Yippee | 评论(0) | 引用(4) | 阅读2454次
vsftp开放ROOT权限phpmyadmin gb2312

一个LINUX服务器上安装的是VSFTP,号称

VSFTP 概述

FTP,file transfer protocol,这是档案传输的通讯协议,也是一般最常用来传送档案的方式。读者在使用RedHat9 的时候,可能会感受到ftp server 有一些改变:第一,就是ftp server 只剩下vsftp,原有的wuftp 等都没放入﹔第二,就是vsftp 从XINETD 中独立出来,并将设定档从/etc/vsftpd.conf 之中移到/etc/vsftpd/vsftpd.conf。

为什么做这样的改变?可以想见的是vsftp 已有独立运作的能力,不需要XINETD 来做更进一步的管控,并且类似sendmail、httpd、ssh、samba 等,将设定文件的放入/etc 下独立的目录。 Vsftp(Very Secure FTP)是一种在Unix/Linux中非常安全且快速稳定的FTP服务器,

结果果然非常安全,我想用FTP访问并编辑一些文件,结果完全没有办法,只好找资料把所有的权限放开。

# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd.chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES

pam_service_name=vsftpd
userlist_enable=NO
userlist_deny=NO
#enable for standalone mode
listen=YES
tcp_wrappers=YES
chroot_local_user=no

#设置为YES则下面的控制有效
chroot_list_enable=YES
#若为NO,则记录在chroot_list_file选项所指定的文件(默认是/etc/vsftpd.chroot_list)中的用户将被chroot在登录后所在目录中,无法离开.如果为YES,则所记录的用户将不被chroot.这里选择YES.

chroot_local_user=YES
#若设置为YES则记录在userlist_file选项指定文件(默认是/etc/vsftpd.user_list)中的用户将无法login,并且将检察下面的userlist_deny选项

userlist_enable=YES
#若为NO,则仅接受记录在userlist_file选项指定文件(默认是/etc/vsftpd.user_list)中的用户的login请求.若为YES则不接受这些用户的请求.

userlist_deny=NO
#注意!!!vsftpd还要检察/etc/vsftpd.ftpusers文件,记录在这个文件中的用户将无法login!!

/SBIN/SERVICE VSFTPD RESTART

一个集成的软件包:集成 CENTOS、MYSQL、APACHE、CentOS 3.5、PHP,结果访问PHPMYADMIN出现:

Warning: mb_internal_encoding(): Unknown encoding "gb2312" in /var/www/html/maint/phpMyAdmin263/libraries/string.lib.php on line 41

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/maint/phpMyAdmin263/libraries/string.lib.php:41) in /var/www/html/maint/phpMyAdmin263/libraries/auth/config.auth.lib.php on line 81

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/maint/phpMyAdmin263/libraries/string.lib.php:41) in /var/www/html/maint/phpMyAdmin263/libraries/select_theme.lib.php on line 86

if ($GLOBALS['PMA_allow_mbstr']) {
    // the hebrew lang file uses iso-8859-8-i, encoded RTL,
    // but mb_internal_encoding only supports iso-8859-8
    if ($GLOBALS['charset'] == 'iso-8859-8-i'){
        mb_internal_encoding('iso-8859-8');
    } else {
        //mb_internal_encoding($GLOBALS['charset']);
  mb_internal_encoding('iso-8859-8');
    }
}

header -- Send a raw HTTP header
Description
void header ( string string [, bool replace [, int http_response_code]])


header() is used to send raw HTTP headers. See the HTTP/1.1 specification for more information on HTTP headers.

The optional replace parameter indicates whether the header should replace a previous similar header, or add a second header of the same type. By default it will replace, but if you pass in FALSE as the second argument you can force multiple headers of the same type. For example:


字体:

Permanant URI永久地址 http://www.shengfang.org/blog/p/vsftproot.php
Trackback URI引用地址 http://www.shengfang.org/blog/tb.php?tb_id=1125627666

2005年9月2日10:21星期五  [Dev开发] 追踪此文的RSS
提示:
此文还没有评论。

称呼:    登陆   注册
   不注册,但记住我的信息
邮件:
(非必须)
评论: [UBB代码帮助]
粗体 斜体 下划线 链接 水平线 引用



验证码: 请输入你看见的数字
关闭UBB      提交时自动将内容复制到剪贴板

公告
Fire and Motion!

统计信息
[Yippee]||[统计]||日志:1790
在线: 12||用户: 2562 [列表]
今日:341||到访:2669840
Rss:837914||评论:1584

最新日志

最新评论

友情链接

日历

最新引用

搜索

归档

杂项
Get RSS Feed (Version 2.0)
Get Atom Feed (Version 0.3)
编码:  UTF-8