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