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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-09-2009, 09:31 PM
|
#1
|
Member
Registered: Mar 2007
Location: Chandler, AZ
Distribution: Fedora 10,12,and 14
Posts: 62
Rep:
|
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
|
|
|
11-09-2009, 09:32 PM
|
#2
|
Member
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Rep:
|
You don't. It's called security. If your machine is compromised, you can lock the user account out with root.
|
|
|
11-09-2009, 09:42 PM
|
#3
|
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797
|
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
|
|
|
11-09-2009, 09:44 PM
|
#4
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Quote:
Originally Posted by rcmonroig
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.
|
|
|
All times are GMT -5. The time now is 04:19 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|