dimanche 8 mars 2015

Cannot update password policy for user


I am trying to update the password policy for a user. It should be as follows:



  • Must be changed every 30 days

  • Once changed, cannot be changed for 3 days

  • Must be disabled after 45 days of inactivity


I tried using the passwd command to set this up:



passwd -f -e -u -n 3 -x 30 -w 7 -i 45 theuser


After running this, I see the following error:



passwd: Only one of -l, -u, -d, -S may be specified.



Looking at this, I am only using one of those listed flags, -u. Why is passwd giving me this error?


I've been messing with the flags and cannot get this working. I also got the following error, but cannot remember what flag combo I used to get it though:



passwd: Cannot mix one of -l, -u, -d, -S and one of -i, -n, -w, -x.




Aucun commentaire:

Enregistrer un commentaire