- 注册时间
- 2008-11-19
- 最后登录
- 2012-2-7
- 在线时间
- 208 小时
- 阅读权限
- 100
- 积分
- 1720
- 帖子
- 144
- 主题
- 37
- 精华
- 0
- UID
- 584
  
 - 签到
- 40
- 注册时间
- 2008-11-19
- 最后登录
- 2012-2-7
- 在线时间
- 208 小时
- 阅读权限
- 100
- 积分
- 1720
- 帖子
- 144
- 主题
- 37
- 精华
- 0
- UID
- 584
|
发表于 2009-12-16 00:54:56
|显示全部楼层
-
-
- morning:
- Part I
- 1. login user root with "P@ssw0rd" password
- 2. ping 192.168.0.254 is ok, and use static ip addr 192.168.0.X/24,stationX.example.com,router: 192.168.0.100,dns server:192.168.0.254
- 3. dig server1.example.com is ok, which dns resolve
- 4. can login to display-manager in run level 5
- 5. make new partitions with 300M size(ext3 fs mount in /mnt/newdir
- 6. create user named neo,set quota for user neo , dd </dev/zero >/home /neo/file bs=1024 count=30000 is ok ;count=70000 is fail
- 7. create two partitions(200M,300M),join vg0,create lv0(270M,ext3) ,extend lv0 to 330M,,mount in /mnt/lv0
- 8. showmount -e localhost, /export is ok
- part II
- 1. boot into run level 3, and login users
- 2. can loggin to login system
- 3. can not boot successfully
- afternoon:
- domain:example.com in 192.168.0.0/24
- domain:cracker.org in 192.168.1.0/24
- part rhct:
- 1. set root passwd is redhat
- 2. installation:
- partitions:
- /boot 128M
- / 2000M
- /usr 2048M
- /var 512M
- /home 512M
- swap 1.5-2 times
- /documents
- RAID0 two partitions,remaining partitions
- installtree: nfs server1:/var/ftp/pub
- selinux enforcing
- iptables disable
- 3. update kernel from ftp://server1/pub/updates
- boot use update kernel defaults
- the original kernel is available
- 4. install telnet-server rpm packages(yum path : ftp://192.168.0.254/pub/Server)
- 5.
- add group sysusers
- add eric and jame belong to group sysusers as secondary group
- add user john with a nologin shell.the user john not belong to group sysusers
- their password is password
- 6.
- create a dir namely /documents/testdir/
- set the group ownership is sysusers
- the group sysusers has write,read,and executable permissions for /documents/testdir/, and other users has no any permissions for this dir
- the user create any files that group ownership is sysusers in this dir
- 7.
- NIS: the nis server is server1.example.com ,and nis domainname is notexample, the guest200X can login to your system (see details below), which X is your station number.
- NOTE:the NIS server sharing the nfs share , for example /home/guests/guest200X for stationX , and guest200X’s home dir is /home/guests/guest200X . So , you must set autofs service to automount the guest200X's home dir on your system when use guest200X login your system.
- 8. POP3: user eric can receive mail from example.com domain
- the users within cracker.org domain can not use it.
- 9. create printer named myprinter (ipp-hostname:server1.example.com,printername:hpprinter-generic-textonly),and send a document file to myprinter and test print.
- 10.set ntp server:192.168.0.254
- 11. forriden ping
- 12. create jobs at every sunday 23:00 to backup /etc/ to /backup/etc"current date"
- Part rhce:
- 1.
- ssh:user eric can ssh eithin example.com
- other domain can not ssh to your system
- 2.
- SMB:set your samba workgroup is CORP
- Share your /documents/ dir with share name is /documents/
- Only example.com domain can use this share
- The share can browseable
- User eric can read access to the share and his home dir with password is password
- 3.
- FTP:anonymous user can access ,within example.com
- Any domain can not access without example.com
- 4.
- SMTP:the user eric can receive the mail that to user jane
- User eric can send/receive mail from remote and localhost
- 5.
- HTTP:download ftp://server1/pub/download/station.html , and do not modify it.
- Put station.html file to your http documents root dir as index.html file
- Access http://stationX.example.com is ok
- Appitional:
- 1.
- Imaps:user eric can receive mail from example.com domain
- Any domain can not use the server without example.com
- Set ssl certificate with the following settings:
- Comman name: stationX.example.com
- Orign unit: GPL
- Mail address: root@stationX.example.com
- other Setting is default
- 2. proxy:the example.com domain can useage it but not any others
- 3. http:download ftp://server1/pub/download/www.html
- set virtual host wwwX.example.com , the documents root is /var/www/virtual
- make the www.html as the index.html for wwwX.example.com
- the example.com domain’s resolve setting is already provide by DNS server server1.example.com
- 30 22 * * 1 cp -a /etc/passwd /storage/testdir$(date +%Y%m%d)
- servic crond restar
-
复制代码 |
附件: 你需要登录才可以下载或查看附件。没有帐号?注册

|