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

libnss-extrausers user not created when customer has no ftp resources #741

Closed
mortzel opened this issue Oct 27, 2019 · 4 comments
Closed
Assignees
Projects
Milestone

Comments

@mortzel
Copy link

mortzel commented Oct 27, 2019

Summary

When running php-fpm with libnss-extrausers and creating a customer with 0 ftp account froxlor doesn't create a user and group in the extrausers files and so php-fpm crashes when a domain is created for this cusomter since there is no linux user for the domain.

This is caused because the users in the extrausers file are created from the default ftp user of the customer.

System information

Froxlor version: 0.10.3
Web server: nginx & php-fpm
DNS server: PowerDNS (standalone)
POP/IMAP server: Dovecot
SMTP server: postfix
FTP server: proftpd
OS/Version: Debian 10

Steps to reproduce

  1. Create a Customer with 0 allowed ftp accounts
  2. Add a domain to this user
@d00p
Copy link
Member

d00p commented Oct 27, 2019

When adding a new customer (even with 0 ftp users) there is always a default ftp user created (with the exact loginname as given for creation). Did you by any chance delete the default ftp user additionally (which should not be possible through the interface)?

@d00p d00p self-assigned this Oct 27, 2019
@d00p d00p added this to To do in 0.10.x via automation Oct 27, 2019
d00p added a commit that referenced this issue Oct 27, 2019
…interface though); refs #741

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
@d00p d00p changed the title libnss-extrausers user not created then customer has no allowed ftp accounts libnss-extrausers user not created when customer has no ftp resources Oct 27, 2019
@d00p
Copy link
Member

d00p commented Oct 28, 2019

Can you verify that the default ftp user for that customer exists? Also it would be necessary to know whether you've added the customer via interface or via API externally

@mortzel
Copy link
Author

mortzel commented Oct 28, 2019

When i checked the default user didn't existed and i created it. The customer was created via the interface by a reseller.

The problem occurs when all tfp accounts of the reseller are used. When creating a new customer from the reseller account there is a error message "No more resources available", but the customer is created anyway with no default ftp account.

@d00p
Copy link
Member

d00p commented Oct 29, 2019

The problem occurs when all tfp accounts of the reseller are used. When creating a new customer from the reseller account there is a error message "No more resources available", but the customer is created anyway with no default ftp account.

that was the key, thanks :)

@d00p d00p closed this as completed in 46982ad Oct 29, 2019
0.10.x automation moved this from To do to Done Oct 29, 2019
@d00p d00p added this to the 0.10.4 milestone Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
0.10.x
  
Done
Development

No branches or pull requests

2 participants