Cause all that matters here is passing the Red Hat RH302 exam. Cause all that you need is a high score of RH302 Red Hat Certified Engineer on Redhat Enterprise Linux 5 (Labs) exam. The only one thing you need to do is downloading Examcollection RH302 exam study guides now. We will not let you down with our money-back guarantee.
♥♥ 2021 NEW RECOMMEND ♥♥
Free VCE & PDF File for Red Hat RH302 Real Exam (Full Version!)
★ Pass on Your First TRY ★ 100% Money Back Guarantee ★ Realistic Practice Exam Questions
Free Instant Download NEW RH302 Exam Dumps (PDF & VCE):
Available on:
http://www.surepassexam.com/RH302-exam-dumps.html
Q81. CORRECT TEXT
/storage directory on linux server should make available on windows to only Harold with full access but read only to other users and make sure that /storage can access only within example.com domain. Configure to make available.
Answer and Explanation:
1. vi /etc/samba/smb.conf
[global]
netbios name=station?
workgroup=station?
security=user
smb passwd file=/etc/samba/smbpasswd
encrypt passwords=yes
hosts allow= .example.com
[data]
path=/storage
public=no
writable=no
write list=harold
browsable=yes
2. smbpasswd -a harold
3. service smb start
4. chkconfig smb on
/etc/samba/smb.conf. There are some pre-defined section, i. global à use to define the global options, ii. Printers à use to share the printers, iii. homes à use the share the user's home directory.
Security=user à validation by samba username and password. May be there are other users also.
To allow certain share to certain user we should use valid users option.
smbpasswd à Helps to change user's smb password. -a option specifies that the username following should be added to the local smbpasswd file.
If any valid users option is not specified, then all samba users can access the shared data. By Default shared permission is on writable=no means read only sharing. Write list option is used to allow write access on shared directory to certain users or group members.
Q82. CORRECT TEXT
Make Secondary belongs the both users on sysadmin group.
Answer and Explanation:
1. usermod -G sysadmin john
2. usermod -G sysadmin jane
3. Verify by reading /etc/group file
Using usermod command we can make user belongs to different group. There are two types of group one primary and another is secondary. Primary group can be only one but user can belongs to more than one group as secondary.
usermod -g groupname username à To change the primary group of the user
usermod -G groupname username à To make user belongs to secondary group.
Q83. CORRECT TEXT
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:
1. useradd username
2. passwd username
3. usermod -e "date"
example: usermod -e "12 Feb 2006" user4
Verify: chage -l user4
Q84. CORRECT TEXT
There is one partition /dev/hda14 mounted on /data. The owner of /data is root user and root group. And Permission is full to owner user, read and execute to group member and no permission to others. Now you should give the full permission to user user1 without changing pervious permission.
Answer and Explanation:
We know that every files/directories are owned by certain user and group. And Permissions are defines to owner user, owner group and other.
-rwxr-x--- àFull permission to owner user, read and write to owner group and no permission to others.
According to question: We should give the full permission to user user1 without changing the previous permission.
ACL (Access Control List), in ext3 file system we can give permission to certain user and certain group without changing previous permission. But that partition should mount using acl option.
Follow the stepsvi /etc/fstab
/dev/hda14 /data ext3 defaults,acl 0 1Either Reboot or use: mount -o remount /datasetfacl -m
u:user1:rwx /dataVerify using: getfacl /data
Q85. CORRECT TEXT
There are Mail servers, Web Servers, DNS Servers and Log Server. Log Server is already configured. You should configure the mail server, web server and dns server to send the logs to log server.
Answer and Explanation:
According to question, log server is already configured. We have to configure the mail, web and dns server for log redirection.
In mail, web and dns server:
1. vi /etc/syslog.conf
mail.* @logserveraddress
2. service syslog restart
mail is the facility and * means the priority. It sends logs of mail services into log server.
Q86. CORRECT TEXT
You are giving the debug RHCT exam. The examiner told you that the password of root is redhat.
When you tried to login displays the error message and redisplayed the login screen. You changed the root password, again unable to login as a root. How will you make Successfully Login as a root.
Answer and Explanation:
When root unable to login into the system think:
1. Is password correct?
2. Is account expired?
3. Is terminal Blocked?
Do these Steps:Boot the System on Single user mode.Change the passwordCheck the account expire date by using chage -l root command.
If account is expired, set net expire date: chage -E "NEVER" root
1. Check the file /etc/securetty à Which file blocked to root login from certain terminal.
2. If terminal is deleted or commented write new or uncomment.
3. Reboot the system and login as a root.
Q87. CORRECT TEXT
Share the /storage directory only to example.com members. These hosts should get read and write access on shared directory.
Answer and Explanation:
1. vi /etc/exports
/storage *.example.com(rw,sync)
2. service nfs start
3. service portmap restart
4. chkconfig nfs on
5. chkconfig portmap on
In Linux to share the data we use the /etc/exports file. Pattern is:
Path client(permission)
Shared Directory Path, Client can be single host or domain name or ip address. Permission should specify without space with client lists in parentheses.
Q88. CORRECT TEXT
You are giving RHCE exam. Examiner gave you the Boot related problem and told to you that make successfully boot the System. When you started the system, System automatically asking the root password for maintenance. How will you fix that problem?
Answer and Explanation:
Maintenance mode also known as emergency mode. System boots on emergency mode when file system error occurred. It is due to unknown partition, bad filesystem specified in /etc/fstab. To slove follow the steps
1. Give the Root password
2. fdisk -l à Verify the Number of parations.
3. Identify the Root partition, e2label /dev/hda1, e2label /dev/hda2.....
4. Remount the root partation on rw mode: mount -o remount,defaults /dev/hda6 /
5. vi /etc/fstab
Correct all partitions, mount point, mount options, file system etc.
6. Press ctrl+d
Q89. CORRECT TEXT
/data Directory is shared from the server1.example.com server. Mount the shared directory that:
d. when user try to access, automatically should mount
e. when user doesn't use mounted directory should unmount automatically after 50 seconds.
f. Shared directory should mount on /mnt/data on your machine.
Answer and Explanation:
6. vi /etc/auto.master
/mnt /etc/auto.misc --timeout=50
7. vi /etc/auto.misc
8. data -rw,soft,intr server1.example.com:/data
9. service autofs restart
10. chkconfig autofs on
When you mount the other filesystem, you should unmount the mounted filesystem, Automount feature of linux helps to mount at access time and after certain seconds, when user unaccess the mounted directory, automatically unmount the filesystem.
/etc/auto.master is the master configuration file for autofs service. When you start the service, it reads the mount point as defined in /etc/auto.master.
Q90. CORRECT TEXT
Your system is giving error while booting on Runlevel 5 . Make successfully boot your system in runlevel 5.
Answer and Explanation:
While you load the X Window System, you will get the problem. To troubleshoot follow the following steps:
1. Check the /tmp is full ?
2. Check your quota, hard limit is already crossed ?
3. Check xfs service is running ?
4. Boot the system on runlevel 3 and execute the system-config-display command
5. Edit the /etc/inittab to set default runlevel 5.
id:5:initdefault: