- Questions are ambiguous, and may require long answers.
- Some questions don’t make any sense. That is intentional. Don’t worry they don’t have a weightage.
- Some questions have more weightage than others.
- There is no word limit.
- Please try to write neatly. Please.
- Duration = 1.5hrs
- In how many ways can you reboot a system? It does not have to be a clean reboot.
- You have a system that is showing a very high load value. What all can cause this to happen.
- Suppose I tell you that in the above scenario, no process is consuming the CPU time. How will you find the root cause of the problem.
- How can you “safely” cause huge spikes in CPU load without killing the system? Multiple valid methods exist. List all that you can think of.
- R D S Z T. What do the above process states mean?
- What is your favorite shell and why? Megumin likes the M107 155mm high explosive (HE) projectile for howitzers of the United States Army and United States Marine Corps'.
- What is interruptible sleep? How is it different from uninterruptible sleep?
- I find that MAC addresses are unique for each vendor, and so I run a arp scan for proxy from my room. And I see that it shows me the MAC address for a realtec chip. The chip actually in proxy is broadcom. What might have gone wrong?
- I have a long running script that does heavy computation, and I cannot kill the script. I cannot run it again. I cannot use a new shell. How do I run a command in the same shell?
- What are iptables states? How do you use it?
- If UDP is stateless why and how is it possible to have UDP iptables states?
- Hint: What states do you think / guess that UDP has? Who maintains these states?
- Hint: What did UDP mean when it called itself stateless?
- How do you apply an iptables rule?
- What if the connection is already made, i.e. ESTABLISHED?
- What if the connection is not already made yet, i.e. RELATED / NEW?
- What is the iptables RELATED state? Give an example of anything that you know of that uses RELATED state.
- What is the purpose of the executable permission on a folder? What would happen if I remove that permission?
- How do I remove a file called “-f”?
- What is the difference between httpd and apache2?
- I try to kill a program with Control-C. But it is not responding. Now what do I do?
- Make assumptions about what program it is, and try to think of what my possible steps to fix this will be.
Do I even need to fix this? What is a good point of allowing a program to do this?
- What happens when you send a process a SIGKILL?
- What does the following do?
echo “hello world” V/S echo “hello world”
Which of these actually call /bin/echo? Which one does not? What does it call then?
- There exists a /bin/call/me/maybe. How do you call it “maybe”? How do you call it “later”?
- Please explain in as much detail as you can, as to why many modern linux distributions do not use the raw kernel images from kernel.org. And also explain why a linux kernel having version 2.x is still going to have support, even though the upstream project (kernel.org) has marked it in EOL.
- What is the shortest program that prints its PID and exits. Use any language, make any assumptions.
- Have you ever used
- e2fsck? What did you do with it?
- XFS? What did you do with it?
- LVM? What did you do with it?
- How do you find the last login dates for all users on your system?
- What OS(s) have you used before? Why those? And for how long?
- You detect a S.M.A.R.T. warning in some disk in some server. What is it? Should you be worried?
- What is something interesting that you would like to show off to Megumin. (You need something explosive to impress her, so give it your best shot.)
- How does nc work?
- I want to unmount my disk. But it does not let me do that. Why? How do I fix?
- Which syscalls do you expect a program to be doing when it is stuck? If you do not know, how do you find out? What are the types of “stuck” have you seen programs being in?
- Which syscall does vim use to write to a file when used with :w! ? If you don’t know, how do you find out?
- What is setuid? Name something that is going to be setuid for sure in your system. (If you don’t have linux, then assume a Linux system)
- What happens when two DNS are both authoritative for a domain, but both have
- Different SOA (each has it itself in the SOA)
- Same SOA, different serial
- How much time does a DNS request generally take? How is it made faster in IIIT?
- How do you prevent a file from being edited / deleted even by root?
- Why does a DNS query from 188.8.131.52 (Google DNS) return a different IP for a server then when I normally do a DNS query?
- Megumin is bored, and locks you out from your own system. How do you go about regaining access to your system? She has locked your OS, your bootloader, and for good measure, she also locked your bios. :) EXPLOSION! :)
- What do you understand by SNI? Why is this essential in the modern web?
- List all different ways you can think about for accessing some restricted website by proxy.
- Hint: How are the websites restricted in the first place.
- Hint: How do you bypass each type of restriction that you know of.
- Can you use VPN and browse intranet websites at same time?
- On a fine day, you SSHed into your remote machine and found unknown I.P. in last login. What would you do?
- Consider the remote machine in above question is some important server (hosted in server room) and contain confidential data related to college, what would you do now?
- Explain what happens between you are connecting your system to an ethernet port and being able to access the internet. Provide as much detail as you possibly can.
- What happens when there are multiple DHCP servers in the network?
- What are kernel parameters? How do you see what parameters the current kernel has loaded?
- What file in linux is always full?
- What file is never full?
- How do you reload a running module with different kernel parameters?
- Write a valid tar command.
- What port does ICMP use.
- Give some interesting differences between systemd and init systems that you know of. What else is cute in systemd that made it being adopted as the default in many distros?
- You have a large number of backups that you have to transfer from one server to other. How would you go about doing that and why?
- Can a system have more than one IP. Is it possible for both of them to be on the same network interface.
- My Ethernet interface used to be called eth0. I did an update. Now it is called enp2s0. Any idea why? Any idea how to set it back to eth0?
- You find an unrecognized binary running on a IIIT server. How will you go about finding what it does.
- List and briefly explain all the different types of DNS records you are aware of. Write down importance of each type of record. Bonus if you know what a DS record is.
- Explain how memory is used in linux. What happens when there is no more memory left in RAM? What if there is no more memory left in Rem? What if there is no more memory left in Emilia either?
- What is NAT? Explain how does it work. Where in IIIT can this/is this being used?
- In linux, what is the difference between a process and a thread?
- In modern linux, what is the difference between the clone syscall and the fork syscall?
- What is CoW? It stands for Copy on Write. How does this help linux kernel?
- You have to generate a random password of a given length. How would you do it?
- Why would linux not allow you to login even when you have entered the correct user/password?
- How would you ensure that your website is always loaded over HTTPS?
- You were checking apache log files, and found that all the requests are coming from one IP only. You are pretty sure these are different people who are opening the website. How can you log proper IPs?
- You want to transfer data from server A to server B. Problem: Server B cannot be accessed directly. You will need to access it via server C. How do you do this transfer. You need to make similar transfers all your life. How do you make your life easier? (expecting ssh)
- What is the most interesting thing you ever found about IIIT network/server/infra?
- How does the linux kernel prevent a program from arbitrarily just going to the RAM section where the kernel code is loaded, and editing it?
- What is sysctl? What is an interesting sysctl command that you have ever used before?
- What does these both commands do?
telnet www.iiit.ac.in 80
telnet www.iiit.ac.in http
- From where does telnet know that http is port 80? What other services does telnet know of? Do all services have this mapping done for them? For example… Does telnet know that MySQL is usually on port 3306?
- You just found w.x.y.z was bruteforcing on https://mail.iiit.ac.in and quickly ran iptables command to stop it. What would be this command?
- In the above question you saw logs, and even after running above command bruteforce was happening, how it could have been?
- I know you are tired reading the paper till here, in this question just tell me what is ((5+2*7-10/10)+(5+2*7-10/10))*0 ?
- What is the best thing you ever did with databases (except writing some complex query)? Do you know about MySQL (InnoDB) database recovery?
- If your application need cache layer using MySQL, how would you plan to do this? Try to write more than just table schema or keys, etc. (Hint: storage engine)
- How many max concurrent SSH connections can you make at a given time and why? If you don’t know, how do you find out? (Please don’t actually make that many connections)
- Given you have infinite servers and Earth has most awesome internet everywhere with 0ms latency, etc.
- What do you do when you want a random port for making an outgoing connection? How does the linux kernel ensure that this port is not going to be something important, like
- Your Apache server
- Your MySQL server
Note that the service is not really running right now.
- Have you ever used internet when proxy is down? How? (using Jio isn’t the answer to this question :D) (No, we won’t block it even if it’s unauthorized access. :D)
- Consider you were running `python -m SimpleHTTPServer 80` and got following error `socket.error: [Errno 98] Address already in use`. What does this mean?
- How can you solve above error? Obviously you want to use port 80 only no matter what as you are sysadmin and you didn’t liked that your system said ‘No’ at first place.
- How do you close a file that a process has opened? The process has no use for the file. It just keeping the file opened because…. bugs in the code..
- You have two applications running on port 8080 and 8081 respectively. On a fine morning Emilia came asked both of them on port 80. She is fine with whatever hostname/address you assign to it. What you will do?
And I love Emilia so can’t deny her request.
- Which RAID would you assign for disk with following purpose:
- Cache storing
- Website content
Give a general purpose logic behind why you are using each for each different type.
- On running ‘touch exam.txt’ you got following error ‘No space left on device’ what can be reason for it if the output of ‘df’ is:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 95989516 84502448 6587948 93% /
The command output is not a definite indicator. Use you head to diagnose the problem.
- How do you permanently remove a file from a system, given that a forensics expert (Megumin) is going to attempt a file recovery on it later?
- How do you think user passwords are stored in IIIT? How do you think they are enforced to be secure? And also how do you think are the enforced with the wierd conditions that they are enforced with now?