Oracle Linux 5 and 6 System Administration
Question No: 41
Which three statements are true concerning the use of open SSH utilities?
SCP always requires a passphrase to be used.
SCP permits copies between two remote hosts.
SFTP permits transfers between two remote hosts.
SSH may be used to execute a single command on a remote host instead of executing the login shell on the remote host.
SFTP may be used to execute a command on the remote server.
Question No: 42
Which two actions are the required steps to prevent: non-root ssh access to the system?
Ensuring that /etc/pam.d/sshd includes: account sufficient pam_nologin.so
Create the /etc/nologin/login.deny file containing a single line all
Creating the /etc/nologin.allow file containing a single line root
Creating the /etc/nologin file
Ensuring that /etc/pam.d/sshd includes: account requiredpam_nologin.so
Answer: D,E Explanation:
D: If the file /etc/nologin exists, only root is allowed to log in; other users are turned away with an error message.
In some cases, the security policy may dictate additional mechanisms, such as TCP wrappers, Pluggable Authentication Modules (PAM), or the implementation of Security- Enhanced Linux (SELinux).
Question No: 43
Which three actions may be performed using the date command in Oracle Linux?
Setting the hardware clock from the current system time
Setting the system time from the hardware clock
Displaying the current time in an administrator-specified format
Displaying the time and date in the future
Displaying the time and date in the past
Synchronizing the system time from an ntp server
Question No: 44
You must remove the user harhest from your Oracle Linux system because the person has left the company:
User harhest has numerous files, directories, and a crontab.
You issue: Userdel -r harhest
Which three outcomes result from the execution of this command?
Files in the harhest home directory are removed.
The home directory of harhest is removed.
Files owned by narhest in any directory are removed.
All directories owned by harhest are removed.
The /var/spool/mail/harhest mailbox is removed.
crontab /var/spool/cron/harhest is removed.
Explanation: The userdel command modifies the system account files, deleting all entries that refer to the user name LOGIN. The named user must exist.
Files in the user#39;s home directory will be removed along with the home directory itself and the user#39;s mail spool. Files located in other file systems will have to be searched for and deleted manually.
Question No: 45
Which three statements are true about the User Private Group scheme in Oracle Linux?
If a user jules is added with the useradd jules command, a group called jules_grp is also created
The umask for the jules user is 002 in /etc/bashrc
Users belonging to a group to which user jules also belongs, are automatically able to write to the private group belonging to the jules user.
If a user jules is added with the user add jules command, a group called jules is also added. but no other user may be a member of that group.
A directory owned by a group to which several users belong, and which has the setgid fa turned on, has shared write access to all members of the group.
The User private Group scheme is enabled by default in Oracle Linux.
Explanation: DF (not A): By default, Oracle Linux implements the user private group (UPG) scheme where adding a user account also creates a corresponding UPG with the same name as the user, and of which the user is the only member.
E: When setgid permission is applied to a directory, files that were created in this directory belong to the group to which the directory belongs, not the group to which the creating process belongs. Any user who has write and execute permissions in the directory can create a file there. However, the file belongs to the group that owns the directory, not to the user#39;s group ownership.
Question No: 46
As root, you enter a crontab command as shown;
[root@FAROUT cron.daily] # crontab -1
*/2 * * * * vmstat 0 0 1 1-5 * iostat
[root@FAROUT cron.daily] #
Which three statements are true concerning the two cron jobs listed?
The iostat command runs at midnight of every day except Sunday.
The vmstat command runs twice per hour.
The vmstat command runs every other hour.
The vmstat command runs every second minute.
All cron job output is sent to the root user#39;s mall.
All cron job output is sent to /var/log/messages.
The iostat command runs at midnight on the first day of each of the first five months of the year.
Question No: 47
Examine the channel specification in the /etc/yum.repos.d/public-yum-016.repo file:
# head -6 /etc/yum.repos.d/public-yum-016.repo [016_latest]
Name=Oracle Linux $releasever Latest ($basearch)
Baseurl=http://public-yum.oracle.com/repo/oracleLinux/OL6/latest/$basearch/ Gpgkey=http://public-yum.oracle.com/RPM-CPG-KEY-oracle-o16 Gpgcheck=1
What is the effect of the enabled=0 setting?
This channel is disabled and cannot be used by YUM at all.
This channel will not be used by YUM when searching for packages.
By default, YUM will not use this channel but this can be overridden on the command line.
This channel will not be used by YUM when it searches for packages, but YUM will check if updates exist for packages already installed from this channel.
Explanation: Disable YUM Repo (Repository) Disable YUM Repo
Edit repo file on /etc/yum.repos.d/ as root and change enabled to 0
## Change enabled=1
Question No: 48
Match the rpm options with their functions:
->-I a. replaces any older versions of package with the new package
->-Ub. upgrades packages, but only if an earlier version exists on your system
->-Fc. Uninstall the specified package
->-ed. installs a new package
A. 1-d, 2-a, 3-b, 4-c
B. 1-d, 2-b, 3-a, 4-c
C. 1-a, 2-c, 3-b, 4-d
D. 1-a, 2-b, 3-c, 4-d
Answer: A Explanation: F
This will upgrade packages, but only ones for which an earlier : Which means 3 should be b
Installs new package U
upgrades or installs the package : Which means 2 should be a
Question No: 49
Which four are among the many components included in the oracle Linux distribution?
Apache Web Server
X Windowing system
Oracle Database Server 11g
Red Hat compatible kernel
Oracle WebLogic Server 11g
Question No: 50
Which two statements are true regarding the use of the ssh-agent and ssh-add commands?
The ssh-agent is used to hold private keys.
The ssh-add command may ask for a passphrase each time the same key is required by the same user in the same shell.
The ssh-agent is used to hold only public keys.
The ssh-add command asks for the passphrase only the first time a key is required by the same user in the same shell.
The ssh-add command retries the most recently saved passphrase if multiple key files are used.
Explanation: A (not C): If you want to omit passphrase and password entry when you are using Solaris Secure Shell, you can use the agent daemon. Use the ssh-agent command at the beginning of the session. Then, store your private keys with the agent by using the ssh- add command.
D: Add your private key to the agent daemon.
The ssh-add command adds your private key to the agent daemon so that subsequent Secure Shell activity does not prompt you for the passphrase.
Enter passphrase for /home/johndoe/.ssh/id_rsa:
Identity added: /home/johndoe/.ssh/id_rsa(/home/johndoe/.ssh/id_rsa) myLocalHost%
Dumps4cert ExamCollection Testking Lowest Price Guarantee Yes No No Up-to-Dated Yes No No Real Questions Yes No No Explanation Yes No No PDF VCE Yes No No Free VCE Simulator Yes No No Instant Download Yes No No