码迷,mamicode.com
首页 > 其他好文 > 详细

RHCSA

时间:2016-11-24 19:46:03      阅读:214      评论:0      收藏:0      [点我收藏+]

标签:ceshi

1.passwd

  examwestos

2.hostnamectl set-hostname station.domain24.example.com

 

4.pvcreate /dev/vdb1

  vgcreate datastore /dev/vdb

  lvcreste -L 400M -n database datastore

5.fdisk /dev/vdb

  n

  t

  l

  82

  vim /etc/fstable

6.setenforce 1

7.groupadd -g 600 sysadms

8.useradd -u 2013 tommy

  passwd

  redhat

9.useradd -s /bin/bash Jimmy

  passwd

  redhat

10.useradd -G sysadms natasha

  passwd

  redhat

  useradd -G sysadms natasha

  passwd

  redhat

11.mkdir /home/materials

  chgrp -R sysadms /home/materials

  chmod -R +t /home/materials

12.cp /etc/fstab /var/tmp/

  setfacl -m -u:harry:0 /var/tmp/fstab

  setfacl -m -u:harry:7 /var/tmp/fstab

  chmod 774 /var/tmp/fstab

13.su - natashacrontable -u natasha -u

at 14:2323 14 * * * /bin/echo hiya

at>/bin/echo hiya

at><EOT>

14.NTP客户端

  vim /etc/chrony.conf

  servers 172.25.254.254

  local stratum 10

15.find / -group mail >/root/findresults

16.grep -i ich /usr/share/mime/packages/freedesktop.org.xml | sed ‘s/ //g‘ > /root/lines

17.vim /etc/vsftpd/vsfpd.conf

  anon_upload_enable=YES

  systemctl enable vsftpd

18.vim LDMP.sh

  #!/bin/bash

  yum install sssd krb5-workstation autofs -y &> /dev/null

  echo "config ldapauth client ing. . ."

  authconfig \

  --enableldap \

  --disableldappauth \

  --enableldaptls \

  --ldaploadcacert=http://172.25.254.254/pub/example-ca.crt \

  --ldapserver=classroom.example.com" \

  --ldapbasedn="dc=example,dc=com" \

  --krb5realm="EXAMPLE.COM" \

  --krb5kdc="classroom.example.com" \

  --krb5adminserver="classroom.example.com" \

  --enablesssd \

  --enablesssddayth \

  --update

19.echo /home/guest /etc/auto.ldap >>/etc/auto.master

  echo "*172.25.254.254:/home/guest/&" >> /etc/auto.ldap

 

 


RHCSA

标签:ceshi

原文地址:http://12118369.blog.51cto.com/12108369/1876098

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!