netwroking exam 2

¡Supera tus tareas y exámenes ahora con Quizwiz!

You need to change the default home directory value used by the useradd utility when creating a user account. Which file should you edit? (Enter the full path to the file)

etc/default/useradd

a number of new file systems have been added to the server and you want them to be active now youy also do not want to bring the server down which commnad makes the changes active

mount -a

You suspect that the gshant user account is locked. What would enter at the command prompt to see the status of the gshant user account?

passwd -S gshant

You need to see who has permissions to the sales_projection_q2 file. You use Is -I sales_projection_q2 and get this information: drwxr-xr-x 22 pclark acct 4096 Jun 19 15:01 sales_projection_q2 Who is the user shown as owner of this file? (Note: your answer is case-sensitive) What group is shown as owner of this file? (Note: your answer is case-sensitive) (typed 2 parts)

pclark acct

You have been called in to help a small company. They want to increase the security of their small network and one of the tasks you have been given to do is to move their passwords from the /etc/passwd file to the /etc/shadow file. Which utility would you use to accomplish this?

pwconv

Which of the following utilites should you use if you need to extract a file from an RPM package file?

rpm2cpio

Setting the SUID flag is a powerful and useful feature. It can have weaknesses associated with its use. Which of the following statements identifies a weakness?

setting the SUID flag for an application or process owned by the root user is a potential security hole

What is the file path and name of the directory that contains device files for hard drives, optical drives, and USB devices?

/dev

You are preparing to mount a device local to your system. Which directory holds the device files?

/dev

Which of the following device file names represents the second local terminal on the system?

/dev/tty2

In the /etc/shadow file, which character in the password field indicates that a standard user account is locked?

!

you want to mount a number of file systems each time the system is brought up. which configuration file should hold the configuration information for the file system to be mounted

/etc/fstab

In which file would you find an entry similar to the following line: sales:x:510:pclark,mmckay,hsamson

/etc/group

What is the full path to the directory that contains a set of configuration file templates that are copied into a new user's home directory when it is created

/etc/skel

What is the full path to the directory that contains a set of configuration file templates that are copied into a new user's home directory when it is created?

/etc/skel

which of teh following directories is specified by filesystem hierarchy standard as a mount point for removable media such as USB storage media DVDs CD-ROMS and zip disks

/media

During the Linux installation process you are asked to choose the file system type for your partitions. Which is the most common Linux file system to choose?

Ext3

you are configuring a linux system for 5 different users beore you create the user accounts you need to ensure specific copmmands to exucute clean up tasks when the user logs out of the Linux systems

/etc/skel/.bash_logout

what is the full path and filename of the file that stores Bash preferences for the gshant user account

/home/gshant/.bash_profile

During installation, you must create a root user account for the system. What user account number does this account use?

0

If you are getting your applications and updates in RPM format, which distribution is your system based on?

Red Hat

You are the administrator for a small company. You need to create a new group for users in the sales department. You need to name the group sales. Which command will accomplish this?

groupadd sales

You have a group named temp_sales on your system. The group is no longer needed, and you should remove the group. Which of the following commands should you use?

groupdel temp_sales

due to a merger with another company standardization is now being imposed throughout the company as a result of theis the sales group must be cahnged marketing which of the following commmands will; acomplish this

groupmod -n marketing sales

What would you enter at the command prompt to display the primary and secondary group memberships for the gshantuser account?

groups gshant

Which file shows the currently mounted volumes?

/etc/mtab

You need to identify which user accounts on the Linux system have encrypted passwords. Which character in the password field /etc/shadow file indicates an encrypted password is set for the user account?

$

in the /etc/shadow file which character in thee password field indiactes that the password is an encrypted entry

$

Which useradd option displays the default values specified in the /etc/default/useradd file.

-D

Which dpkg option installs a package recursively?

-R

You have a critical file called yearend.xls. You want to set file permissions so that only the owner of the file can modify it and only group owners can read it. Which permission listed below will accomplish that?

-rw-r----- 1 george acctg 26256 June 1 04:16 yearend.xls

you an application whose owner is root but you want all users to execute the application with root user permissions which of the following examples shows correct usage of the SUID flag?

-rwsr--r-- 3 root sys 73748 NOV 2 2005 /usr/bin applicationx

You have an application whose group is sys but you want all users, whether or not they are members of the sysadmin group, to execute the application with sysadmin group permissions. Which of the following examples shows correct usage of the SGID flag?

-rwxr-sr-- 3 root sysadmin 73748 Nov 2 2005 /usr/bin/applicationx

What is the UID in the line from the /etc/passwd file below? pmallory:x:514:550:Paul Mallory:/home/pmallory:/bin/bash

514

With fdisk, you can create a maximum of 4 partitions per disk. What is the maximum number of partitions per disk that can be created using gdisk?

128

How many primary partitions can you create on a single hard disk drive?

4

which of the following sets of octal permissions would allow everyone to execute the following file as if they were the root user -rwxr-xr-x 1 root root 8045 July 24 2004 myscript

4755

During a Fedora distribution installation, you choose to add a regular user account. The only other user that has been added to the system was root. What is the most likely user id associated with the new user?

500

you are called into the office of a newly hired manager he has copied a file from his old place oof work onto his new workstation but is now receving an errotr message that access is denied each time he tries to access the file he is not the owner of the file and not a member of the groupo the file is associated with which of the following represents the latestset of file permission needed for him to be able to read and write to the file

666

You are asked to help a user who is complaining that file system errors are being reported during boot up. When you reboot the user's system you see errors on sda2. You want to check the file system on sda2 and fix the errors. What can you do?

Change to single user mode and run fsck /dev/sda2.

You have been asked to temporarily fill in for an administrator who has just been fired. This administrator was known to take a lax view of security, and it is suspected that passwords are still kept in the /etc/passwd file. When viewing that file, which entry below would indicate that the passwords are there?

Kolton:34uyx:431:0:Back Door:/root/bin/bash

Which function does the -d option perform when using the apt-get command to install a package?

Packages are downloaded to the system, but not installed

you have previously installed the package mplayer and wish to remove it from your computer. Which removal method should you use?

Run the command rpm -e mplayer

You have just installed a new program that will be used by all users on the computer. After installation, you log in as a regular user and you try to run the program. The program stops and displays the following error: Error: not running as root What should you do so that all users can run this program?

Set the SUID on the program.

Which of the following special permissions will prevent a file's deletion by anyone except the file owner?

Sticky Bit

You are the team lead for a marketing project. Only the members of the team3 group should have read/write permissions to a document called project_data.doc, however, you want to ensure that no one on the team will delete the document by accident. Your user name is bsmith. A long listing of the file is as follows: -rwxr-xr-x 1 bsmith team3 7260 June 22 2004 project_data.doc Which of the following commands would accomplish this?

chmod 1664 project_data.doc

You need to set the SUID permission on a file named rider. Which of the following commands will accomplish this?

chmod 4777 rider

You need to create a large number of files and would like to ensure that you, the user owner, are the only one that has read and write permissions to the files. The files will be located in a number of different directories that already contain files that you don't want their permissions modified. How could you create these files with the correct permissions using the least amount of effort?

Type umask 0066 to change your umask.

How many logical partitions can you create on an extended partition

Unlimited

which file system is a FAT32 file system for linux

VFAT

Which of the following function does rpm -V command perform?

Verifies that an RPM package is free from errors

You have put a new hard disk in your system and created two primary partitions (sdb1 and sdb2) and one extended partition (sdb3). You have just formatted sdb1 with ext3 and sdb2 as a swap area. When you try to format sdb3 as a swap area, you are unable to. What is the problem?

You cannot format an extended partition.

You must change ownership of a script called myscript so that only the user owner has read/write access to it and only the user owner and group owner have execute permissions. Which of the following commands would accomplish this?

chmod 750 myscript

which of the following actions does the dpkg -l command preform

all packages with names that matcha specified pattern are displayed

Which of the following statements correctly describe the differences between the apt-get remove and the apt-get --purge commands?

apt-get --purge removes the package and the configurations files. apt-get remove removes a specified package, but leaves the configuration files.

You have installed a package called mathpac with yum. After a system upgrade, the package correctly. Which command should you try first to get the package to work?

apt-get upgrade mathpac

which of the following debian package management utilities provides the front end for APT

aptitide

A file named acctg needs to have the SGID permission set on it while keeping all other permissions at their present value. Which of the following commands will accomplish this?

chmod g+s acctg

There is a directory called projects owned by the user cmarcela and the group rd. cmarcela has left the company. You need to give ownership of the projects directory, its files, and subdirectories to the user ebates, who is a member of the mgmt group. Which command should you use to change the user ownership?

chown -R ebates projects

Which of the following commands make sales the group owner of the /sales/report file? (Select two. Each answer is an independent solution.)

chown :sales /sales/report chown .sales /sales/report

You use Is -I /home/sales/sales_projection_q2 and get this information: drwxr-xr-x 22 pclark acct 4096 Jun 19 15:01 sales_projection_q2 Which command will change the user owner to jyoung and the group owner to sales?

chown jyoung:sales /home/sales/sales_projection_q2

You are requested to help a user who reports that he has no more local storage space. You go to his system and log in as root user. Which command will display the available disk space on all partitions?

df df-h

A user is trying to access a file system mounted at /mnt/sdbl but receives an error No such file or directory. Which commands can you use to see the current mount points?

df mount

You have created a separate partition for the sales team and mounted it to the /sales directory. The team is about to begin a new project, and they want to make sure there is enough disk space to hold upcoming files. Which command will show you the amount of free space?

df /sales

you have found a patch for the samba server on your system the patch is a .rpm package which is the mosty correct procedure to install the package

download the package run rpm -Uvh on the package to install the update

Yesterday you created a new swap area for your system. Today, after rebooting the system, you find the swap area is not mounted. What should you do to ensure the swap area is mounted each time the system boots?

edit /etc/fstab and add the swap partition

You have a system with a single hard disk. You add a new hard drive to your system. Which of the following commands would you use to partition the new drive?

fdisk /dev/sdb

Which partition management utility can be used to define and change various different GUID partition configurations without committing the configuration to the disk until the w command is used?

gdisk

You are working with the following RPM package: acroread8.1.3-51.6.i586rpm. Drag the naming convention term on the left to match the items on the right.

i586 - architecture type 8.1.3 - version number acroread - package name 51.6 - release number

Which yum option displays whether updates are available for RPM packages?

list updates

You have partitioned and formatted a new hard drive, sdc. You want to mount the first partition on sdc to directory /mnt/newdisk. Which command will perform the mount correctly?

mount /dev/sdc1 /mnt/newdisk

which of the following is not true regarding mount points

mount points use the partions represented by device files located in teh /lib directory

Which set of permissions represent the minimal permissions required to allow a user to list the contents of a directory?

r-x

You have an RPM package called mathpac that is not working correctly. You have downloaded the latest package. Which command should you use to install the latest mathpac package?

rpm -U mathpac

You need to install the package apt-0 apt-0.5.15.cnc6-1.1.fc2.fr.i386.rmp. Which commands will perform the installation?

rpm -Uh apt-0 apt-0.5.15.cnc6-1.1.fc2.fr.i386.rmp rpm -ih apt-0 apt-0.5.15.cnc6-1.1.fc2.fr.i386.rmp

which command will query the system for all installed RPM packages

rpm -qa

You need to determine which files are associated with the metacity RPM package. Which command should you use?

rpm -ql metacity

You have a Linux system with two activated swap partitions: sda3 and sdb2. Which of the following commands can you use to deactivate the sda3 swap partition?

swapoff /dev/sda3

you are viewing the /etc/passwd file and you notice the following entry pclark:x:501:501:pentuia Clark:/homepclark:/bin/bash which statment best describes

the pclark password is stored in the /etc/shadow file

a user calls the help desk. each time he creates a new text file permissions of 640 are applied to the file and he must uise chmod to set them to 644 what command should you enter in the users profile to set the default permissions for newly created files to 644

umask 0022

Partition /dev/sdb2 is mounted to /mnt/temp. You need to unmount /dev/sdb2. Which commands would you use? (Choose two.)

umount /mnt/temp umount /dev/sdb2

What would be the outcome of the following command? userdel -r jjones

user account, jjones, would be deleted along with jjones' home directory.

You need to create a user account with these specific parameters: • Use pmorrillas the login name • Use Paul Morrill as the comment • Use /home/pmorrill_temp as the home directory • Use 683 as the UID

useradd -c "Paul Morrill" -d /home/pmorrill_temp -u 683 pmorrill

A user with an account name of larry has just been terminated from the company. There is good reason to believe that the user will attempt to access and damage the files in the system in the very near future. Which command below will disable or remove the user account from the system and remove his home directory?

userdel -r larry

An employee named Bob Smith, with a user name of bsmith, has left the company. You have been instructed by your supervisor to delete his user account along with his home directory. Which of the following commands would produce the required outcome?

userdel bsmith;rm -rf/home/bsmith userdel -r bsmith

which of the following utilities would you typically user to lock a user account pick 2

usermod passwd

The user emcmann has been transferred from the accounts payable department. She was assigned to several secondary groups that gave her rights to sensitive files and systems. You need to remove her from all her current secondary groups right away. Enter the command that will remove emcmann from all her secondary groups.

usermod -G "" emcmann

You have just created the lsmith user account and need to assign this new user to the secondary groups admin and acct. Enter the command you would use to add lsmith to the admin and acct secondary groups.

usermod -G admin,acct Ismith

One of your users, Karen Scott, has recently married and is now Karen Jones. She has requested that her username be changed from kscottto kjones, but no other values change. Which of the following commands will accomplish this?

usermod -I kjones kscott

you have preformed an audit and have found active accounts for employee who no longer work for the company. you want to disable the accounts what command example will disable a user account

usermod -L joer

yopu need to modify the group membership for the user gmyrick to add the staff group to his list of secondary group memberships he needs to keep his existing secondary group memberships which command option will add gmyrick to the staff group with out removing him from the other proups

usermod -aG staff gmyrick

A programmer named Brandon calls with an issue. He is currently using the C shell each time he logs in, but has been told by his manager to start using the Bash shell. Which command will change brandon's shell to the desired setting?

usermod -s /bin/bash brandon

You need to remove an RPM package from your system. Which of the following commands could you use

yum erase yum remove

you have installed a package called mathpac with yum. after a system upgrade the package is not working correctly which command should you try first to get the package to work

yum update mathpac


Conjuntos de estudio relacionados

Physics Chapter 16 Test: Comprehensive Study Guide

View Set

Chapter 7 - Texas Real Estate License Act

View Set

anxiety disorders ch19 prep u-pn

View Set

Biology 2 Test 2: Digestive System

View Set

Myers Psych Exam #2 ( modules 7-9 & 13-19)

View Set

Unit 3B: Grammar: Adverbs and Adverbial Phrases

View Set

CH 5: Gross income and exclusions

View Set