Skip to content
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

--owner does not recognize my username or group #781

Closed
eflyon opened this issue Jun 24, 2021 · 2 comments
Closed

--owner does not recognize my username or group #781

eflyon opened this issue Jun 24, 2021 · 2 comments
Labels

Comments

@eflyon
Copy link

eflyon commented Jun 24, 2021

Describe the bug you encountered:

I get errors about my user and group not being recognized when I try to use them in an --owner search. Some users and groups are recognized, which appear to be only those described in /etc/passwd or /etc/group (root, service users). My user and group come from Active Directory.

elyon$ fd -o root
foo/baz
elyon$ fd -o elyon
[fd error]: 'elyon' is not a recognized user name
elyon$ fd -o :foobar
[fd error]: 'foobar' is not a recognized group name
elyon$ fd -o sssd . /etc
/etc/sssd
elyon$ id
uid=14485(elyon) gid=14034(foobar)

Describe what you expected to happen:
Expected success, as with sssd in example above.

What version of fd are you using?

fd 8.2.1 (from fd-v8.2.1-x86_64-unknown-linux-musl.tar.gz in Releases)

Which operating system / distribution are you on?

Linux 3.10.0-1160.31.1.el7.x86_64 x86_64
Red Hat Enterprise Linux Workstation 7.9 (Maipo)

@eflyon eflyon added the bug label Jun 24, 2021
@tmccombs
Copy link
Collaborator

fd uses the rust-users crate to lookup the user, and that in turn calls getpwnam_r. I'm not sure why that wouldn't return the uid for your user.

@eflyon
Copy link
Author

eflyon commented Jun 28, 2021

As you suggest, it appears to be a musl/rust-users problem. I did a build with glibc (couldn't use the released one because it required a newer glibc than the target system provided), and the problem went away.

ogham/exa#671 (comment) has more detail.

@eflyon eflyon closed this as completed Jun 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants