Limit users to acces a directory


I am using Linux server. I have multiple users witth different group.

I want only the specified users to read and write into a directory and other users must not be able to read or write into the directory. How this can be done?

Look up the chown, chgrp and chmod commands.

chown lets you set ownership of a file / folder
chgrp lets you set the group of a file / folder
chmod lets you set the permissions of a file / folder, for read, write and execute on the owner, the group and ‘everyone’.


Password Protection for each directory into which clients can have (FTP) access.