Hi
Before I do further digging to see what's going on I thought I'd see if this is a known issue in 25.1.
I've installed a test VM on 25.1 and when creating a new non-root user I've noticed two things:
- Even though bash is installed (via pkg install bash) and appears in /etc/shells, it doesn't appear as a shell choice in the UI.
- If I choose another valid shell it still gets written as nologin in /etc/passwd and so I can't log in as that user via SSH.
The user in question is a member of 'admins' and initially didn't have any permissions (assuming it inherited from the admins group) - I've also tried explicitly setting 'all pages' as a permission at the user level and it didn't help.
I can't see anything obvious in the logs.
Is this a bug or have I missed something obvious?
Thanks
Ben
Looks like the new code needs to be improved. I added a ticket: https://github.com/opnsense/core/issues/8155
Thanks,
Franco
Thanks.
Further input on the shell changing problem: if I change my non-root user's shell, it immediately gets set to nologin in /etc/passwd. After reboot, it is updated with the correct shell. This seems to be repeatably reproducible. I'll dig further into it later if no-one else figures out the problem first.
I tracked down the reverting nologin problem to a missing config.inc include, and added some stuff to support bash.
https://github.com/opnsense/core/pull/8156
This was fixed. Thanks for the help!