Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm trying to perform password quality checks using pwqcheck (part of passwdq) in webmin.

Unfortunately when I set in "Users and Groups" module settings the "External password-checking program" to the same value that works for samba check password script:

/usr/bin/pwqcheck -1

I get following error when I try to create a user (named test-user):

Failed to save user : pwqcheck: Error parsing parameter "test-user": Invalid parameter

So, How do I configure Webmin together with pwqcheck?

share|improve this question

closed as off-topic by HopelessN00b Jan 14 at 2:59

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

    
This question appears to be off-topic because it is about working with a service provider's management interface, such as cPanel. –  HopelessN00b Jan 14 at 2:59
    
@HopelessN00b: It's about using it when I'm in full control of it, i.e. I'm the service provider it's not about using it only as a user. I think the accepted answer makes it pretty clear... –  Hubert Kario Jan 14 at 12:34

1 Answer 1

up vote 0 down vote accepted

It was caused by two related issues.

Webmin allows to set how the password and login is passed to the application (as a paramter or on standard input). This the Pass username and password to program option. That's the main reason for the error mentioned in OP.

Unfortunately it isn't possible to specify what and in which order the information is passed to the application -- that's the second problem --, it is hard-coded to either

$application "$login" "$password"

or as lines passed to standard input in the same order. Both of them are unsuitable for use with pwqcheck. With either option it is quite easy to write a wrapper though.

Provided script is for login and password on stdin:

#/bin/bash

read login
read password

/usr/bin/pwqcheck -1 <<_EOF_
 ${password}
_EOF_
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.