Ticket #287 (closed Bug report)
LS only shows files with uid in /etc/passwd
| Reported by: | cdevidal | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | Other |
| Keywords: | Cc: | cdevidal, codesquid | |
| Operating system type: | Operating system version: |
Description
I use winbind on an SFTP server, which uses the
standard nsswitch.conf and associated libraries (so
this problem is likely to be seen with NIS or similar
services). If I use SFTP on a linux commandline or if
I use PSFTP in DOS, I see these files. But FileZilla
ignores these files. It's probably because it doesn't
look up the user/group name with the standard unix
utility getent (or with similar unix calls). All other
unix utilities I've used do this lookup.
This appears to be a bigger issue than winbind. If a
server uses NIS or something else (with settings in
nsswitch.conf), this will probably fail.
I suggest, rather than reading /etc/passwd, do 'getent
passwd' or a similar unix call. Same with groups. I
don't know if the code does this but I assume it does
based on the behavior.
/dev/idal
