Quantcast
Channel: Active questions tagged password - Ask Ubuntu
Viewing all articles
Browse latest Browse all 330

Prevent sudo ignore password policies [duplicate]

$
0
0

This is my /etc/pam.d/common-password file on ubuntu 22.04

password        requisite                       pam_pwquality.so retry=3 minlen=12password        [success=2 default=ignore]      pam_unix.so obscure use_authtok try_first_pass yescryptpassword        sufficient                      pam_sss.so use_authtokpassword        requisite                       pam_deny.sopassword        required                        pam_permit.sopassword        optional                       pam_gnome_keyring.so

I have user called "student" and when I run

passwd student

and try write new password that contain only 1 symbol, the password policy works and I can not do it

but when I run

 sudo passwd student

I can write only one symbol and my password will change

How to prevent sudo command to ignore password policy?


Viewing all articles
Browse latest Browse all 330

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>