I'm currently making a FTP server and I would like to implement real authentication. I mean I have users on my system and I would like them to be able to log in my FTP server with a client (like Filezilla for instance) using their username password saved in the system.
But I don't know the steps to follow to implement this and to give good rights (impossible to delete files the user is not the owner, etc...).
I know I have to find the login/home directory in the /etc/passwd
file and I know I can find the hashed password in the /etc/shadow
file, but how are those passwords encrypted?
Once logged in, do I have to check if the user has the rights to delete/access/write files myself or is there a way to let the system know?
Thanks.