-
Notifications
You must be signed in to change notification settings - Fork 3
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
Users conflicts #4
Comments
Hello Actually we don't have any check about uid or account name. If user are created after alternc installation we could get uid conflict between legacy user and alternc account. |
In the meantime, I opted for a check in /etc/passwd through a new function in m_nss.php ( Koumbit@73f5332#diff-7e21c6361f269dcf996896e26b6051018ff06f6f55ebd9a47665b18cdfc2e733 I had to add a hook prior to user creation in m_admin.php so that the account is not created if the user has been found in /etc/passwd. To make this work, I also changed the apache template to add /etc/passwd in open_basdir. Probably not the best way, but it fixes my problem for now. |
Hello
I think better solution should be check uid and username directly from AlternC |
Users created under alternc are under
/var/lib/extrausers/.
In
nsswitch.conf
though, it's looking first in/etc/{shadow,passwd,group}
The result of this is having conflicts between alternC users and existing users, leading to security problems.
Using alternc-php-fpm for instance, we can see processes under the right user but with the wrong uid.
Say you have your admin user in alternc (uid 2000) and an admin user with a uid 10440, here is what you get:
10440 5768 0.0 0.8 275752 18176 ? S 18:03 0:00 \_ php-fpm: pool admin
The text was updated successfully, but these errors were encountered: