LinuxQuestions.org
Help answer threads with 0 replies.
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 11-09-2009, 09:31 PM   #1
rcmonroig
Member
 
Registered: Mar 2007
Location: Chandler, AZ
Distribution: Fedora 10,12,and 14
Posts: 62
Blog Entries: 1

Rep: Reputation: 15
Unhappy user can't change user account passwd


I created several user accounts on a remote LAMP server running fedora core 10. Users logon using ssh. Their accounts have been preset with a password and they need to change that password when they first log into the server. passwd is in the /usr/bin directory with rwxr-xr-x privileges. Users try to use passwd to change their passwod and get the following message:
passwd: Only root can specify a user name.

Shouldn't users be able to change their own password?

How can I get around this?


When I eliminate the user name in the command line, passwd asks for the current password and then the new password. After I type the new password the second time it displays the following information:
passwd: Authentication service cannot retrieve authentication info
Thanks,
Ron

Last edited by rcmonroig; 11-09-2009 at 10:17 PM. Reason: additional information and clarification
 
Old 11-09-2009, 09:32 PM   #2
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
You don't. It's called security. If your machine is compromised, you can lock the user account out with root.
 
Old 11-09-2009, 09:42 PM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Yes, they are. What is the exact command that the user runs?

Code:
teboho@btd-techweb01:~$ passwd
Changing password for teboho
Old password:
Enter the new password (minimum of 5, maximum of 127 characters)
Please use a combination of upper and lower case letters and numbers.
New password: somepwd here
Re-enter new password: somepwd here
Password changed.
teboho@btd-techweb01:~$ exit
 
Old 11-09-2009, 09:44 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by rcmonroig View Post
passwd: Only root can specify a user name.

Shouldn't users be able to change their own password?
Yes, usually users should be able to change their own password. Are they calling passwd with some arguments perhaps? Are you able to change your password on this machine?

Evo2.
 
  


Reply

Tags
passwd, password



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
Not able to change passwd as normal user !!! Please help shads2k5 Linux - Server 4 10-26-2008 03:48 AM
change passwd problem against a user shipon_97 Linux - Newbie 1 09-16-2006 12:54 AM
passwd fails when trying to change user passwords tamuct Linux - Security 4 12-07-2004 12:12 PM
Disable passwd change for user account sodhilogin Linux - General 6 09-01-2004 12:43 AM
user can change passwd kelper Linux - Software 3 08-28-2003 04:17 AM

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

All times are GMT -5. The time now is 09:57 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