My Work2018. 1. 4. 00:08

수많은 검색으로 해결이 안되어 이리 저리 테스트 해본 결과


ubuntu 17.10 lts

vsftpd 3.0.3 버전에서


ftp 구축 후 안드로이드 es file explore에서 접속해보고 시껍했다.

모든 디렉토리에 접근이 가능하다.

부랴부랴 상위 디렉토리 접근 차단 방법을 구글링 해봤는데


chroot_local_user=YES 활성화 <-- 가장 많이 보이는 해결책인데 이렇게 하면 접속이 아예 안됨

allow_writeable_chroot=YES 몇 몇 블로그에 같이 써주면 된다는데 역시 접속 안되는 문제는 여전함


chroot_list_enable=YES  활성화 하면 인증안된다는 에러가 나옴


아래와 같이 리스트 활성화와 리스트 파일에  ftp 접속 권한을 줄 유저를 등록하고

allow_writeable_chroot=YES 을 써주면


접속도 되고 

상위 디렉토리 접근도 차단됨


#chroot_local_user=YES

allow_writeable_chroot=YES

chroot_list_enable=YES

# (default follows)

chroot_list_file=/etc/vsftpd.chroot_list


저기에 등록 된 유저는 ssh 접근이 또 안된다는 말이 있던데 그런 문제는 없음.

Posted by WJinsoo
My Work2012. 2. 9. 13:43
sudo apt-get install python-software-properties
하면 설치됨 

'My Work' 카테고리의 다른 글

vsftpd chroot 설정 시 접속 불가 해결  (1) 2018.01.04
Ubuntu Lucid freenx 설치  (1) 2010.06.13
Posted by WJinsoo
My Work2010. 6. 13. 21:10
https://help.ubuntu.com/community/FreeNX#Installing the FreeNX server on Ubuntu Lucid (10.04)

Installing the FreeNX server on Ubuntu Lucid (10.04)

Ubuntu Lucid now uses Neatx, the Open Source NX server from Google.

Installation is simple enough, and similar to the Ubuntu Karmic method.

  1. Open your terminal

    Applications->Accessories->Terminal

    and type in this command

    sudo apt-get install python-software-properties && sudo add-apt-repository ppa:freenx-team
  2. Then Update Apt

    sudo apt-get update
  3. At this point, the repository is added and apt is updated, then install the neatx-server package (using Aptitude to install extra needed packages).

    sudo apt-get install neatx-server
Posted by WJinsoo