Professional Documents
Culture Documents
Rhce Exam Rhel5
Rhce Exam Rhel5
This guide was prepared by looking at each objective, and asking the questions:
-- What could they ask in order to test for knowledge of this objective?, or
-- What kind of troubleshooting might be required?
-- How can this requirement be met?
Q: is used to denote possible questions, and
A: for possible answers.
Note that there may be more than one answer based on what the objective is, or depending which
method is preferred to meet the objective. Some items and ideas were taken from labs in the RHCE
course book, and great care was taken to not give away any hints about what might be on the exam,
other than what the labs and official objectives lead one to infer.
Page 1 of 17
Page 2 of 17
Page 3 of 17
test:
ypwhich
nisdomainname -y
genent services
getent passwd smith
rpcinfo -p
files:
/etc/yp.conf
/etc/sysconfig/network
/etc/pam.d/system-auth
/etc/nsswitch.conf
6) configure autofs
/etc/auto.master
/home/guests /etc/auto.guests
--timeout=60
/etc/auto.guests
*
-rw,soft,intr
server1:/home/guests/&
service autofs restart
chkconfig portmap on
chkconfig autofs on
7) add and manage users, groups, quotas, and File Access Control Lists
Q: Create group, add users, set primary group
A: Use groupadd, useradd, usermod
groupadd -g 1000 groupname
useradd username
usermod -G groupname username
(-G for primary group)
quotas
Q: Setup a 70kb hard block user quota for user tim on /home/tim:
A: Use a Hard Block user quota (or Soft depending on question).
1) modify /etc/fstab
change defaults to usrquota for /home
2) mount -o remount /home
3) quotacheck -cuf /home
4) quotaon /home
5) setquota -u tim 0 60 0 0 /home
or
5a) edquota tim
Page 5 of 17
Page 8 of 17
Page 10 of 17
soft,defaults 0 0
* configure autofs
Automount
Q: Configure automount for nfs mount from nis domain on server1
A:
1) mkdir /net
2) vi /etc/auto.master
# uncomment /net line
/net /etc/auto.net
3) start services
service portmap start
service autofs start
chkconfig autofs on
chkconfig portmap on
Q: Configure automount for nfs mount of /rhome directories from nis domain on server1
A: Create base directory
1) mkdir /rhome
2) vi /etc/auto.master
# copy and modify /misc line
/rhome /etc/auto.rhome
3) vi /etc/auto.rhome
*
-rw,soft.intr server1:/home/guests/&
4) start services
service portmap start
service autofs start
chkconfig autofs on
chkconfig portmap on
Page 12 of 17
Page 13 of 17
Page 15 of 17
Page 16 of 17
Page 17 of 17