본문 바로가기

Linux18

14일 마운트 공부 oot@192.168.10.3's password: Last login: Tue Jun 24 20:49:05 2014 from 192.168.10.1 [root /root]$ useradd user2 [root /root]$ passwd user2 Changing password for user user2. New UNIX password: BAD PASSWORD: it is based on a dictionary word Retype new UNIX password: passwd: all authentication tokens updated successfully. [root /root]$ umount /dev/sdc1 umount: /mnt/d2p1: device is busy umount: /mnt.. 2014. 6. 24.
13일 차 리눅스 파일시스템 및 마운트 [root /root]$ cd /dev[root /dev]$ ls sd*sda sda1 sda2[root /dev]$ ls hd*hdc[root /dev]$ ls -l cdromlrwxrwxrwx 1 root root 3 6월 23 19:27 cdrom -> hdc[root /dev]$ init 0[root /dev]$하드가 한개 밖에 없당..그래서 추가 해야함scsi type : 6개 추가 (0.5G)idde type : 2개 추가 (0.5G)그래서 종료후 디스크 추가[root /root]$ cd /dev[root /dev]$ ls sd*sda sda1 sda2 sdb sdc sdd sde sdf sdg ((뒤에 숫자는 파티션) 물리적 하드 추가 할때 마다 a ,b c 로 증가)[root /dev]$ .. 2014. 6. 23.
12일차 cron 명령어. cron - 주기적으로 실행될 작업 예약 at - 한번만 실행될 작업 예약 cron 서비스 데몬은 crond. at 서비스 데몬은 atd. crontab 형식 및 옵션 #crontab --help usage: crontab [-u user] file crontab [-u user] [ -e | -l | -r ] (default operation is replace, per 1003.2) -e (edit user's crontab) -l (list user's crontab) -r (delete user's crontab) -i (prompt before deleting user's crontab) crontab 설정은 아래와 같다. SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbi.. 2014. 6. 20.
11일차 특수 퍼미션 cron, at 명령어 그 외에 아래와 같은 세 가지 퍼미션이 더 있다. 1. s(set UID) (4nnn n은 8진수) : --s------- 소유자 권한에 s 가 있으면 setUID 퍼미션이다.(실행하는 동안 소유자 권한을 갖는다) 2. s(set GID) (2nnn): ------s--- : 그룹 권한에 s 가 있으면 setGID 퍼미션이다.(실행하는 동안 그룹권한을 갖는다) 3. t(sticky bit) (1nnn): --------t : 3자권한에 t 가 있으면 sticky bit 퍼미션이다.(파일을 만들 수 있다. 그러나 파일소유자만 파일을 삭제할 수 있다) sticky bit 퍼미션 [root@river var]# mkdir share [root@river var]# ls -ld share drwxr-xr-x 2.. 2014. 6. 19.
10일차 Process 관리 Process 관리 process는 흔히 실행중인 프로그램을 뜻한다. file과는 다른 의미이다. file은 디스크 상에 존재하며 수동적이다. process는 메모리에 있거나 cpu가 실행하는 상태를 의미한다 예를 들면 디스크의 특정 파티션의 특정 디렉토리에 있는 ls 명령을 실행하면 ls 명령이 메모리에 올라가고 cpu 자원을 할당 받아 실행된다. 이것을 process 라고 하며 실행이 끝나면 메모리에서 완전히 제거된다. 프로세스 관리는 중요하다. 프로세스를 잘못관리하면 시스템 성능이 떨어질 수 있으며 보안상 시스템이 취약해질 수도 있다. 프로세스 상태보기 ps 명령으로 상태를 출력한다. [lee@river ex]$ ps PID TTY TIME CMD 3397 pts/1 00:00:00 bash 357.. 2014. 6. 18.
9일차 파일 권한(Permission) 실습 config root@192.168.10.3's password: Last login: Mon Jun 16 21:22:25 2014 [root /root]$ cd /tmp [root /tmp]$ ls -ld test drwxrwxr-x 2 500 user1 4096 6월 13 20:28 test [root /tmp]$ rm -rf test [root /tmp]$ mkdir test [root /tmp]$ cd test [root /tmp/test]$ mkdir d1 d2 [root /tmp/test]$ ls -l 합계 8 drwxr-xr-x 2 root root 4096 6월 17 19:54 d1 drwxr-xr-x 2 root root 4096 6월 17 19:54 d2 [root /tmp/tes.. 2014. 6. 17.
8일차 Shadow , Group 설정, 문제풀이 Shadow 설정 [root /etc]$ head -n 1 shadow root:$1$xGRfw1g1$3pY17K4KUZNU41dTbGj5q1:16225:0:99999:7::: #(암호를 99999일동안 사용가능) (7일은 암호 만료전 7일 전부터 알려 준다.) [root /etc]$ bc (계산기) bc 1.06 Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For details type `warranty'. 2+2 4 99999/365 273 (interrupt) use quit to exit. (interrupt) use quit t.. 2014. 6. 16.
리눅스에서 서비스 자동 실행 하는 방법 ntsysv 명려어 입력 2013. 3. 3.
728x90
반응형