[PATCH] passwd ENABLE_FEATURE_PASSWD_WEAK_CHECK and weak password but still allowed to change passwd.

Tito farmatito at tiscali.it
Fri Aug 10 05:46:53 UTC 2018


On 09/08/2018 23:47, haroon maqsood wrote:
> Hi,
> 
> in case the desired behavior is to allow password change in case of this 
> feature is enabled and password is weak, please ignore my misunderstanding.
> 
> i think myuid !=0 is an unecessary check as it depends on feature 
> ENABLE_FEATURE_PASSWD_WEAK_CHECK not on myuid,
> 
> why is myuid checked here ?, the comment says non-root users are not 
> allowed to have weak passwords , can you explain ?

Hi,
Because the root user is allowed to set a weak password
if he wants to, but normal users are not allowed to set weak passwords
as password policy is mandatory for them.
Ciao,
Tito

> it shouldn't matter who the user is as long as the feature is enabled 
> the password shouldn't be week.
> 
> Thanks
> 
> Haroon
> 
> 
> 
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
> 


More information about the busybox mailing list