Short task: write the ID card of the server and your account
You use the commands of the first two lessons without help this time: you find and write down the server’s name, kernel version and asset tag, your own identity, the number of a service account you are asked about and whether it can log in, and finally how many accounts the server has and which one was added last.
Level 101 · 25 min
Daniel left a note this morning: "This server will be shown to the auditor tomorrow. Prepare an ID card for me: what is the server, who are you, and what is the state of the service account on the list? On my desk by tonight."
This is a short task: no commands are given, only goals. You used every command you need in the first two lessons (hostname, uname, cat, whoami, id, getent, wc, tail, > and >>). If you get stuck the hint reminds you of the method; after two failed tries the solution appears too.
The account you are asked about, its numbers and the asset tag differ in every lab; you can’t take the answer from someone else. Reminder: > rewrites a file from scratch, >> appends to its end. You will grow the card step by step by appending to the same file.
What you will do in this lesson
- The server’s identity
- Your identity
- The number of the account in question
- Can someone log in with this account?
- How many accounts, and which was added last?
- Short quiz
Skills you will earn
- Getting the server name with hostname
- Seeing the kernel version with uname
- Redirecting output to a file with > and >>
- Checking your identity with whoami
- Reading user and groups with id
- Inspecting other accounts and least privilege
- Telling UIDs and root (0) apart with id -u
- Looking up accounts with getent
- Reading the fields of /etc/passwd
- Counting lines (wc -l)
- Writing a short, precise finding
← Know your identity: whoami, id and groups · Linux quick start · Moving around: pwd, cd and ls →
Start for free