- CentOS 5.2
- vsFTPd。
C:\Documents and Settings\hoge>ftp hoge_host
Connected to hoge_host.
220 (vsFTPd 2.0.5)
User (hoge_host:(none)): hoge
331 Please specify the password.
Password:
500 OOPS: cannot change directory:/home/hoge
500 OOPS: child died
Connection closed by remote host.
# man ftpd_selinux
SELinux ftp daemon policy is customizable based on least access required.
So by default SElinux does not allow users to login and read their home
directories.
If you are setting up this machine as a ftpd server and wish to allow
users to access their home directorories, you need to set the ftp_home_dir
boolean.setsebool -P ftp_home_dir 1
# setsebool -P ftp_home_dir 1
C:\Documents and Settings\hoge>ftp hoge_host
Connected to hoge_host.
220 (vsFTPd 2.0.5)
User (hoge_host:(none)): hoge
331 Please specify the password.
Password:
230 Login successful.
ftp>
ありがとうございました。役立ちました。
fsockopen()が失敗する
Warning [PHP]: fsockopen() [function.fso…