계정, 그룹 연습 테스트
1. 그룹추가 - 그룹명(GID) : linux(600), windows(601), unix(602), solaris(603), other(700)
2. 그룹추가 - 그룹명(GID) : drum(604), star(605), diy(606)
3. 유저추가, 기본그룹(other) - 유저명 : ruby, diamon, perl, python, opal, mixed, clock, ton
4. 유저 암호 추가
5. 그룹지정
계정들 - 적용 그룹(primary)
ruby,diamond - linux
python, perl - windows
clock, opal - unix
mixed, ton - other
계정들 - 적용 그룹(secondary)
ruby, ton - diy
perl, clock - star
mixed,clock,python,ruby - drum
ton - rnd, evel, market
1. groupadd -g 600 linux;groupadd -g 601 windows;groupadd -g 602 unix;groupadd -g 603 solaris;groupadd -g 700 other
2. groupadd -g 604 drum;groupadd -g 605 star;group -g 606 diy
3. useradd -g other ruby;useradd -g other diamon;useradd -g other perl;useradd -g other python;useradd -g other opal;useradd -g other mixed;useradd -g other clock;useradd -g other ton;
4. passwd ruby, passwd diamon, passwd perl, passwd pyton, passwd opal, passwd mixed, passwd clock, passwd ton
5.
1) usermod -g linux ruby; usermod -g linux diamon; usermod -g windows python;usermod -g windows perl; usermod -g unix clock;usermod -g unix opal;usermod -g other mixed;usermod -g other ton
2) usermod -G diy,drum ruby; usermod -G diy ton; usermod -G star perl;usermod -G star,drum clock;usermod -G drum mixed; usermod -G drum python;
모범답안
1.
groupadd -g 600 linux
groupadd -g 601 windows
groupadd -g 602 unix
groupadd -g 603 solaris
groupadd -g 700 other
2.
group -g 603...(생략
3.
useradd -g other ruby
useradd -g other diamon
useradd -g ohter perl
useradd -g other python
useradd -g other opal
useradd -g other mixed
useradd -g other clock
useradd -g other ton
4.passwd로 일일이 해줘야만 한다.
passwd ruby
5.usermod -g linux ruby ..생략 : primary
secondary : vi로 해도 된다.
이 글은 스프링노트에서 작성되었습니다.








2013/05/09 17:27








