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

Make username resolution configurable #2

Closed
kevinreddot opened this issue Jun 12, 2018 · 0 comments
Closed

Make username resolution configurable #2

kevinreddot opened this issue Jun 12, 2018 · 0 comments

Comments

@kevinreddot
Copy link
Owner

kevinreddot commented Jun 12, 2018

getpwuid() requires /etc/nsswitch.conf, NSS libraries and, depending on NSS configuration, real /etc/passwd file available. If forsh is to be run in a chrooted environment, those files needs to be put there and always updated with the latest version. This complicates chroot environment setup and maintenance. On the other hand, getuid() call does not require any files and works fine even if no NSS-related files are available.

Make it configurable if forsh calls getpwuid for name resultion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant