Give different permission to different user in SFTP in ubuntu?

0

I have setup SFTP refereed from here and I have directory structure like following.

enter image description here

Now in my case, there are multiple users who can access files as per their privileges, as follow.

  1. Super admin - full access to all dir
  2. Admin - admin can access some dir, example one+two

Issue is, I am not able to set multiple permission to one directory, for example,

If I set permission for super-admin group 770, and now I want to set permission to /Security/one dir, I have to use chgrp (reference), then dir lost its super admin privileges.

can some please help out here.

rut2

Posted 2016-07-12T08:43:47.890

Reputation: 101

I am not really sure about the how, but I know most recent Linux systems allow you to use ACLs instead of Unix permissions. This allows for way more flexible setting of permissions and access restrictions on files and folders. I'll let people who know write actual answers though. – Nathan.Eilisha Shiraini – 2016-07-12T08:47:06.797

thank you @nathan. anyway. well I have never user ACL. but I can try that for sure, its not an issue. – rut2 – 2016-07-12T08:49:51.510

@NathanShiraini can you please send me some reference for ACL using that I can fulfill my objective? – rut2 – 2016-07-12T09:32:41.800

@NathanShiraini I was trying to manage it using ACL yesterday, but there were 2 issue, if I give rw permission to user he is not able to list from directories, and if I give him rwx permission then it is able to listing but now they have full permission. they are able to make new directories their. I don't understand why...:( – rut2 – 2016-07-13T05:39:58.553

IIRC read access to a directory is what is required to list its content, it may be different when using ACL. Try to see if there is a "list files" permission on directories, or something like that. – Nathan.Eilisha Shiraini – 2016-07-13T06:38:36.803

No answers