手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

红帽RHCSA及RHCE认证练习题及操作步骤

[日期:2012-06-18] 来源:Linux社区  作者:Linux [字体:大 中 小]

#目录权限

 

Create directory  /admin/sales  /admin/devel   /admin/training

/admin/sales  owner is root ,group is admin  ,all users in the directory can create documents, but the files and directorys you created  automatic for group admin, the owner for founder itself, other users without any access.

/admin/devel  owner is root ,group is root , all users in the directory can create documents, but can't delete other files created by the user.

/admin/training  the owner is root ,group is root ,user root has all the limits of authority, other users without any access, except user alex can write and read in this directory.

 

1’mkdir   /admin  cd  /admin

2’mkdir {sales, devel ,training}

3’chgrp sales ;chmod  2770  sales

4 ‘chmod  1777  devel /

5chmod  770  training

6’setfacl –m u:alex:rwx  training/     {若要求对此目录下创建的文件适当权限, setfacl  -m  d:g:admin:rw  training }

7’ll : getfacle  training/

 

#内核升级

1’yum –y  install  lftp*

2’lftp  192.168.0.254

3’get  kernel

4’rpm   –ivh   kernel*

5’vim  /boot/grub/grub.conf  & /etc/grub.conf

#LDAP

Join ldap domain , dc=example, dc = com ,server = instructor.example.com

Certificate from :ftp://192.168.0.254/pub/example-cd.crt

To be able to use ldapuserX0 on your machine

1’system-config-authentication

2’

3’su – ldapuser1

4’exit

#NTP server

 

1’system-config-date

2’ 添加 网络

 

#自动挂载  ldapuser1

/ldaphome/ldapuserX  on the server  automatic mount on the directory /ldaphome on your machine.

 

1’ showmount –e 192.168.0.254   & getent passwd  ldapuserX

2’vim   /etc/auto.mater      /ldaphome       /etc/auto.misc

3’vim   /etc/auto.misc 

ldapuserX   -fstype=nfs                192.168.0.254:/ldaphome/ldapuserX

*          -fstype=nfs                            192.168.0.254:/ldaphome/&

4’mkdir  /home/guests; cd /home/guests; ln –s –d  /ldaphome/ldapuserX  ldapuserX

5’ ’service autofs stop ,service autofs start;  chkconfig  autofs  on

6’su – ldapuserX

 

#WEB

Download from the service ftp://192.168.0.254/pub/test/  exam.html

Rename  index.html ,put it in /var/www/html

http://station.domainX0.example.com to visit

 

1’lftp 192.168.0.254    get exam.html

2’yum   –y   install   httpd

3’cp exam.html        /var/www/html/index.html

4’vim   /etc/hosts  [进行主机名解析]

5’service  httpd  start ; chkconfig  httpd  on

6’firefox:查看

 

#FTP

Realize anonymous download

 

1’ yum  -y  install  vsftpd

2’service vsftpd start; chkconfig  vsftpd  on

3’ cd /var/ftp/; mkdir  mmm/;cd  pub/ ; touch file1

4’lftp  192.168.0.9

5’ get file1

linux
相关资讯       RHCSA 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款