-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File owner UID in File Manager #572
Comments
@thiell If you run |
cloudcmd parses the |
Mmh, parsing What about using |
There is no security issue with this, that's common practice for defining users, there is nothing sensitive in /etc/passwd. However asking a site to take something like LDAP or AD and populate that in /etc/passwd is not practical. OnDemand should work with users not being in /etc/passwd because common Linux utilities can map users from other sources like SSSD via nsswitch. |
The commands |
This will not be done in time for 1.8 and for the 2.0 release we will replace the Files app. So will keep this slated for 2.0 and revisit when we begin work on that. I think we would want to find a way to get the relevant information in a smarter way. For example, if we must call getent we don't want to do it once for every file we will present in the interface - if all the files in a directory are owned by one user, for example and that directory contains 1000 entries, we only should call getent once, not a 1000 times. |
@treydock is getpwuid sufficient for this (man 3 getpwuid):
Is there any reason why we couldn't use the passwd struct, or just fallback to uid if the passwd struct is not available. |
You could use |
Fixed in OOD 2.0 using Etc for UID lookup |
Hello, in OOD file manager, if you click on Show Owner/Mode, it displays numeric UIDs, instead of the user names of the file owner. I wonder if this could be fixed. Thanks!
The text was updated successfully, but these errors were encountered: