Pass the RedHat RHCT RH202 Questions and answers with CertsForce

Viewing page 3 out of 5 pages
Viewing questions 21-30 out of questions
Questions # 21:

Add a user named user4 and make primarily belongs to training group. As well account should expire on 30 days from today.

Answer and Explanation:

    useradd username

    passwd username

    usermod -e “date”

example: usermod -e “12 Feb 2006” user4

Verify: chage –l user4


Expert Solution
Questions # 22:

Create the user named eric and deny to interactive login.

Answer and Explanation:

    useradd eric

    passwd eric

    vi /etc/passwd

    eric:x:505:505::/home/eric:/sbin/nologin

Which shell or program should start at login time is specified in /etc/passwd file. By default Redhat Enterprise Linux assigns the /bin/bash shell to the users. To deny the interactive login, you should write /sbin/nologin or /bin/false instead of login shell.


Expert Solution
Questions # 23:

Install the Cron Schedule for david user to display “Hello” on daily 5:30.

Answer and Explanation:

    Login as a root user

    cat >schedule.txt

30 05 * * * /bin/echo “Hello”

3. crontab –u david schedule.txt

4. service crond restart

The cron system is essentially a smart alarm clock. When the alarm sounds, Linux runs the commands of your choice automatically. You can set the alarm clock to run at all sorts of regular time intervals. Alternatively, the at system allows you to run the command of your choice once, at a specified time in the future.

Red Hat configured the cron daemon, crond. By default, it checks a series of directories for jobs to run, every minute of every hour of every day. The crond checks the /var/spool/cron directory for jobs by user. It also checks for scheduled jobs for the computer under /etc/crontab and in the /etc/cron.d directory.

Here is the format of a line in crontab. Each of these columns is explained in more detail:

#minute, hour, day of month, month, day of week, command

*        *     *             *      *            command

Entries in a crontab Command Line

Field

Value

Minute

0-59

Hour

Based on a 24-hour clock; for example, 23 = 11 p.m.

Day of month

1-31

Month

1-12, or jan, feb, mar, etc.

Day of week

0-7; where 0 and 7 are both Sunday; or sun, mon, tue, etc.

Command

The command you want to run


Expert Solution
Questions # 24:

There is a FTP server 192.168.0.254 and all required packages are dumped in /var/ftp/pub of that server and anonymous login is enabled. Install the Redhat Enterprise Linux 5 as an anonymous by creating following partitions:

/1000

/boot200

/home1000

/var1000

/usr4000

swap2X256 (RAM SIZE)

Answer and Explanation:

Note: Examiner will provide you the Installation startup CD. And here mentioned size may vary see on the exam paper.

1.Insert the CD on CD-ROM and start the system.

2.In Boot: Prompt type linux askmethod

3. It will display the Language, keyboard selection.

4. It will ask you for the installation method.

5. Select the FTP from the list

6. It will ask the IP Address, Net mask, Gateway and Name Server. Select Use

Dynamic IP Configuration: because DHCP Server will be configured in your exam lab.

7. It will ask for the FTP site name and Redhat Enterprise Linux Directory.

Specify the FTP Server: 192.168.0.254

Directory: pub  Because anonymous login on /var/ftp.

8. After Connecting to the FTP Server Installation will start. Go up to the partition screen by selecting the different Options.

9. Create the partition According to the Question because Size and what-what partition should you create at installation time is specified in your question

10. Then select the MBR Options, time zone and go upto package selections.

It is another Most Important Time of installation. Due to the time limit, you should be

care about the installation packages. At Exam time you these packages are enough.

X-Window System

GNOME Desktop

(these two packages are generally not required)

Administration Tools.

System Tools

Windows File Server

FTP Servers

Mail Servers

Web Servers

Network Servers

Editors

Text Based Internet

Server Configuration Tools

Printing Supports

When installation will complete, your system will reboot. Jump for another Question.


Expert Solution
Questions # 25:

One NIS Domain named rhce.com is configured in your lab, server is

192.168.0.254. rhce100, rhce200,rhce300 user are created on domain server.

Make your system as a member of rhce.com domain. Make sure that when nis user login in your system home directory should get by them. Home directory is separately shared on server eg /home/stationx/ where x is you station number.

Answer and Explanation:

1. use the authconfig or system-config-authentication

2. Select the [*] USE NIS

3. Type the NIS Domain: rhce.com

4. Type Server 192.168.0.254 then click on next and ok

5. You will get a ok message.

6. vi /etc/auto.master and write at the end of file

/home/stationx /etc/auto.home --timeout=60

7. vi /etc/auto.home and write

* -rw,soft,intr 192.168.0.254:/home/stationx/&

Note: please specify your station number in the place of x.

8. Service autofs restart

9. Login as the rhce1 or rhce2 or rhce3 on another terminal will be

Success.

According to question, rhce.com domain is already configured. We have to make a client of rhce.com domain and automatically mount the home directory on every client. To make a member of domain, we use the autheconfig or system-config-authentication command. There a are lots of authentication server i.e NIS, LDAB, SMB etc. NIS is a RPC related Services, no need to configure the DNS, we should specify the NIS server address.

Here Automount feature is available. When user tried to login, home directory will automatically mount. The automount service reads the configuration from /etc/auto.master file.

On /etc/auto.master file we specified the mount point the configuration file for mount point.


Expert Solution
Questions # 26:

Make on /data that only the user owner and group owner member can fully access.

Answer and Explanation:

1.chmod 770 /data

2.Verify using : ls –ld /data

Preview should be like:

drwxrwx--- 2 root sysadmin 4096 Mar 16 18:08 /data

To change the permission on directory we use the chmod command. According to the question that only the owner user (root) and group member (sysadmin) can fully access the directory so: chmod 770 /data


Expert Solution
Questions # 27:

Make user1, user2 and user3 belongs to training group.

Answer and Explanation:

    usermod -G training user1

    usermod -G training user2

    usermod -G training user3

    Verify from : cat /etc/group

There are two types of group, I) primary group II) Secondary or supplementary group.

      Primary Group: Primary group defines the files/directories and process owner group there can be only one primary group of one user.

      Secondary Group is used for permission. Where permission are defined for group members, user can access by belonging to that group.

Here user1, user2 and user3 belong as supplementary to training group. So these users get the permission of group member.


Expert Solution
Questions # 28:

One New Kernel is released named kernel-hugemem. Kernel is available on ftp://server1.example.com under pub directory for anonymous. Install the Kernel and make previous new kernel is default to boot System.

Answer and Explanation:

    rpm -ivh ftp://server1.example.com/pub/kernel-hugemem-*

2. vi /etc/grub.conf

Set the default to new kernel

default=0

Example of /etc/grub.conf

default=0

timeout=5

splashimage=(hd0,0)/grub/splash.xpm.gz

hiddenmenu

title Red Hat Enterprise Linux ES (2.6.9-5.ELhugemem)

root (hd0,0)

kernel /vmlinuz-2.6.9-5.ELhugemem ro root=LABEL=/1 rhgb quiet

initrd /initrd-2.6.9-5.ELhugemem.img

title Red Hat Enterprise Linux ES (2.6.9-5.EL)

root (hd0,0)

kernel /vmlinuz-2.6.9-5.EL ro root=LABEL=/1 rhgb quiet

initrd /initrd-2.6.9-5.EL.img

rpm command is used to install, update and remove the rpm package. -ivh option is install, verbose, and display the hash mark.


Expert Solution
Questions # 29:

Make user1, user2 and user3 belongs to training group.

Answer and Explanation:

    usermod -G training user1

    usermod -G training user2

    usermod -G training user3

    Verify from : cat /etc/group

There are two types of group, I) primary group II) Secondary or supplementary group.

    Primary Group: Primary group defines the files/directories and process owner group there can be only one primary group of one user.

    Secondary Group is used for permission. Where permission are defined for group members, user can access by belonging to that group.

Here user1, user2 and user3 belong as supplementary to training group. So these users get the permission of group member.


Expert Solution
Questions # 30:

Install the dialog-*

Answer and Explanation:

Questions asking you to install the dialog package from the server. In your Lab FTP server as well as NFS server are configured. You can install either through FTP or NFS.

1.Just Login to server1.example.com through FTP: ftp server1.example.com

2.Enter to pub directory: cd pub

3.Enter to RedHat/RPMS: cd RedHat/RPMS

4.Download the Package: mget dialog-*

5.Logout from the FTP server: bye

6.Install the package: rpm -ivh dialog-*

7.Verify the package either installed or not: rpm -q dialog


Expert Solution
Viewing page 3 out of 5 pages
Viewing questions 21-30 out of questions