- So useradd anna.
And echo password | passwd standard in anna.
Which is a cool way that you can use scripts
to set passwords.
The inconvenience is that echo password,
well password is set to password
and that's stored in history.
Does that matter?
No, not really for this demo.
Now we need to make sure that user Anna
can modify the content of ETCMOTD by using ACLs.
So what are we going to do?
Well setfacl -m for modify.
U:anna:rw /etc/motd.
Now I'm using getfacl /etc/motd.
And what do we see?
We see the user Anna has been added
to read write permissions.
So let's check if that is really working
by opening a shell as user Anna,
and by using vim on ETCMOTD.
Hello world.
And as you can see, user Anna can do that.
That means that the ACL is successful.
That's all.