블로그 이미지
오정oI

카테고리

분류 전체보기 (119)
회사 - pj # 나라원 (1)
회사 - pj # 나라원 (2)
이직준비 (10)
국비-클라우드 (1)
학점은행제 (0)
취미 (0)
주식 (0)
외국어 (0)
자격증 (14)
BigData_On (1)
BigData_Off1 (74)
클라우드 (0)
언어_Framework (1)
언어-Server (2)
언어_Client (0)
업무 (1)
IT참고서적 (1)
IT 최신 트랜드 (0)
제테크 (1)
Study Plan (2)
동영상 및 자료 (5)
여행 (1)
git (0)
Total
Today
Yesterday
반응형
SMALL

※ 권한

- 허가권(Permission)

- 소유권(Ownership)

 

1. 허가권(Permission)

 

1> 허가권

 

[준비물]

// 허가권

[root@localhost ~]# ls -ld /home
drwxr-xr-x. 4 root root 87 12월 29 12:49 /home
[root@localhost ~]#
[root@localhost ~]# ls -l /etc/passwd
-rw-r--r--. 1 root root 2116 12월 29 13:19 /etc/passwd


      Owner(User)         Group             Other

      2^2 2^1 2^0    2^2 2^1 2^0   2^2 2^1 2^0   

d (directory)    |    r    w    x    |    r    w    x    |    r    w    x    |

- (file)            |    4    2    1    |    4    2    1    |    4    2    1   |

   x 100                x 10                 x 1

 

각 구간마다 최대로 나올 수 있는 값은? 7

각 구간마다 최소로 나올 수 있는 값은? 0

허가권은 8진수 모드로 이루어져 있음

 

8진수 기반

rwx = 7

rw- = 6

r-x = 5

r-- = 4

-wx = 3

-w- = 2

--x = 1

--- = 0

 

2> r w x 의미

r(read) : 읽기

w(write) : 쓰기

x(execute) : 실행(또는 접근)

 

* 특징

'x'에 대해서

file에 'x'가 없으면 문서파일(텍스트 파일)

file에 'x'가 있으면 실행파일

directory에 'x'가 있으면 접근이 가능하다

또는

directory에 'x'가 없으면 접근이 불가능하다

 

file에서 'r'은 문서 내용 출력(cat..,), 'w'는 문서 편집(vi), 'x'는 실행(execute)

(단! 문서파일에는 'x'가 없음)

 

directory에서 'r'은 디렉터리 목록 출력(ls), 'w'는 생성, 이동, 복사, 삭제(mkdir, mv, cp, rm), 'x'는 접근(cd)

 

[root@localhost ~]# ls -l /etc/passwd
-rw-r--r--. 1 root root 2116 12월 29 13:19 /etc/passwd        // 문서파일
[root@localhost ~]#
[root@localhost ~]# ls -l /usr/bin/ls
-rwxr-xr-x. 1 root root 117656 11월  6  2016 /usr/bin/ls      // 실행파일
root@localhost ~]#
[root@localhost ~]# ls -ld /home
drwxr-xr-x. 4 root root 87 12월 29 12:49 /home               // 접근 가능 dir.

 

[Key point]

- 각 내용에서 어디가 중요한가?

문서파일 r w -         // 보여줄지 말지..,

실행파일 r w x        // 접근을 줄지 말지..,

디렉터리 r w x        // 접근(x), 보기(r)는 되는데, 편집권한(w)을 줄지 말지..,

 

 

3> 허가권 변경

사용형식

chmod [permission] directory 또는 파일

    |-------> numeric(숫자)

    |-------> symbolic(문자)

 

1) numeric (일반권한에 적용됨)

준비물

--x-w--wx       ->     r--r-xrw-

chmod 456 directory 또는 file

 

2) symbolic (특수권한에 적용됨)

준비물

rwxrw-r-x    ->    rw--wx-w-

chmod u-x,g-r,g+x,o-r,o+w,o-x  directory 또는 file

 

// 기타 처리

[root@localhost ~]# userdel -r battlegrounds
[root@localhost ~]#
[root@localhost ~]# groupdel lol
[root@localhost ~]#
[root@localhost ~]# rm -rf /overwatch/
[root@localhost ~]#
[root@localhost ~]# rm -rf /fifaonline3
[root@localhost ~]#
[root@localhost ~]# ls /
AS      bin   dev  home  lib64  mnt  proc  run   srv  tmp  var
backup  boot  etc  lib   media  opt  root  sbin  sys  usr
[root@localhost ~]#
[root@localhost ~]# tail -1 /etc/passwd
itbank:x:1000:1000:dust:/home/itbank:/bin/bash
[root@localhost ~]#
[root@localhost ~]# tail -1 /etc/group
itbank:x:1000:
[root@localhost ~]#
[root@localhost ~]#

 

<실습 1>

 

허가권 변경 실습

/backup/grub.cfg 파일을 /home/itbank 홈 디렉터리에 복사한 후 변경

 

numeric → rw--w--wx        // 623

symbolic → -wxr-xrw-      // 356

numeric → r-x-w-rw-        // 526

symbolic → -w--wxr-x      // 235

 

[root@localhost itbank]# cp /backup/grub.cfg ./     //  /home/itbank
[root@localhost itbank]#
[root@localhost itbank]# ls -l /home/itbank
합계 8
-rw-r--r--. 1 root root 5078 12월 29 14:25 grub.cfg
[root@localhost itbank]#
[root@localhost itbank]# chmod 623 grub.cfg
[root@localhost itbank]#
[root@localhost itbank]# ls -l      // grub.cfg
-rw--w--wx. 1 root root 5078 12월 29 14:25 grub.cfg
[root@localhost itbank]#
[root@localhost itbank]# chmod u-r,u+x,g+r,g-w,g+x,o+r,o-x grub.cfg
[root@localhost itbank]#
[root@localhost itbank]# ls -l
--wxr-xrw-. 1 root root 5078 12월 29 14:25 grub.cfg
[root@localhost itbank]#
[root@localhost itbank]# chmod 526 grub.cfg
[root@localhost itbank]#
[root@localhost itbank]# ls -l
-r-x-w-rw-. 1 root root 5078 12월 29 14:25 grub.cfg
[root@localhost itbank]#
[root@localhost itbank]# chmod u-r,u+w,u-x,g+x,g+w,o-w,o+x grub.cfg
[root@localhost itbank]#
[root@localhost itbank]# ls -l
합계 8
--w--wxr-x. 1 root root 5078 12월 29 14:25 grub.cfg
[root@localhost itbank]#

=> r-x-w-r--

chmod u+r,u-w,u+x,g-x,o-x

chmod u+r-w+x,go-x

chmod u+rx-w,go-x

 

chmod ugo+r     ==   chmod a+r        // a: all

 

=> rw-r--r--    (644)

chmod a+r,go-wx grub.cfg

또는

chmod u=rw,go=r grub.cfg

 

<실습2>

[준비물]

1) Internet Explorer  리눅스 ip 입력 192.168.8.174

2) 각자 windows 개인폴더 안에 ' 새 텍스트 문서' 파일 생성

3) 셍성한 파일에 내용 입력

4) 다른이름으로 저장 눌러서

   파일 이름: index.html / 파일형식 : 모든 파일 / 인코딩 : utf-8

5) ftp 서비스 이용 index.html > 리눅스 /home/itbank 홈 디렉터리 하위에 업로드

   index.html 파일이 존재하는지 확인

6) /home/itbank/index.html 을 /var/www/html로 이동

7) 인터넷 웹 브라우저 F5

 

위 설정이 다 되었으면 아래의 실습을 진행!

/var/www/html/index.html의 허가권을 바꾸어서 웹 페이지 내용을 확인하는 테스트

-w-r--r--(numeric)        // 244 : User쪽에 x는 원래 없고 w가 있으므로 접근 가능=> Other 쪽을 봐야 하는듯..,

rw----r--(symbolic)       // 604 : w가 여전히 있음..,

rw-r-----(symbolic)       // 640 : r 없음!

 

 

// 5)

 

[cmd]

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\user>e:

E:\>cd 2*

E:\201709월JAVA심야반 (지우지마세요)>cd ..

E:\>cd 2_12*

E:\2_12월_평일12시_리눅스1_Junga>dir
 E 드라이브의 볼륨: 새 볼륨
 볼륨 일련 번호: 0AAB-DADF

 E:\2_12월_평일12시_리눅스1_Junga 디렉터리

2017-12-29  오후 02:51    <DIR>          .
2017-12-29  오후 02:51    <DIR>          ..
2017-12-29  오후 12:38    <DIR>          1_압축푼거
2013-05-28  오후 05:56         1,816,712 HangulPuTTY-0[1].60h.setup.exe
2017-12-29  오후 02:52                24 index.html
2017-12-28  오후 02:46    <DIR>          temp
2017-12-18  오후 03:06                33 testfile.txt
2017-12-18  오후 03:06                15 testfile2.txt
2017-12-29  오후 02:51                21 새 텍스트 문서.txt
               5개 파일           1,816,805 바이트
               4개 디렉터리  339,256,086,528 바이트 남음

E:\2_12월_평일12시_리눅스1_Junga>ftp
ftp> open 192.168.8.174
192.168.8.174에 연결되었습니다.
220 (vsFTPd 3.0.2)
사용자(192.168.8.174:(none)): itbank
331 Please specify the password.
암호:
230 Login successful.
ftp>
ftp> pwd
257 "/home/itbank"
ftp> put index.html
200 PORT command successful. Consider using PASV.
150 Ok to send data.
226 Transfer complete.
ftp: 0.00초 24.00KB/초
ftp>
ftp>

[puTTY]

[root@localhost itbank]# ifconfig | head -n2
ens32: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.8.174  netmask 255.255.255.0  broadcast 192.168.8.255

[root@localhost itbank]# ls -l
합계 12
-rw-r--r--. 1 root   root   5078 12월 29 14:25 grub.cfg
-rw-r--r--. 1 itbank itbank   24 12월 29 14:56 index.html

// 6)

[root@localhost itbank]# mv index.html /var/www/html
[root@localhost itbank]#
[root@localhost itbank]# ls -l /var/www/html/
합계 4
-rw-r--r--. 1 itbank itbank 24 12월 29 14:56 index.html

 

// 실습

=> 인터넷 출력은 Other에 영향이 있다

[root@localhost itbank]# cd /var/www/html/
[root@localhost html]#
[root@localhost html]# ls -l
합계 4
-rw-r--r--. 1 itbank itbank 24 12월 29 14:56 index.html
[root@localhost html]#
[root@localhost html]# chmod 244 index.html
[root@localhost html]#
[root@localhost html]# ls -l
합계 4
--w-r--r--. 1 itbank itbank 24 12월 29 14:56 index.html
[root@localhost html]#
[root@localhost html]# chmod u=rw,o=r index.html
[root@localhost html]#
[root@localhost html]# ls -l
합계 4
-rw-r--r--. 1 itbank itbank 24 12월 29 14:56 index.html
[root@localhost html]#
[root@localhost html]# chmod u=rw,g=,o=r index.html
[root@localhost html]#
[root@localhost html]# ls -l
합계 4
-rw----r--. 1 itbank itbank 24 12월 29 14:56 index.html
[root@localhost html]#
[root@localhost html]# chmod u=rw,g=r,o= index.html
[root@localhost html]#
[root@localhost html]# ls -l
합계 4
-rw-r-----. 1 itbank itbank 24 12월 29 14:56 index.html
[root@localhost html]#
[root@localhost html]# chmod 244 index.html
[root@localhost html]#
[root@localhost html]# ls -; /var/www/html/
ls: cannot access -: 그런 파일이나 디렉터리가 없습니다
-bash: /var/www/html/: 디렉터리입니다
[root@localhost html]# ls -l /var/www/html/
합계 4
--w-r--r--. 1 itbank itbank 24 12월 29 14:56 index.html
[root@localhost html]# chmod 003 index.html
[root@localhost html]#
[root@localhost html]# ls -l
합계 4
--------wx. 1 itbank itbank 24 12월 29 14:56 index.html
[root@localhost html]# chmod 004 index.html
[root@localhost html]#
[root@localhost html]# ls -l
합계 4
-------r--. 1 itbank itbank 24 12월 29 14:56 index.html
[root@localhost html]# chmod 000 index.html
[root@localhost html]#
[root@localhost html]# ls -l
합계 4
----------. 1 itbank itbank 24 12월 29 14:56 index.html
[root@localhost html]#
[root@localhost html]# chmod 004 index.html
[root@localhost html]#
[root@localhost html]# ls -l
합계 4
-------r--. 1 itbank itbank 24 12월 29 14:56 index.html
[root@localhost html]#

 

<실습 3>

/var/www/html 디렉터리의 허가권을 바꾸면서 내용 출력 test!

    r w x r w x r - x (numeric)    // 775

               - w x r - x r - x (numeric)     // 355

                r - x r - x r - x (numeric)     // 555

                r w - r - x r - x (numeric)    // 655

                r w x - - x r - x (symbolic)  // 715

                r w x r - - r - x (symbolic)  // 745

                r w x r - x - - x (symbolic) // 751

                r w x r - x r - - (symbolic) // 754    ==> other에 x가 없음! Internet은 other~!!!

리눅스 캐시 메모리 비우기?

[정리]

/var/www/html/index.html

   ↓    rw-r--r--

rwxr-xr--

  접근 x

=> other에 접근(x) 이 없어서 html 디렉터리 내부에 index.html 파일이 존재하는지 알 수 없음!

 

 

[root@localhost www]# pwd
/var/www
[root@localhost www]#
[root@localhost www]# chmod 775 html
[root@localhost www]#
[root@localhost www]# ls -ld
drwxr-xr-x. 4 root root 33  9월 25 15:21 .
[root@localhost www]#
[root@localhost www]# ls
cgi-bin  html
[root@localhost www]# ls -ld html/
drwxrwxr-x. 2 root root 24 12월 29 15:02 html/
[root@localhost www]#
[root@localhost www]# cd /home/itbank
[root@localhost itbank]#
[root@localhost itbank]# chmod 355 /var/www/html
[root@localhost itbank]#
[root@localhost itbank]# ls -ld
drwx------. 5 itbank itbank 144 12월 29 15:02 .
[root@localhost itbank]# ls -ld
drwx------. 5 itbank itbank 144 12월 29 15:02 .
[root@localhost itbank]# ls -l
합계 8
-rw-r--r--. 1 root root 5078 12월 29 14:25 grub.cfg
[root@localhost itbank]# ls -ld /var/www/html/
d-wxr-xr-x. 2 root root 24 12월 29 15:02 /var/www/html/
[root@localhost itbank]#
[root@localhost itbank]#
[root@localhost itbank]# chmod 555 /var/www/html/
[root@localhost itbank]#
[root@localhost itbank]# ls -ld /var/www/html/
dr-xr-xr-x. 2 root root 24 12월 29 15:02 /var/www/html/
[root@localhost itbank]#
[root@localhost itbank]# chmod 655 /var/www/html/
[root@localhost itbank]#
[root@localhost itbank]# ls -ld /var/www/html/
drw-r-xr-x. 2 root root 24 12월 29 15:02 /var/www/html/
[root@localhost itbank]# chmod u+x,g-r /var/www/html
[root@localhost itbank]#
[root@localhost itbank]# ls -ld /var/www/html
drwx--xr-x. 2 root root 24 12월 29 15:02 /var/www/html
[root@localhost itbank]#
[root@localhost itbank]# chmod g+r-x /var/www/html/
[root@localhost itbank]#
[root@localhost itbank]# ls -ld /var/www/html/
drwxr--r-x. 2 root root 24 12월 29 15:02 /var/www/html/
[root@localhost itbank]#
[root@localhost itbank]# chmod g+x,o-r /var/www/html/
[root@localhost itbank]#
[root@localhost itbank]# ls -ld /var/www/html/
drwxr-x--x. 2 root root 24 12월 29 15:02 /var/www/html/
[root@localhost itbank]#
[root@localhost itbank]# chmod o+r-x /var/www/html/
[root@localhost itbank]#
[root@localhost itbank]# ls -ld /var/www/html/
drwxr-xr--. 2 root root 24 12월 29 15:02 /var/www/html/
[root@localhost itbank]# chmod o+x /var/www/html/
[root@localhost itbank]#
[root@localhost itbank]# ls -ld /var/www/html
drwxr-xr-x. 2 root root 24 12월 29 15:02 /var/www/html

 

<실습 4>

/home/itbank 홈 디렉터리의 허가권을 변경하면서 테스트 해보기

r w x - - - - - -

1) ftp 접속이 되는가?  ○

2) testfile1 이 보이는가?   (ftp> ls)

3) index.html 파일 업로드 되는가? (ftp> put index.html)

 4) 600, 500, 400, 300, 200, 100을 실습!!

 

디렉터리와 파일의 소유권은 다름.

- 디렉터리에 r이 없으면 ls 검색 시, 파일명 등이 ??? 로 뜸

- 파일 내용은 파일의 소유권을 봐야..,

(∵ 파일 내용 : cat 

    디렉터리 목록 : ls )

 

[준비물]

[root@localhost itbank]# rm -rf /var/www/html/index.html
[root@localhost itbank]#
[root@localhost itbank]# ls -l /var/www/html/
합계 0
[root@localhost itbank]#
[root@localhost itbank]# rm -rf *
[root@localhost itbank]#
[root@localhost itbank]# touch testfile1
[root@localhost itbank]#
[root@localhost itbank]# ls -l
합계 0
-rw-r--r--. 1 root root 0  1월  2 13:20 testfile1    

///////////////////// TEST 7 /////////////////////

[puTTY]

[root@localhost itbank]# chmod 100 /home/itbank
[root@localhost itbank]#
[root@localhost itbank]# ls -ld
d--x------. 5 itbank itbank 144  1월  2 13:55 .

[cmd]

E:\2_12월_평일12시_리눅스1_Junga>ftp
ftp> open 192.168.8.174
192.168.8.174에 연결되었습니다.
220 (vsFTPd 3.0.2)
사용자(192.168.8.174:(none)): itbank
331 Please specify the password.
암호:
230 Login successful.
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
226 Transfer done (but failed to open directory).
ftp>
ftp> put index.html
200 PORT command successful. Consider using PASV.
553 Could not create file.
ftp>
ftp>


[puTTY]

[root@localhost itbank]# ls
testfile

=> 1) (○)

=> 2) (X)

=> 1) (X)

///////////////////// TEST 6 /////////////////////

[puTTY]

[root@localhost itbank]# chmod 200 /home/itbank
[root@localhost itbank]#
[root@localhost itbank]# ls -ld
d-w-------. 5 itbank itbank 144  1월  2 13:55 .

[cmd]

E:\2_12월_평일12시_리눅스1_Junga>ftp
ftp> open 192.168.8.174
192.168.8.174에 연결되었습니다.
220 (vsFTPd 3.0.2)
사용자(192.168.8.174:(none)): itbank
331 Please specify the password.
암호:
500 OOPS: cannot change directory:/home/itbank
원격 호스트에 의해 연결이 닫혔습니다.
ftp>


[puTTY]

[root@localhost itbank]# ls
index.html  testfile1

=> 1) (X)

///////////////////// TEST 5 /////////////////////

[puTTY]

[root@localhost itbank]# chmod 300 /home/itbank
[root@localhost itbank]#
[root@localhost itbank]# ls -ld
d-wx------. 5 itbank itbank 145  1월  2 13:31 .

[cmd]

E:\2_12월_평일12시_리눅스1_Junga>ftp
ftp> open 192.168.8.174
192.168.8.174에 연결되었습니다.
220 (vsFTPd 3.0.2)
사용자(192.168.8.174:(none)): itbank
331 Please specify the password.
암호:
230 Login successful.
ftp>
ftp> ls
200 PORT command successful. Consider using PASV.    // ls는 먹힘
150 Here comes the directory listing.                
226 Transfer done (but failed to open directory).          // 그런데 파일은 못 봄
ftp>
ftp> put index.html
200 PORT command successful. Consider using PASV.
150 Ok to send data.
226 Transfer complete.
ftp: 0.00초 24000.00KB/초
ftp>
[puTTY]

[root@localhost itbank]# ls
index.html  testfile1

=> 1) (○)

=> 2) (X)

=> 3) (○) 

// 파일 편집은 되나?

: 편집은 되는데 내용이 정확히 안보임..,

 

   

///////////////////// TEST 4 /////////////////////

[puTTY]

[root@localhost itbank]# chmod 400 /home/itbank
[root@localhost itbank]#
[root@localhost itbank]# ls -ld
dr--------. 5 itbank itbank 145  1월  2 13:31 .

 

[cmd]

E:\2_12월_평일12시_리눅스1_Junga>ftp
ftp> open 192.168.8.174
192.168.8.174에 연결되었습니다.
220 (vsFTPd 3.0.2)
사용자(192.168.8.174:(none)): itbank
331 Please specify the password.
암호:
500 OOPS: cannot change directory:/home/itbank
원격 호스트에 의해 연결이 닫혔습니다.

[puTTY]

[root@localhost itbank]# ls
testfile1

=> 1) (X)

   

///////////////////// TEST 3 /////////////////////

[puTTY]

[root@localhost itbank]# chmod 500 /home/itbank    
[root@localhost itbank]#
[root@localhost itbank]# ls -ld /home/itbank
dr-x------. 5 itbank itbank 145  1월  2 13:31 /home/itbank

 

[cmd]

E:\2_12월_평일12시_리눅스1_Junga>
E:\2_12월_평일12시_리눅스1_Junga>ftp
ftp> open 192.168.8.174
192.168.8.174에 연결되었습니다.
220 (vsFTPd 3.0.2)
사용자(192.168.8.174:(none)): itbank
331 Please specify the password.
암호:
230 Login successful.
ftp>
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
testfile1
226 Directory send OK.
ftp: 0.00초 11.00KB/초
ftp>
ftp> put index.html
200 PORT command successful. Consider using PASV.
553 Could not create file.
ftp>
ftp>

[puTTY]

[root@localhost itbank]# ls
testfile1

=> 1) (○)

=> 2) (○)

=> 3) (X)    // upload는 'w' 와 관련되어 있다! 쓰기가 안됨

// [cmd]

# pwd

/home/itbank // 얘 한테 업로드 해주는데, 얘가 w가 없어서 안됨..,

 

 

 

 

///////////////////// TEST 2 /////////////////////

[puTTY]

[root@localhost itbank]# chmod 600 /home/itbank
[root@localhost itbank]#
[root@localhost itbank]# ls -ld /home/itbank
drw-------. 5 itbank itbank 145  1월  2 13:31 /home/itbank    // 600

[cmd]

E:\2_12월_평일12시_리눅스1_Junga>
E:\2_12월_평일12시_리눅스1_Junga>ftp
ftp> open 192.168.8.174
192.168.8.174에 연결되었습니다.
220 (vsFTPd 3.0.2)
사용자(192.168.8.174:(none)): itbank
331 Please specify the password.
암호:
500 OOPS: cannot change directory:/home/itbank
원격 호스트에 의해 연결이 닫혔습니다.            
ftp>
ftp>

//==> 접근불가~!! (owner에 x가 없으므로)

// => 1) (x)

// => 2) (x)

// => 3) (x)

///////////////////// TEST 1 /////////////////////

[puTTY]

[root@localhost itbank]# ls -ld
drwx------. 5 itbank itbank 145  1월  2 13:20 .        // 700
[root@localhost itbank]#

[cmd]

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\user>E:

E:\>cd 2_12*

E:\2_12월_평일12시_리눅스1_Junga>pwd
'pwd'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
배치 파일이 아닙니다.

E:\2_12월_평일12시_리눅스1_Junga>
E:\2_12월_평일12시_리눅스1_Junga>ls
'ls'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
배치 파일이 아닙니다.

E:\2_12월_평일12시_리눅스1_Junga>cd
E:\2_12월_평일12시_리눅스1_Junga

E:\2_12월_평일12시_리눅스1_Junga>
E:\2_12월_평일12시_리눅스1_Junga>dir
 E 드라이브의 볼륨: 새 볼륨
 볼륨 일련 번호: 0AAB-DADF

 E:\2_12월_평일12시_리눅스1_Junga 디렉터리

2017-12-29  오후 02:51    <DIR>          .
2017-12-29  오후 02:51    <DIR>          ..
2018-01-02  오후 12:34    <DIR>          1_압축푼거
2013-05-28  오후 05:56         1,816,712 HangulPuTTY-0[1].60h.setup.exe
2017-12-29  오후 02:52                24 index.html
2018-01-02  오후 12:59    <DIR>          temp
2017-12-18  오후 03:06                33 testfile.txt
2017-12-18  오후 03:06                15 testfile2.txt
2017-12-29  오후 02:51                21 새 텍스트 문서.txt
               5개 파일           1,816,805 바이트
               4개 디렉터리  339,256,086,528 바이트 남음

E:\2_12월_평일12시_리눅스1_Junga>ftp
ftp> open 192.168.8.174
192.168.8.174에 연결되었습니다.
220 (vsFTPd 3.0.2)
사용자(192.168.8.174:(none)): itbank
331 Please specify the password.
암호:
230 Login successful.
ftp>
ftp> pwd
257 "/home/itbank"
ftp>
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
testfile1
226 Directory send OK.
ftp: 0.00초 11000.00KB/초
ftp>
ftp> put index.html
200 PORT command successful. Consider using PASV.
150 Ok to send data.
226 Transfer complete.
ftp: 0.00초 24.00KB/초
ftp>
ftp> quit
221 Goodbye.

E:\2_12월_평일12시_리눅스1_Junga>

[puTTY]

// cmd 접속 끊기 전

[root@localhost itbank]# ls
index.html  testfile1


// cmd 접속 끊은 후

[root@localhost itbank]# rm -rf index.html

반응형
LIST
Posted by 오정oI
, |

최근에 달린 댓글

최근에 받은 트랙백

글 보관함