OPNsense Forum

English Forums => 25.1, 25.4 Production Series => Topic started by: Ben S on December 20, 2024, 10:58:10 PM

Title: Shell problems
Post by: Ben S on December 20, 2024, 10:58:10 PM
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:


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
Title: Re: Shell problems
Post by: franco on December 21, 2024, 09:40:29 AM
Looks like the new code needs to be improved. I added a ticket: https://github.com/opnsense/core/issues/8155


Thanks,
Franco
Title: Re: Shell problems
Post by: Ben S on December 21, 2024, 12:53:21 PM
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.

Title: Re: Shell problems
Post by: Ben S on December 21, 2024, 01:40:17 PM
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
Title: Re: Shell problems
Post by: franco on January 08, 2025, 08:19:33 AM
This was fixed.  Thanks for the help!