Ensure that DNS is used to resolve the LDAP server name.
Question 3
Question
Refer to the Exhibit.
[root@server1 ~ # 1s -1 /usr/bin/passwd
-r-x—x—x 1 root root 21200 oct 7 21:01 /usr/bin/passwd [root@server1 ~] # 1s -1 /etc/shadow
-r - - - - - - - - 1 root root 1818 Mar 7 10:31 /etc/shadow] [root@server1 ~]#
A user smith is on your system complained that he is not able to change his password. As the administrator, you long-listed the passwd command and the /etc/shadow file.
View the Exhibit that shows the output.
What must you do to enable this user to change his password?
Answer
Set SGID on /usr/bin/passwd.
Set SUID on /usr/bin/passwd.
Set sticky bit on /usr/bin/passwd.
Set read and write permission for others on /etc/shadow.
Set permission on /etc/shadow to 600.
Question 4
Question
What happens if you reboot a Ksplice Uptrack-enabled system when the following conditions exist?
1. The Internet is unreachable due to a failing router.
2. The INSTALL_ON_REBOOT property is set to YES in /etc/uptrack/uptrack.conf.
Answer
The Ksplice updates are applied early in the boot sequence despite the fact that the Internet is unreachable.
The Ksplice updates are not applied during the boot sequence, but they will be applied as soon as the Internet becomes reachable again.
The updates are not applied during the boot sequence and will not be applied after the Internet has become reachable again.
The system waits in the boot sequence for the internet to become reachable again.
The system boots to single-user mode.
Question 5
Question
Which two statements are true about administering the use of the Sudo command in Oracle Linux?
Answer
visudo will never save the /etc/sudoers file if there are syntax errors in the file after editing.
visudo prompts for an action if there are syntax errors in the /etc/sudoers file after editing.
Using vi to edit /etc/sudoers opens the file read only.
Multiple administrators may edit the /etc/sudoers file simultaneously using visudo but only one may save the edited result.
Multiple administrators may edit the /etc/sudoers file simultaneously using vi but only one may save the edited result.
Question 6
Question
Which four statements are about the use of these files and directories by UPSTART?
/etc/rc.d/rc is executed each time the /sbin/init command us used, to change services appropriately for the target run level.
/etc/rc.d/rc.local is executed at boot time, before the run level processing takes place.
/etc/rc.d/rc is executed at boot time, to start the appropriate services for the run level defined in /etc/initab.
/etc/rc.d/rc.sysinit is executed once at boot time, regardless of which run level is set.
/etc/rc.d/rc.sysint is executed each time the /sbin/init command is used to change the run level.
/etc/rc.d/rc3.d contains links to scripts in /etc/init.d.
/etc/rc.d/rc is executed after /etc/rc.d/rc.local.
Question 7
Question
Examine these details from the sysctl.conf file and from the proc file system:
[root@FAROUT fs]# grep aio-max-nr /etc/sysctl.conf
# oracle-rdbms-server-11gR2-preinstall setting for fs.aio-mx-nr is 1048576 fs.aio-max-nr = 1048576
[root@FAROUT fs] # cat /proc/sys/fs/aio-max-nr 1048576
[root@FAROUT fs] # rpm –q libaio Libaio-0.0.107-10.e16.x86_64 Libaio-0.3.107-10.e76.i686
Which statement is true about the setting created by oracle-rdbms-server-11gR2-preinstall?
Answer
It allows a process to request an I/O without waiting for reply.
It allows two or more processes to request I/O simultaneously while running on different CPUs.
It allows a process to request a single I/O without awaiting for a reply. However, if a second I/O is requested, then the process must wait.
It allows two or more processes to request I/Os and then to both be notified when both of them complete.
Question 8
Question
You use the chkconfig command to administer one of the services on your Oracle Linux system:
[root@FAROUT ~]# chkconfig vncserver off [root@FAROUT ~] #
No changes have been made to the init script for the service.
Which two statements are true regarding the effects of Issuing this command?
Answer
The vncserver service is shut down.
The vncserver service configuration is disabled only for those run levels for which it is currently enabled.
The vncserver service configuration is disabled for run levels 2, 3, 4 and 5.
The vncserver service remains in the same state it was in before the command was issued.
The vncserver service configuration is disabled for run levels 3 and 5 only.
Question 9
Question
Examine the commands used by root to create the chrooted environments in the /jail directory:
# mkdir /jail/bin/jail/lib64
# cp /bin/bash/jail/bin
linux-vdso.so.1 => (0x00007fff68dff000)
libtinfo.so.5 => /lib64/libtinfo.so.5 (0x00000033e00000) lid1.so.2 => /lib64/libc.so.6 (0x00000033e1600000) /lib64/id-linix-86-64.so.2 (0x00000033e0e00000)
# cp /lib64/libtinfo.so.5/jail/lib64
# cp /lib64/libd1.so.6 /jail/lib64
# cp /lib64/libc.so.6 /jail/lib64
# cp /lib64/id-linux-x86-64.so.2 /jail/lib64
The user root then issues this command:
# chroot /jail
What is the output from the cd, pwd, and 1s commands?
Answer
bash-4.1# cd
bash-4.1# pwd
/root
bash-4.1# 1s
bash” 1s: command not found
bash-4.1# cd
bash: cd: /root: No such file or directory
bash-4.1# pwd
/
bash-4.1 # 1s
bash: 1s: command not found
bash-4.1# cd
bash: cd: command not found
bash: pwd: command not found
bash-4.1# 1s
bash: 1s; # cd
bash: cd: /root: unable to access chrooted file or directory /root
bash-4.1# pwd
/
bash-4.1 # 1s
bin lib64
bash-4.1# cd
bash: cd: /root: No such file or directory
bash-4.1# pwd
/
bash-4.1# 1s
bin lib64
Question 10
Question
Examine the partition table:
Disk /dev/sdd: 107 MB
Sector size (logical/physical): 512B/512B Partition Table: msdos
Number StartEndSizeTypeFileSystemFlags 11049KB79.7MB78.6MBPrimary
Which program cannot be used to add another partition on this device?