
When LPI published the 2.0 objectives for Linux Essentials, the job in front of us at 4Linux was unglamorous: open the old courseware, open the new objective list, and work out what had to change. A syllabus refresh on an entry-level certification is not usually the kind of thing anyone writes about afterwards. Then we got to topic 015, Security and File System Permissions, and the exercise turned into an argument among the instructors. That is normally a sign that something worth discussing is going on.
On paper, 015 is unremarkable to anyone who already works with Linux. Users, groups, permissions, sudo, SSH, ownership, the sticky bit on /tmp: Nothing there would surprise a working administrator. But for someone three weeks past their first install of a GNU/Linux distro, it is most of the conceptual scaffolding the rest of their career will stand on.
Teaching someone to type chmod 755 script.sh takes about a minute. Teaching them why to use 755 and not 777 takes much longer, and you don’t find out whether the explanation worked until they hit a problem you didn’t design for them.
We see the gap constantly. A student gets a permission denied, runs the same command again with sudo, and it works. From where they’re standing, the problem is solved and the lesson is obvious: sudo fixes things. Nothing in a lab contradicts them, because in a lab the consequences never arrive.
So we’ve learned to slow that moment down and ask the student what they think just happened. Who owns the file? Which group is it in? Which account is the process running under? Half the time the student can’t answer, and that’s the actual lesson, not the command that made the error go away.
To a beginner, a user is a login. That holds up until the first time they administer something real. Then users and groups turn out to decide what people, applications, and services are allowed to do, and a surprising share of what looks like application failure turns out to be a permissions problem wearing a disguise.
The classic example, and one we still use in class because it never stops being instructive, is the script that runs perfectly when the student runs it by hand and fails from cron. Different environment, different account, different result. The student’s instinct is to blame cron. The answer is almost always found through id, ls -l, and ps -o user.
Those three commands don’t look like much on a syllabus. What they really give a beginner is vocabulary, a way to ask a precise question about a machine instead of a vague one.
The change in 2.0 that made the most immediate sense to us was the early appearance of SSH, SCP, and public-key authentication.
For a lot of our students, the first Linux system they touch is a virtual machine in a data centre or an instance in a public cloud. They never see the hardware. Their first contact with the operating system is a prompt on their own laptop and a command that ends in @ something. Remote ceased to be an advanced topic some years ago.
SSH keys also happen to be one of the best lessons available about permissions, because a misuse of permissions requires so much thinking to fix. If the user assigns 775 to ~/.ssh or 644 to authorized_keys, sshd will quietly ignore the key and fall back to asking for a password. No explanation, no error mentioning permissions. The student assumes the key is broken. It isn’t: the server is enforcing a rule, and /var/log/auth.log says so plainly if you go and look.
We deliberately let students hit that problem. Reading the log and finding the real reason for a login failure teaches more than being handed chmod 600 in advance.
If sudo arrives before the student has a solid understanding of ownership and permissions, it stops being a tool and becomes a reflex for avoiding errors. Sometimes elevation genuinely is the answer. More often, the honest answer is that the file belongs to the wrong group, or the service is running under the wrong account, and the student has just papered over a misconfiguration they’ll meet again later.
This matters less in a lab than it sounds, and much more once the same person is working on production servers, pipelines, and containers. At that point, running everything with excessive privileges isn’t an untidy habit. It’s an audit finding.
It’s tempting to file Linux Essentials as just the certificate that comes before LPIC-1. We’d argue that it’s better understood as where the mental model gets built, because nothing in topic 015 goes away later. A container runs as a user, and usually the wrong one until somebody checks. A web server drops privileges to a service account. A CI job authenticates with someone’s credentials. A mounted volume arrives with ownership that may or may not match the process reading it.
The environments get more sophisticated. The rules underneath them don’t change.
After enough years with Linux, you stop noticing that you do any of this. You glance at the owner of a file, check which account a process is running under, and look at a key’s permissions, without anything feeling like a decision.
A beginner has none of that facility with permissions yet, and it isn’t acquired by reading. It comes from being denied, being confused, and then finding out why. That is an argument for letting students fail in a controlled way rather than smoothing the path.
We opened the 2.0 objectives expecting to update a course. We spent most of the time arguing about how to teach permissions properly, which was more useful.
<< Read the previous part of this series | Start the series from the beginning >>
Stai visualizzando un contenuto segnaposto da Vimeo. Per accedere al contenuto effettivo, clicca sul pulsante sottostante. Si prega di notare che in questo modo si condividono i dati con provider di terze parti.
Ulteriori informazioniStai visualizzando un contenuto segnaposto da YouTube. Per accedere al contenuto effettivo, clicca sul pulsante sottostante. Si prega di notare che in questo modo si condividono i dati con provider di terze parti.
Ulteriori informazioniDevi caricare il contenuto da reCAPTCHA per inviare il modulo. Si prega di notare che in questo modo si condividono i dati con provider di terze parti.
Ulteriori informazioniDevi caricare il contenuto da reCAPTCHA per inviare il modulo. Si prega di notare che in questo modo si condividono i dati con provider di terze parti.
Ulteriori informazioniStai visualizzando un contenuto segnaposto da reCAPTCHA. Per accedere al contenuto effettivo, clicca sul pulsante sottostante. Si prega di notare che in questo modo si condividono i dati con provider di terze parti.
Ulteriori informazioni