vsFTP에서 파일 업로드가 되지 않습니다.

ilinri의 이미지

서버에 vsFTP를 돌리고 있습니다.
로컬 유저로 로그인해서 파일을 올리려고 하는데, 처음에 한 번은 파일 upload가 됐는데 그 뒤로는 되지 않습니다.
이유를 알 수가 없군요.

vsftpd.conf 파일에서 설정은 아래와 같이 해줬거든요.

write_enable=YES
local_umas=022
ascii_upload_enable=YES

그리고 local user의 홈디렉토리에 대해서는 아래와 같이 권한을 설정했습니다.

chmod 775 public_html

지금 현재, 알FTP로 로그인하면, 파일 다운로드는 잘 됩니다.
그러나 파일 업로드를 시도하면,

TYPE I
200 Switching to Binary mode.
Starting FTP transfer
PORT 213.2XX.XXX.XXX.X.XXX
200 PORT command successful. Consider using PASV.
STOR test.zip
553 Could not create file.
Transfer complete
!! test.zip 파일을 완전히 전송하지 못했습니다.
CWD /public_html/
250 Directory successfully changed.
TYPE A
200 Switching to ASCII mode.
Starting FTP transfer
PORT 213.2XX.XXX.XXX.X.XXX
200 PORT command successful. Consider using PASV.
LIST
150 Here comes the directory listing.
Transfer complete.
226 Directory send OK.

와 같이 뜹니다.
왜 파일을 올리지 못하는 걸까요?

Remote computer에서 홈페이지 파일을 올리지 못하니 답답하군요.

airpro의 이미지

혹시 방화벽 설정에 문제가 될 수 있으니 한번 이렇게 해 보시기 바랍니다.

iptables -L

혹시 막혀진 포트가 있다면 설정파일을 편집하거나 아님 명령어로 얼어 주시고요 ..

정 귀찮으면

iptables -F

해 버리세요.

안되면 또 질문 해 주세요 ~

만약에 페도라 코어 라면

SELINUX 쪽 설정도 한번 검토하시기 바랍니다.

ilinri의 이미지

말씀하신 대로
iptables -F
를 해봤지만 여전히 업로드가 안 됩니다. 다운로드는 잘 됩니다.

SELinux 설정은 어떻게 확인하는지 잘 모르겠네요.

codebank의 이미지

SELinux는
http://fedora.redhat.com/docs/selinux-faq-fc3/
이문서를 읽어보세요. 그냥 설치하셨다면 기본으로 설정되는 것으로 알고 있기는
하지만 정확하지는 않습니다.
또한 selinux의 정책만 잠시 끄고 켜는 방법은
http://niceview.egloos.com/m2005-01-01/#792926
위 문서를 참조하세요.

------------------------------
좋은 하루 되세요.

ilinri의 이미지

chmod 707 public_html
을 하니 업로드도 됩니다. 775나 766으로는 안됐었습니다.

그런데 707 로 주면 보안 문제가 생기지 않을까요?

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.