LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 10:31 PM   #1
rcmonroig
Member
 
Registered: Mar 2007
Location: Chandler, AZ
Distribution: Fedora 10,12,and 14
Posts: 60
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 11:17 PM. Reason: additional information and clarification
 
Old 11-09-2009, 10: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, 10:42 PM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

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, 10:44 PM   #4
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,590

Rep: Reputation: 1227Reputation: 1227Reputation: 1227Reputation: 1227Reputation: 1227Reputation: 1227Reputation: 1227Reputation: 1227Reputation: 1227
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:48 AM
change passwd problem against a user shipon_97 Linux - Newbie 1 09-16-2006 01:54 AM
passwd fails when trying to change user passwords tamuct Linux - Security 4 12-07-2004 01:12 PM
Disable passwd change for user account sodhilogin Linux - General 6 09-01-2004 01:43 AM
user can change passwd kelper Linux - Software 3 08-28-2003 05:17 AM


All times are GMT -5. The time now is 01:51 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration