2014. 7. 31. 17:24
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
Test : x : 500 : 500 : : /home/test : /bin/bash
id -> 관리자는 uid=0
cat /etc/passwd | head -1
cat /etc/shadow | head -1
md5암호화는 $1으로 시작함
!! -> 비밀번호 초기화 안 한 상태
cat /etc/group | head -1
계정 하나 만들떄 자동 으로 그룹 생성됨
useradd
usermod
userdel -rf
passwd
su -
su ( 기존의 사용자 환경변수 그대로 가져감)
-> echo $PATH 가 다르게 나옴
/etc/skel -> 새계정의 홈에 기본 파일로 복사되어 지는 파일들
- cat을 응용해 파일 내용 삽입하기
- uid를 변경하면 일반 유저로도 root계정 로그인 가능해짐
passwd파일에 /sbin/nologin을 기본 쉘로하면 계정이 잠김
'Linux' 카테고리의 다른 글
permission (0) | 2014.08.11 |
---|---|
controlling VI and modifying passwd, shadow, /skel (0) | 2014.08.01 |
configuring basic linux condition (0) | 2014.07.30 |
making file using "cat" and other commands (0) | 2014.07.28 |
ways to remove the contents of a file using "echo" "output redirection marks and "cat" (0) | 2014.07.25 |