need Solution,

I need to give a permission to users to access only a specified folder and restrict access other all folder.

Need to create like FTP.

So I had created 3 users and one group (tensult), all 3 users are assigned to this group and changed the group ownership of the folder called /drive

drwxrwx--- 2 root tensult 6 Aug 14 11:19 /drive/

If users accessed by SSH or FTP, other folders can also have the access to these 3 users.

Or is there any option to set permission to groups

Please help out to solve this

  • permission that you see with ls -l are listed in 3 parts : owner/groups/others, and 3 types of right for each part, Read, Write and eXecution; in your case, your group tensult have all right on this folder – damadam Aug 14 '18 at 11:44
  • @damadam, that I know. I just want to give them access only to the specified folder and need to restrict other all folder access – Mohamed Jawad Aug 14 '18 at 11:47
  • just change the right on subdirectories, you don't have to touch this one – damadam Aug 14 '18 at 11:48
  • its not working @zwets – Mohamed Jawad Aug 16 '18 at 6:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.