linux - bash: change my own password (without using root) -
normally chpasswd great job @ setting users password.
is there way non-privileged user may change own password?
i interested in writing gtk front end this, best if requires users old password well.
change $user password? old password [ ] new password [ ] new password again [ ] [cancel] [apply]
looking for
$command $enter:oldpass $enter:newpass password updated
of course there is, here tutorial of password in linux
and solution is
task: set or change user password type passwd command follows change own password: $ passwd output: changing password vivek (current) unix password: enter new unix password: retype new unix password: passwd: password updated user first prompted his/her old password, if 1 present. password encrypted , compared against stored password. user has 1 chance enter correct password. super user permitted bypass step forgotten passwords may changed. new password tested complexity. general guideline, passwords should consist of 6 8 characters including 1 or more each of following sets: lower case alphabetics upper case alphabetics digits 0 thru 9 punctuation marks
Comments
Post a Comment