CORRECT TEXT
Add a new logical partition having size 100MB and create the data which will be the mount point for the new partition.
Answer:
CORRECT TEXT
Add a new logical partition having size 100MB and create the data which will be the mount point for the new partition.
Answer:
CORRECT TEXT
Configure iptables, there are two domains in the network, the address of local domain is 172.24.0.0/16 other domain is 172.25.0.0/16, now refuse domain 172.25.0.0/16 to access the server.
Answer: below
✑ iptables -F
✑ service iptables save
✑ iptables -A INPUT -s 172.25.0.0/16 -j REJECT ✑ service iptables save
✑ service iptables restart
CORRECT TEXT
Configure the verification mode of your host account and the password as LDAP. And it can login successfully through ldapuser40. The password is set as "password". And the certificate can be downloaded from http://ip/dir/ldap.crt. After the user logs on the user has no host directory unless you configure the autofs in the following questions.
Answer: system-config-authentication
LDAP Server: ldap//instructor.example.com (In domain form, not write IP)
OR
# yum groupinstall directory-client (1.krb5-workstation 2.pam-krb5 3.sssd)
# system-config-authentication
CORRECT TEXT
Notes:
NFS NFS instructor.example.com:/var/ftp/pub/rhel6/dvd
YUM http://instructor.example.com/pub/rhel6/dvd
ldap http//instructor.example.com/pub/EXAMPLE-CA-CERT
Install dialog package.
Answer: yum install dialog
CORRECT TEXT
Create one partitions having size 100MB and mount it on data.
Answer:
CORRECT TEXT
You are new System Administrator and from now you are going to handle the system and your main task is Network monitoring, Backup and Restore. But you don’t know the root password. Change the root password to redhat and login in default Runlevel.
Answer: When you Boot the System, it starts on default Runlevel specified in /etc/inittab:
Id:?:initdefault:
When System Successfully boot, it will ask for username and password. But you don’t know the root’s password. To change the root password you need to boot the system into single user mode. You can pass the kernel arguments from the boot loader.
CORRECT TEXT
Create a new logical volume according to the following requirements:
The logical volume is named database and belongs to the datastore volume group and has a size of 50 extents.
Logical volumes in the datastore volume group should have an extent size of 16 MB.
Format the new logical volume with a ext3 filesystem.
The logical volume should be automatically mounted under /mnt/database at system boot time.
Answer: fdisk -cu /dev/vda
partx -a /dev/vda
pvcreate /dev/vdax
vgcreate datastore /dev/vdax -s 16M
lvcreate-l 50 -n database datastore
mkfs.ext3 /dev/datastore/database
mkdir /mnt/database
mount /dev/datastore/database /mnt/database/ df -Th
vi /etc/fstab
/dev/datastore /database /mnt/database/ ext3 defaults 0 0 mount -a
CORRECT TEXT
Create one partitions having size 100MB and mount it on data.
Answer:
CORRECT TEXT
Configure /var/tmp/fstab Permission.
Copy the file /etc/fstab to /var/tmp/fstab. Configure var/tmp/fstab permissions as the following:
Owner of the file /var/tmp/fstab is Root, belongs to group root File /var/tmp/fstab cannot be executed by any user
User natasha can read and write /var/tmp/fstab User harry cannot read and write /var/tmp/fstab
All other users (present and future) can read var/tmp/fstab.
Answer: cp /etc/fstab /var/tmp/
✑ /var/tmp/fstab view the owner setfacl -m u:natasha:rw- /var/tmp/fstab setfacl -m u:haryy:— /var/tmp/fstab
Use getfacl /var/tmp/fstab to view permissions
168.1.0/24 Network’s Host.
Answer: ✑ vi /etc/sysconfing/network NETWORKING=yes HOSTNAME=station?.example.com GATEWAY=192.168.0.254
service network restart