Professional Documents
Culture Documents
Sometimes Graphical mode is in error. Then you login your pc in text mode
#vi /etc/inittab
line no. 18
id:5:initdefault
remove # symbol of the last line(by default no #symbol)
:wq
#service xfs restart
#chattr -i /etc/X11/xorg.conf
#system-config-display
Open terminal in Graphics mode and type ‘hostname’ command for checking your machine hostname
1. The examiner can log into your system as root using the password uX4L7jWR.
The home directory must be /root.
Ans: #pwconv
‘passwd ‘command for changing root password
2. ping 192.168.0.254 is successful, and your system uses static networking as
described in /root/network.txt
4. Your system has a new 300MB partition mounted under /mnt/policy with a 300MB
ext3 filesystem. Note: because partition sizes are seldom exactly what is specified when they are
created, anything within the range of 275 to 375MB is acceptable .
Ans: fdisk –l
fdisk /dev/hda
type ‘n’ buttonenter
first cylindersize: enter
last cylindersize:+300M enter
type ‘w’ for save and exit
#partprobe
#mkfs.ext3 /dev/hda10(new partition)
#mkdir /mnt/policy
#vi /etc/fstab
type
/dev/hda10 /mnt/policy auto defaults 0 0
:wq
#mount –a
#df (display mounted partition size information)
/documents *(rw,sync)
:wq
#service portmap restart
#service nfs restart
6.Wildcard:(T06) the requirement described in /root/wildcard is met
YUM ftp://server1.example.com/pub/Server
Ans: #cd /etc/yum.repos.d
#cp rhel-deguginfo.repo abc.repo
#vim abc.repo
change ‘base url’ line and enabled yum
baseurl=ftp://server1.example.com/pub/Server
enabled = 0 1 (change to 1)
:wq
#passwd tony
New password: password
Retype password: password
line no.7
net.ipv4.ip_forward=0 --- 1 (change to 1)
:wq
6. Set up thedefault local print queue to forward jobs to the IPP (CUPS) print
queuestationxonserver1.example.com, where x is your station number. Configure this printer as ‘Generic-
text’ only print queue.
Note: The queue stationx on server1 dumps print jobs into the file http://server1/printers/stationx.
This file can be examined to confirm that you have configured the print queue correctly.
Select printer name(station4) in side bar click ‘Make Default Printer’ and ‘Print
test page’
close
#chkconfig network on
#chkconfig cups on
7. The user tony must configure a cron job that runs daily at 16:45 local time and executes
/bin/echo ciao
:wq
#service crond restart
#chkconfig crond on
8. Bind to the NIS domain GELATO provided by 192.168.0.254 for user authentication. Note the
following:
nisuserx should be able to log into your system, where x is your station number, but will not have
a home directory until you have completed the autofs requirement below
All NIS users have a password of password
Ans: #authconfig-tui
click ‘Use NIS’Next
type Domain name and server address
Domain GELATO
Server 192.168.0.254
ok
login your user (eg:username is nisuser10,if your station no. is 10) and password
is password
we can’t get home directory
9. Configure autofs to automount the home directories of NIS users. Note the following:
server1.example.com (192.168.0.254) NFS-exports /rhome/stationx to your system, where
x is your station number
nisuserx's home directory is server1.example.com:/rhome/stationx/nisuserx
nisuserx's home directory should be automounted locally beneath /rhome as /rhome/nisuserx
home directories must be writable by their users
While you are able to log in as any of the users nisuser1 through nisuser20, the only home
directory that is accessible from your system is nisuserx.
/rhome /etc/auto.misc
:wq
#vi /etc/auto.misc
Login your user ,then we get home directory of that particular user
10. Copy the file /etc/fstab to /var/tmp. Configure the permissions of /var/tmp/fstab so that
Then click ‘show advanced option’ enable ‘synchronize system clock before
starting service’
192.168.0.0/255.255.255.0 – example.com
192.168.1.0/255.255.255.0 – my133t.org
[common]
comment = public stuff
path = /common
valid users = paula
public = yes
browseable = yes
writable = yes
hosts allow = 192.168.0. 127.
:wq
#smbpasswd -a paula
New smb password: password
Retype New smb password: password
#service smb restart
#chkconfig smb on
5.Implement a web server for the site http://stationX.example.com, then perform the following steps:
Download ftp://server1.example.com/pub/rhce/station.html
Rename the downloaded file to index.html
Copy this index.html to the DocumentRoot of your web server
Do NOT make any modifications to the content of index.html
ssl_cert_file = /etc/pki/dovecot/certs/dovecot.pem
ssl_key_file = /etc/pki/dovecot/private/dovecot.pem
:wq
#vi /etc/hosts.deny
dovecot : ALL EXCEPT 192.168.0.0/255.255.255.0
:wq
#service dovecot restart
#chkconfig dovecot on
2.Implement a web proxy server bound to port 8080.
Clients within example.com should have access to your proxy server
Clients outside of example.com should NOT have access to your proxy server
PREPARED BY: