On Mon, 24 Feb 2020 11:40:01 -0700, Joe Zeff wrote:

> On 02/24/2020 11:23 AM, Beartooth wrote:
>>      useradd -h as root got me nothing that seemed to enable even root
>> to edit a user's data. (I tried -p and -u.) Can I do it??
> 
> Try this: first, use su - to become root.  Then, as root:
> 
> passwd $USERNAME
> 
> This will (or at least should) allow you to change the user's password
> without needing to know the old one.

        Well, I tried it:

# passwd $xxxx
Changing password for user root.
New password: 

        IOW, when I actually gave it one, it changed *root's* password, 
and I had to change that back. That's worse.
-- 
Beartooth Staffwright, Not Quite Clueless Power User
Remember I know little (precious little!) of where up is.
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to