Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #240679

Re: About user and password on Debian 10

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: About user and password on Debian 10
Date 2021-09-30 20:30 +0200
Message-ID <D38YG-2Rh-7@gated-at.bofh.it> (permalink)
References <D382B-2jh-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu 30 Sep 2021 at 19:25:09 (+0200), frantal@libero.it wrote:
> Try (as root, at CLI) "passwd <username>"
> 
> 
> I did. It permits to fill only the old password and then it says your password is changed. But when I reboot I have the same as I told

You're misunderstanding something. As root, you don't need to know the
old password to set a new password:

# passwd flash
New password: 
Retype new password: 
passwd: password updated successfully
# 

# passwd 
New password: 
Retype new password: 
passwd: password updated successfully
# 

The passwd man page does have a caveat:  "Users may not be able to
change their password on a system if NIS is enabled and they are
not logged into the NIS server."

BTW /etc/passwd no longer contains any passwords as it's world-readable.

Cheers,
David.

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

About user and password on Debian 10 frantal@libero.it - 2021-09-30 19:30 +0200
  Re: About user and password on Debian 10 David Wright <deblis@lionunicorn.co.uk> - 2021-09-30 20:30 +0200

csiph-web