You are on page 1of 3

RHEL-6 EXAM Dumps

Q. Password Break and IP Setup:


Reboot the system and run as a Single User Mode
- Fro that Press “a”  “s” or “1”
- Then Use “passwd” command for change the password.

#setup
 Now setup IP [IP, NM, GT, DNS]

# vim /etc/sysconfig/network-script/ifcfg-eth0
ONBOOT=yes
BOOTPROT=static
:x

# vim /etc/hosts

<IP> <Full Domain Name> <Hostname>


[i.e. 172.16.0.10 server10.example.com server10]

# vim /etc/resolv.conf
nameserver <DNS’s IP>
[i.e. nameserver 192.168.0.254]

# chkconfig network on
# chkconfig NetworkManager off

# iptables -F
# service iptables save
# chkconfig iptables on
# init 6

# ping <servername> [i.e. server1.example.com]


# dig <servername> [i.e. server1.example.com]

E-mail: ma.jobayer@yahoo.com Cell No: +88-01712-519101 Page No: 1 out-of 3


Q. yum Client Installation

#cd /etc/yum.repos.d/
#vim /etc/yum.repos.d/server.repo

 Inside the file write


[server]
baseurl=<full path of url>
[i.e. baseurl=ftp://server.example.com/pub/exam/dvd]
gpgckeck=1
gpgkey=file///etc/………
[ for collect the key – Open a new tab and use the command
#find / -name *redhat-release ]
enabled=1
:x
 Now check the yum client
#yum list
#yum install lftp*

***************Now Enjoy the Exam***************


RHCSA
===========
Q. FTP Configure:
# yum install vsftp*
# service vsftpd restart
# chkconfig vsftpd on

Q. NTP Configure:
# system-config-date
 Here add the NTP server name

# service ntpd restart


# chkconfig ntpd on
 For check #ntpdate

E-mail: ma.jobayer@yahoo.com Cell No: +88-01712-519101 Page No: 2 out-of 3


Q. http server configure:

#yum install lftp


#yum install httpd*

#cd /var/www/html
#lftp <source path>
>ls
>get <sourcefile.html>
>exit

#mv <sourcefile.html> index.html


# service httpd restart
# chkconfig httpd on

 For check you can use #elinks

Q. Find

#find / -user <username> >/root/search

Q. Search String

#grep –F <string> <file with path> >/root/lines

Q. Crontab:

#vim <fileName>

 [ --- in the side the file write this. You can see also man file
#man 5 crontab ----]

50 15 * * * echo hello
:x
#crontab –u <username> <fileName>
#crontab –l –u <username>
# service crond restart
# chkconfig crond on

Q. Create the following users, groups, and group memberships:


- A group named sysusers
- A user andrew who belongs to sysusers as a secondary group
- A user susan who also belongs to sysusers as a secondary group
- A user brad who does not have access to an interactive shell on the
system,
and who is not a member of sysusers.
- andrew, susan, and brad should all have the password of password

# groupadd sysusers

# useradd -G sysusers Andrew


# passwd Andrew

# useradd -G sysusers susan


# passwd susan

# useradd -s /sbin/nologin brad


# passwd brad

E-mail: ma.jobayer@yahoo.com Cell No: +88-01712-519101 Page No: 3 out-of 3

You might also like