I know how to create a new user on the Pi with all the same privileges as pi from this: https://raspberrypi.stackexchange.com/questions/7133/how-to-change-pi-sudo-permissions
But how do you create a user with just one file permission? I mean that I want to create a user Alice that can only edit / rm / scp / the file /etc/wpa_supplicant/wpa_supplicant.conf. I don’t want them to be able to read or modify any other files on the Pi. Is this possible?
Advertisement
Answer
I poked around a bit–mostly on other SO questions–and found this program called Jailkit, which seems to be designed to do exactly what you want.
http://olivier.sessink.nl/jailkit/
If that doesn’t help, these two answers might have hints for you. They’re not duplicate questions, but they each hold a chunk of what you might need.
To strip permissions: How to restrict a linux user to be only able to read /home/user and nothing else
To give permission to that one file: https://askubuntu.com/questions/487527/give-specific-user-permission-to-write-to-a-folder-using-w-notation