LinuxQuestions.org
Visit Jeremy's Blog.
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 01-17-2020, 04:43 AM   #1
taz.hasan
LQ Newbie
 
Registered: Oct 2018
Posts: 8

Rep: Reputation: Disabled
Non-root user cannot change own password nor can they ssh via putty


Hi

User cannot change own passwd, they gets the message:

(current) UNIX password:
passwd: Authentication token manipulation error

Also, user cannot access server via putty, they keep getting the message that the session is closed, and kicks them off straight away.
 
Old 01-17-2020, 05:45 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,622

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
So, is this a well secured and managed system that is running as expected, or a desktop system of your own that is misbehaving?
 
Old 01-17-2020, 05:58 AM   #3
taz.hasan
LQ Newbie
 
Registered: Oct 2018
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi

This is an RHEL6 VM:

[root@el6svr ~]# su - user
[user@el6svr ~]$ passwd
Changing password for user user.
Changing password for user.
(current) UNIX password:
passwd: Authentication token manipulation error

This user can login to another similar VM no problem.
I have not been able to identify any difference in permissions, ownership of files, file contents, etc.
 
Old 01-17-2020, 06:06 AM   #4
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by taz.hasan View Post
Hi

This is an RHEL6 VM:

[root@el6svr ~]# su - user
[user@el6svr ~]$ passwd
Changing password for user user.
Changing password for user.
(current) UNIX password:
passwd: Authentication token manipulation error

This user can login to another similar VM no problem.
I have not been able to identify any difference in permissions, ownership of files, file contents, etc.
Anything in syslog?

What happens when you try to change password for the user as root, so:

Code:
passwd user
 
Old 01-17-2020, 08:07 AM   #5
taz.hasan
LQ Newbie
 
Registered: Oct 2018
Posts: 8

Original Poster
Rep: Reputation: Disabled
root can change the passwd no problem, and there is nothing in the logs (messages, /var/log/secure)
 
Old 01-17-2020, 01:34 PM   #6
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Is the failure on the entry of the current password? That's what it looks like.
Are you sure the current password is being entered correctly?

Code:
$ passwd
Changing password for user user.
Changing password for user.
(current) UNIX password:  ##<< enter the current password here 
New password:
...
 
Old 01-17-2020, 01:37 PM   #7
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Why not just passwd <user>?
 
Old 01-17-2020, 01:39 PM   #8
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by 273 View Post
Why not just passwd <user>?
On my CentOS 7 system:
Code:
user@localhost$ passwd user
passwd: Only root can specify a user name.
 
Old 01-17-2020, 01:42 PM   #9
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by scasey View Post
On my CentOS 7 system:
Code:
user@localhost$ passwd user
passwd: Only root can specify a user name.
My apologies, I mean change the password when you are root.
 
Old 01-17-2020, 01:46 PM   #10
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by 273 View Post
My apologies, I mean change the password when you are root.
The OP confirmed that they could do that...change the password as root.

I still think they're missing the requirement that the old password be entered first, which does not happen when changing the password as root.
 
  


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
how to get root password of linux via ssh client or putty sanjaydhanuk Linux - Newbie 5 03-30-2016 08:00 AM
[SOLVED] sed: not this nor that nor the other thing... rm_-rf_windows Linux - General 5 03-17-2012 05:20 PM
How to change a process running in root-user to non-root user ???????????????????? narendra1310 Linux - Software 4 10-29-2009 02:11 AM
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10:28 PM
mounting hardrive via non-root and using it via non-root Paridoth Mandriva 1 11-03-2004 05:55 PM

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

All times are GMT -5. The time now is 09:00 PM.

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