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

netopeer2.conf and pam_nologin.so does not exist in Yocto Scarthgap #1605

Open
capiman opened this issue Jul 8, 2024 · 3 comments
Open

netopeer2.conf and pam_nologin.so does not exist in Yocto Scarthgap #1605

capiman opened this issue Jul 8, 2024 · 3 comments
Labels
is:question Issue is actually a question.

Comments

@capiman
Copy link

capiman commented Jul 8, 2024

In my system (Yocto Scarthgap) there are the following files:

ls -la /usr/lib/security/

total 87
drwxr-xr-x 2 root root 1024 Mar 9 2018 ./
drwxr-xr-x 29 root root 8192 Mar 9 2018 ../
-rwxr-xr-x 1 root root 67176 Mar 9 2018 pam_deny.so*
-rwxr-xr-x 1 root root 67408 Mar 9 2018 pam_permit.so*
-rwxr-xr-x 1 root root 67408 Mar 9 2018 pam_umask.so*
-rwxr-xr-x 1 root root 67480 Mar 9 2018 pam_unix.so*
-rwxr-xr-x 1 root root 67400 Mar 9 2018 pam_warn.so*

https://github.com/CESNET/netopeer2/blob/1e639fe18a70b06111ad9c3ea261f27794f25f0e/pam/netopeer2.conf

says at least

pam_nologin.so

which does not exist. When I replace the 2 lines by pam_permit.so, I seem to be able to execute first commands.
But is it correct???

Does the file netopeer2.conf need updating? Or is it just a template and must be customized for each system?

@capiman
Copy link
Author

capiman commented Jul 8, 2024

I assume the same is for pam_loginuid.so, pam_keyinit.so, pam_lastlog.so and pam_motd.so,
which are also not existing...

@jktjkt
Copy link
Contributor

jktjkt commented Jul 8, 2024

There's no generic PAM config, unfortunately, so your best bet is to become your system integrator (which you really are on embedded, anyway) and adjust this application's PAM setting as you see fit.

@michalvasko
Copy link
Member

Yes, not much we can do about this, you best use your own netopeer2.conf if you want to use PAM.

@michalvasko michalvasko added the is:question Issue is actually a question. label Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:question Issue is actually a question.
Projects
None yet
Development

No branches or pull requests

3 participants