카테고리 없음

솔라리스 FTP root 접근

행복 금융 2009. 2. 17.
  ftp 로그인 설정
  글쓴이 : 아쿠아 (203.♡.202.47)     날짜 : 05-06-29 18:06     조회 : 696    


root@solaris3:/study>vi /etc/inetd.conf
:set nu

 150  100155/1        tli    rpc/ticotsord  wait    root    /usr/lib/smedia/rpc.smserverd rpc.smserverd
 151  # FTPD - FTP server daemon
 152  ftp    stream  tcp6    nowait  root    /usr/sbin/in.ftpd      in.ftpd -a
  --152 주석 있을시 해제함 (ftp 사용가능함)

Sun Microsystems Inc.  SunOS 5.9      Generic May 2002
root@solaris3:/>ftp .
Connected to 0.0.0.0.
220 solaris3 FTP server ready.
Name (.:root): root
331 Password required for root.
Password:
530 Login incorrect.
Login failed.
ftp>
ftp> bye
221 Goodbye.
root@solaris3:/>vi /etc/ftpd/ftpusers
# ident "@(#)ftpusers  1.4    01/08/27 SMI"
#
# List of users denied access to the FTP server, see ftpusers(4).
#
#root  <-- 설정 부분
daemon
bin
sys
adm
lp
uucp
nuucp
smmsp
listen
nobody
noaccess
nobody4
~
~
~
~
~
~
:wq!

-- 루트 주석처리후  ftp 접근 가능함.

ftp> root@solaris3:/>ftp .
Connected to 0.0.0.0.
220 solaris3 FTP server ready.
Name (.:root): root
331 Password required for root.
Password:
230 User root logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> !pwd
/
ftp>

root@solaris3:/>vi .netrc
machine solaris3 login root password password
chmod 600 .netrc
~
~
~
~
~
~
~

~
~
:wq!
[적용 방법1] ftpd 데몬 재시작
root@solaris3:/>pkill -HUP ftpd
 
[적용 방법2] 파일 권한 설정
root@solaris3:/>chmod 600 .netrc

[접속시 호스트 이름 설정후 접속하기]
root@solaris3:/>ftp solaris3
Connected to solaris3.
220 solaris3 FTP server ready.
Unknown .netrc keyword chmod
Unknown .netrc keyword 600
Unknown .netrc keyword .netrc
331 Password required for root.
230 User root logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> !pwd
/
ftp> ls

댓글

💲 추천 글