Filemin icon indicating copy to clipboard operation
Filemin copied to clipboard

Able to get extended acl?

Open lordlala opened this issue 10 years ago • 20 comments

Hi. On the old java file manager you could manage the extended acl's or whatever. Is this possible or going to be possible with filemin?

lordlala avatar Oct 14 '15 17:10 lordlala

I did not check exact Java FM ACL. Can you describe what exactly you want to get?

Real-Gecko avatar Oct 14 '15 18:10 Real-Gecko

Sorry for the delay.

In the java file browser, there is a button labeled "ACL" which allows you to manipulate the extended ACL properties of a file or folder. See attached image. aclexample

lordlala avatar Oct 29 '15 15:10 lordlala

Also, maybe I am doing something wrong or it just isn't designed to do this, but when I select a folder and click on the settings icon (chmod selected), it does not pull in the current permissions. Same with the chown button. Is this by design? I would like to be able to see what the current permission are, before making changes, so it would be helpful if it pre-filled the window with the current info. I hope that makes sense.

lordlala avatar Oct 29 '15 15:10 lordlala

I don't see any unusal on screenshot that's not implemented in current version of Filemin. Maybe it is something in dropdown menu? And yes, ops like "chmod" or "chown" are multientry, that means you can select ten folders and twenty files and chmod/chown them in one go. However in such a scenario it is impossible to get current permissions/owner cause it may vary across all selected items. This issue will be resolved after I implement context menu, allowing singular entry actions.

Real-Gecko avatar Oct 29 '15 19:10 Real-Gecko

Closing due to no activity.

Real-Gecko avatar Jan 15 '16 20:01 Real-Gecko

ACL lets you set permissions on a per user / group basis not just the owner/group/other of a directory or file. https://help.ubuntu.com/community/FilePermissionsACLs Filemin does not seem to have this functionality?

For example I have a directory on my NAS with the following ACLs:

dh4@dh4-nas:~$ getfacl /pool/backups
getfacl: Removing leading '/' from absolute path names
# file: pool/backups
# owner: root
# group: root
user::rwx
user:dh4:rwx
group::---
mask::rwx
other::---

notice the user dh4 has their own permissions while root is the owner and only user with any access to the directory. ACL allows dh4 to also have read/write access. It would be nice to have a graphical way to add, remove, and set permissions for a particular user or group using posixacl.

dv-anomaly avatar May 24 '17 02:05 dv-anomaly

Latest version of Filemin supports SELinux contexts. I never worked with ACL so adding this may take some time.

Real-Gecko avatar May 24 '17 04:05 Real-Gecko

No worries, thank you for considering the feature. The example above is pretty basic, but as you can imagine provides endless possibilities for permissions.

dv-anomaly avatar May 24 '17 04:05 dv-anomaly

Yeah, seems cool, especially when you deal with shared hosting :)

Real-Gecko avatar May 24 '17 04:05 Real-Gecko

I'd like to put a $25 USD bounty on this to any developer willing to get this implemented. My requirement is 100% compatibility with posixacl, the ability to set permissions for individual users and groups.

dv-anomaly avatar Nov 15 '17 20:11 dv-anomaly

It's a cool feature to have. I like it.

Old Java File Manager had full implementation if it?

iliaross avatar Nov 15 '17 20:11 iliaross

You can take a look at this existing module. http://webmin-fsacls.sourceforge.net/en/

The interface leaves much to be desired, but it works. This should be integrated into the permissions management window or add a new context menu for acls when right-clicking an item.

dv-anomaly avatar Nov 15 '17 20:11 dv-anomaly

I will, thanks.

iliaross avatar Nov 15 '17 20:11 iliaross

I'll give it until the end of the month if you or another developer would prefer to receive the donation directly with Paypal. Otherwise I'll through it up on bountysource at the end of the month, which means they'll take that 10% fee. Thanks everyone, just let me know if you have any questions.

@qooob Yes I think the java file manager did have full compatibility as well. I haven't used it but based on screenshots it would appear so.

dv-anomaly avatar Nov 15 '17 21:11 dv-anomaly

I'm just interested in doing it..

..not doing it for $25 😂

Before the end of the month? Maybe. Can't promise though.. There is a lot on my todo.

iliaross avatar Nov 15 '17 21:11 iliaross

Well if you can always donate it back into the project or another project of you want. Either way defiantly claim it when your done. It's my pleasure to help out developers / projects when I can.

dv-anomaly avatar Nov 15 '17 21:11 dv-anomaly

Closing due to inactivity, feel free to repoen if still actual.

Real-Gecko avatar Jan 29 '18 07:01 Real-Gecko

This issue seems to have dropped off due to lack of activity. This is a really nice feature to have. We would greatly benefit from it. OpenMediaVault has one that might be useful for design/implementation inspiration. (Some screenshots from Google Search) An ACL button above the file-folder list to open the ACL view/edit window:

folder-list-acl

The ACL window itself: image

It's missing some things. For example, the file-folder list (first image) doesn't show what kind of permissions things have. "ls", for example, would give something more like what filemin already has, plus a "+" sign showing that it has ACLs, too. Also, listing all users in the ACL window makes it harder to parse what's there and what's not for long lists of users. If you wanted to keep the list of users/groups, separating them out with who has ACLs applied to them at the top would help.

dhmetros avatar Feb 14 '18 18:02 dhmetros

I would love to see this implemented.

There are two commands:

getfacl - https://linux.die.net/man/1/getfacl setfacl - https://linux.die.net/man/1/setfacl

RKDN avatar May 22 '19 20:05 RKDN

And when setting permissions it should either set the default, or have an option to also set the default. The default ALC is what's inherited by child directories.

EG: setfacl -Rm d:u:username:rwx /pool

dv-anomaly avatar May 22 '19 21:05 dv-anomaly