Professional Documents
Culture Documents
o Netmask: 255255.255.0
o Gateway: 192168.01
o DNS: 192.168.0.254
a. Setenforce 0 (setting the sestatus to Permissive Mode), but make sure this is in Enforcing mode in
/etc/sysconfig/selinux)
b. Enter setup at the command prompt and set the static IP & Hostname
2. Create a
d. User sarah who does not have access to an interactive shell & who is not a member of sysmgrs
group
A. UserAdministration:
a. groupadd sysmgrs
b. useradd G sysmgrs natasha
b. The directory should be readable, writable, and accessible to the members of sysmgrs, but not to
any other user (it is understood that root has access to all the files and directories on the system)
c. Files created in /shared/sysmgrs automatically have group ownership set to sysmgrs group.
A. ACL:
a. mkdir p /shared/sysmgrs
a. Tue updated kernel is the default kernel when the system is rebooted.
A. Kernel Update
a. wget ftp://instructor.example.com/pub/updates/kernel*
c. Reboot the system to confirm that you are the kernel is updated successfully and to ensure that you
are logged in to the new kernel by default
5. The user Natasha must configure a cron job that runs daily @ 15:25 local time and executes:
a. /bin/echo Helloo
A. Crontab e u natasha
B. 23 14 * * * /bin/echo Hello
6. Configure your machine as LDAP client. LDAP server and LDAP directory tree information will be
given in the exam:
a. ldapuserX should be able to log into your system, where X is your s tation number, but will not have
a home directory until you have completed the autofs requirement.
A. LDAP Client
a. system-config-authentication
e. while you are able to log in as any of the user, ldapuser1 through ldapuser10 the only homedirectory
that is accessable from your system is ldapuserX
iii. NOTE: Now check login through your ldapuserX from the terminal & only your
stat ion ldapuser will get the home directory
A. AUTOFS:
d. chkconfig autofs on
8. Copy the file /etc/fstab to /var/tmp. Configure the permissions of /var/tmp/fstab so tha:
e. User harry can neither read nor write the file /var/tmp/fstab
f. All other users (current or future) have the ability to read file /var/tmp/fstab
A. ACL:
a. mkdir /var/tmp
b. cp /etc/fstab /var/tmp/
c. getfacl /var/tmp/fstab
b. DELETE THE EXISTING NTP servers AND ADD THE instructor.example.com & press TAB
c. ntpq p (To verify the NTP Server the system is listening to)
e. chkconfig ntpd on
10. Configure your system for FTP Server for anonymous download
i. base
ii. name=base
iii. baseurl=<URL>
e. chkconfig vsftpd on
A. LVM RESIZE:
d. umount /home
h. mount a
i. FOR LVM-INCREASE
c. partx a /dev/vda
e. swapon /dev/vdaN
f. swapon a
h. vim /etc/fstab
13. Create the LV of size 50 Physical Extent value by creating vg of size 16MB& mount it on /mnt/data2
directory
A. LVM
f. mkdir /mnt/data2
g. vim /etc/fstab
a. Download ftp://instructor.example.com/pub/rhce/station.html
A. APACHE
b. chkconfig httpd on
c. cd /var/www/html
d. wget ftp://instructor.example.com/pub/rhce/station.html
e. mv station.html index.html
i. <VirtualHost< IP>:80>
iv. </VirtualHost>
15. Find a file created by a user harry and copy it into /root/findfile directory
A. FIND:
a. mkdir /root/findfile
16. Find a string root from the file: /etc/passwd and copy that string in a /root/test file
A. User Administration: