LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-07-2023, 07:41 AM   #1
cdunavent
LQ Newbie
 
Registered: Sep 2023
Posts: 3

Rep: Reputation: 0
root unable to change passwd for users


I'm a new Linux admin for a a virtual machine running the following:

Code:
CentOS Linux release 7.9.2009 (Core)
Derived from Red Hat Enterprise Linux 7.9 (Source)
NAME="CentOS Linux"
VERSION="7 (Core)"
I was asked to change passwd for a few users. I'm logged in as root but get the following error:

Code:
#passwd johndoe
Changing password for user johndoe.
Password reset by root is not supported.
passwd: Authentication token manipulation error
Any ideas why root cannot change passwd for a user?
 
Old 09-07-2023, 07:51 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,656

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by cdunavent View Post
I'm a new Linux admin for a a virtual machine running the following:
Code:
CentOS Linux release 7.9.2009 (Core)
Derived from Red Hat Enterprise Linux 7.9 (Source)
NAME="CentOS Linux"
VERSION="7 (Core)"
I was asked to change passwd for a few users. I'm logged in as root but get the following error:
Code:
#passwd johndoe
Changing password for user johndoe.
Password reset by root is not supported.
passwd: Authentication token manipulation error
Any ideas why root cannot change passwd for a user?
This is your second post, and this doesn't sound like you're an admin, but someone who is doing homework. Aside from the fact that (based on your other thread) it's unlikely a company with a data-security division would make someone install a new server running an old OS, anyone who got a job as a systems administrator would know basics. What kind of environment?? Are you using centralized logins? Did you configure the system yourself, or use an install image that your 'company' uses??

Since you're an admin, you must be familiar with the nsswitch.conf file. Start there.
 
Old 09-07-2023, 08:08 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,899

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
if it is really a company and has a centralized user management system you need to ask the responsible team to manage user accounts.
But without knowing your real situation hard to say more.
 
Old 09-07-2023, 08:37 AM   #4
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 783

Rep: Reputation: 250Reputation: 250Reputation: 250
https://super-unix.com/superuser/lin...set-passwords/
 
1 members found this post helpful.
Old 09-07-2023, 11:38 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,665
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
jayjwa’s latest post nailed it …
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
passwd cmd with suid, still I can't change other user passwd. Why? Ankit yadav Linux - Newbie 8 01-22-2021 08:15 PM
[SOLVED] 'sudo passwd' vs 'sudo passwd root' Summer Deep Linux - Newbie 5 04-13-2019 11:58 AM
[SOLVED] forgot root passwd, kernel boot in single mode still asks for root passwd nass Slackware 11 05-08-2012 12:37 PM
root cannot change root passwd kamariz Linux - General 6 01-18-2012 06:49 AM
Unable to login using root after changing root password using passwd command rodimail SUSE / openSUSE 3 12-27-2011 10:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration