Bangor university
Download 280.52 Kb. Pdf ko'rish
|
[APPROVED]ICP2002 -CT1-AY2020-21
MDIST_ AY2020-21 ICP2002_CT 1- 20 Nov 2020
Page 1 of 6
BANGOR UNIVERSITY AND MANAGEMENT DEVELOPMENT INSTITUTE OF SINGAPORE IN TASHKENT ___________________________________________________________________________ __ Course : Bachelor of Science (Hons) in Computer Information Systems for Business Module Code and Title : ICP2002 System Administration and Maintenance Module Tutor : Mr Mohamed Yatim bin Abdul Ghani Assessment : Class test 1 (Main) Date : 20 November 2020 Weighting within Module : 15 %
1. This paper consists of a total of SIX (6) pages, including the cover page.
2. This is a closed-book class test. 3. Answer ALL questions.
4. To be submitted through Turnitin within 24 HOURS. 5. Late submissions will be awarded a mark of zero. 6. Turnitin will be used to assess for plagiarism and collusion. 7. Do not copy and paste answers or share answers. 8. University procedures for Unfair Practice will be implemented as normal. 9. In-text citations and referencing must be used where appropriate. 10. Your answer must be submitted in a Word document only. MDIST_ AY2020-21 ICP2002_CT 1- 20 Nov 2020
Page 2 of 6
Answer ALL questions.
1. Name a program used to connect to the terminal of a Linux virtual machine from a Windows PC.
1. What command is used to generate a keypair for SSH authentication on a Linux server?
1. When using certificate based SSH authentication, the private key is placed in the authorized_keys file on the server. True
False 1 point Q U E S T I O N 4 1. What command is used to view the manual page for sed? 1 point Q U E S T I O N 5 1. The command ls -l produces the following output drwxr-xr-x. 2 root root 4096 Aug 28 14:10 vsftpd -rw-r--r--. 1 root root 4479 May 15 22:01 wgetfc lrwxrwxrwx. 1 root root 14 Aug 21 07:40 system-release -> centos-release What are the types of the files? vsftpd wgetfc system-release
A. file B. symbolic link C. directory
MDIST_ AY2020-21 ICP2002_CT 1- 20 Nov 2020
Page 3 of 6
1. The first character of each line from the command ls -l indicates the type of file. What do the following letters represent? - d l s p b
A. socket B. link C. named pipe D. block device E. directory F. file
Q U E S T I O N 7 1. What command can be used to show who is currently logged in to the Linux server you are working on?
1. What command is used to change to the directory /usr/local/bin? 1 point Q U E S T I O N 9 1. What command is used to copy the file /home/users/ees14e/log.txt to /var/log/ees14e/log.txt? Permissions should be preserved. 1 point Q U E S T I O N 1 0 1. What command is used to create the directory /tmp/downloads/software, assuming the directory /tmp/downloads does not currently exist?
1. What command is used to insert text immediately before the cursor position in the vi text editor?
1. What command is used to remove the directory /home/web along with any files and directories contained within it?
MDIST_ AY2020-21 ICP2002_CT 1- 20 Nov 2020
Page 4 of 6
Q U E S T I O N 1 3 1. What command would be used to show the last 5 lines of the file /var/log/messages?
1. What command would you use to list the contents of the directory /sbin/ in reverse alphabetical order?
can be used to append the specified text to the file /var/log/messages. 2 points Q U E S T I O N 1 6 1. In general it makes no sense to give write permissions on a directory without also giving execute permissions. True False 1 point Q U E S T I O N 1 7 1. The command ls -l produces the following output: -rwxr-x---. 1 root users 54312 Sep 10 2019 runme What permissions do members of the group users have on this file execute
write
read
3 points Q U E S T I O N 1 8 1. The special permission allows a user to execute a program with the permissions of the owner. This is indicated by a letter in place of the permission in the output of ls -l. 3 points MDIST_ AY2020-21 ICP2002_CT 1- 20 Nov 2020
Page 5 of 6
Q U E S T I O N 1 9 1. Using the numeric form of file permissions, set the permissions for the file
/tmp/runme to rwxr-xr-x 1 point Q U E S T I O N 2 0 1. What command is used to change the owner of the file /tmp/file1 to the user eep32d? The group needs to be changed to the default group of the user eep32d. 1 point Q U E S T I O N 2 1 1. What command is used to get the access control list for the file /tmp/file2.txt ? 1 point Q U E S T I O N 2 2 1. What command is used to remove the write permission from the file /var/log/messages for users who are not the file owner and are also not in the group that owns the file? Other permissions should remain unchanged. 1 point Q U E S T I O N 2 3 1. The command restart is used to restart the ssh server
Q U E S T I O N 2 4 1. What do you put in the SSH server configuration file to disable remote root login? 1 point Q U E S T I O N 2 5 1. The sudo configuration file contains the following: User_Alias STAFF=ees64b,ees12a User_Alias STUDENTS=eeu14d,eeu15a Cmnd_Alias POWER=/sbin/shutdown,/sbin/reboot STAFF (ALL)=(root)POWER Which of the following statements are true? The user eeu15a cannot run the command /sbin/shutdown as root
The user ees01c cannot run the command /sbin/reboot as root The user eeu14d can run the command /sbin/shutdown as root
The user ees64b can run the command /sbin/reboot as root 4 points MDIST_ AY2020-21 ICP2002_CT 1- 20 Nov 2020
Page 6 of 6
Q U E S T I O N 2 6 1. What command is used to safely edit the sudoers file? 1 point Q U E S T I O N 2 7 1. What command would you use to add a user eeu13e with home directory /home/users/eeu13e and primary group games?
Q U E S T I O N 2 8 1. Assuming you are logged in as eeu14b, what command would you use to change your own password?
1. The administrative user on Linux has the username with the user ID 2 points Q U E S T I O N 3 0 1. The file /etc/passwd contains the following line eeu01c:x:1000:1001:Dave Jones:/home/users/eeu01c:/bin/bash Match the following: eeu01c
1000 1001 /home/users/eeu01c /bin/bash
A. Home directory B. Login shell C. user ID D. Group ID E. username
3 points Download 280.52 Kb. Do'stlaringiz bilan baham: |
ma'muriyatiga murojaat qiling