Advertisement
Guest User

test

a guest
Jan 16th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.85 KB | None | 0 0
  1.  
  2. Questions (with answers/comments)
  3.  
  4. 1) Change the timezone on server to Dublin Time
  5.  
  6. Location of the local time file
  7. Linux looks at /etc/localtime to determine the current time of your machine. This can either be a symbolic link to the correct time zone or a direct copy of the time zone file.
  8.  
  9. Timezone files are located in /usr/share/zoninfo/
  10. For this tip we will assume your server is located in America and will be under the Chicago CST zone.
  11.  
  12. I change the Linux time zone by copying or making a symbolic link to from /usr/share/zoneinfo/America/Chicago to /etc/localtime
  13.  
  14.  
  15. 2) Server has one logical volume named as lv_data1 under vg_data volume group and is mounted.
  16. This LV has Initial Size of 124MB. Change the size of lv_data1 to 245MB and resize the filesystem
  17. without losing any data. The size of logical volume between 240MB to 255MB will be acceptable.
  18. All tasks have to be done online, without umounting LV.
  19.  
  20.  
  21.  
  22.  
  23. 3) Confirm that Server is not able to route netowork packages, and if it is able, disable it
  24. permanently.
  25. 4) Install and configure NTP Server to start at boot time.
  26. 5) User question5 is not being able to login with it’s credentials (as described below). You need to
  27. fix this user, so it can login to server.
  28. username: question5
  29. password: question5
  30. 6) Change the hostname of the station to testbm1 and configure FQDN to testbm1.example.com. All
  31. changes should be made without booting server.
  32. 7) Create the group named sysusers
  33. 8) Take the full backup of /etc on /tmp/back file.
  34. 9) Mount nfs directory /question9 at tc1.bmeu.com, on local directory /question9 (create directory if
  35. needed). Make it permanent on boot time.
  36. 110) Install the cron schedule for testuser user to display "Hello" on daily basis at 5:30am.
  37. 11) Create the user named testuser, with it’s own home directory set to /question11 and with shell
  38. set to /bin/bash, and belonging to group users.
  39. 12) Make testuser a member of group sysusers, without changing the current group membership.
  40. 13) Create the directory /question13 and group owner should be the sysusers group.
  41. 14) Write a shell script to print current date, time, user name and current working directory.
  42. 15) Change permissions on /question15, so the files/directories created on this directory will always
  43. keep automatically the same group as the /question15 directory.
  44. 16) Change user testuser, so it’s account expire on 30 days from today.
  45. 17) There is one partition /dev/mapper/vg_data-lv_question17 mounted on /question17. The owner
  46. of /question17 is root user and root group. Permissions are: full to owner user, read and execute to
  47. group member and no permission to others. Now you should give the full permission to user
  48. question17 without changing previous permission.
  49. 18) Server has two logical volumes created: lv_raid1 on vg_data and lv_raid2 on vg_replica, each
  50. with 256M. Create a RAID Device /dev/md0 from those two LVs, with RAID10. Mount it on
  51. /question18.
  52. 19) Deny to all users except root to run cron schedule.
  53. 20) Configure the send mail server and send a test message to leonardo.dias@bluemetrix.com
  54. 21) Deny the ALL services to the member of cracker.org but allow to trusted.cracker.org
  55. 22) Disable Public Keys authentication on SSH service
  56. 23) Install and configure Apache HTTPD service. Download the file located at
  57. ftp://tc1.bmeu.com/pub/question23.html (anonymous) and set it as the default home page. Make
  58. sure it is possible to access file without entering filename on URL. Test it with curl.
  59. 24) Configure server to allow user question24 to login only between 9am to 17pm on every day.
  60. 25) Configure user question25, so he can run useradd, passwd, groupadd, userdel, groupdel,
  61. usermod as root.
  62. 26) Take the full backup of mysql database (root user – default pw)
  63. 27) Due to system processing, you want to limit the number of process to users. If then, configure
  64. that testuser and testuser2 should get one login at a time and all the members of training group can
  65. get total 5 logins.
  66. 228) Create a database on postgresSQL named bluemetrix.
  67. 29) Add a firewall rule (using either iptables or firewalld) to block all connections from host
  68. 192.168.56.150, on ports 22 and 8080 (tcp), logging all matchs for this rule.
  69. 30) Run script /scripts/question30. You observe that user question30 is running more than 50
  70. processes. Configure to limit the number of processes that question30 couldn't run more than 7
  71. process, kill all process from user question30 and run script /scripts/question30 to check if number
  72. of process are limited. At end, kill all process from user question30
  73. 31) Disable SELINUX temporary and permanently.
  74. 32) User question32 is not being able to login. Fix it, so user can login.
  75. 33) Create a user on postgresSQL named question33, with password ‘B13M24@’. Create a
  76. database called bluemetrix and give full permissions on database to question33 (even allowing
  77. access to other users).
  78. 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement