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 05-24-2011, 03:50 PM   #1
tic-tac-toe
LQ Newbie
 
Registered: Oct 2010
Posts: 7

Rep: Reputation: 0
passwd -uf issues


So I'm experimenting with the passwd command to become more failure it. I created an user account that had no password to practice on. I tried using the -u option to unlock it go the response:

Cannot unlock the password for 'duplicateTest'!

Read the man page and it instructs me to add the -f option to force it to accept unlocking an account with no password but !. I type in:

passwd -uf duplicateTest

The response is:

passwd: invalid option -- 'f'

I rearranging the options and it prompted me to enter a change of finger information. Tried separating them, bracketing them ect...no dice.Can't find anything else on the net but what is stated on the man page, to add the force option. This is driving my OCD self crazy, any thoughts?
 
Old 05-24-2011, 04:28 PM   #2
GardarS
Member
 
Registered: Jun 2005
Location: Reykjavik,Iceland
Distribution: Centos 5.6 and Arch
Posts: 64

Rep: Reputation: 17
Well after going quickly through the manpage, I don't see any -f option, and that's what the error message seems to indicate.
 
Old 05-24-2011, 04:37 PM   #3
tic-tac-toe
LQ Newbie
 
Registered: Oct 2010
Posts: 7

Original Poster
Rep: Reputation: 0
-u

This is the reverse of the -l option - it will unlock the account password by removing the ! prefix. This option is available to root only. By default passwd will refuse to create a passwordless account (it will not unlock an account that has only "!" as a password). The force option -f will override this protection.

It just claims that f is an invalid option. The only thing I could have thought of is that my distribution doesn't offer that option. But, I checked and my man page has a section that is identical to the one displayed above and I am logged in 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
Problem with /etc/passwd and /etc/passwd- files linuxravindra414 Linux - Newbie 2 01-15-2011 05:17 AM
Changing LQ passwd vs changing passwd AND username. stf92 LQ Suggestions & Feedback 7 08-06-2010 09:54 AM
Swat uses PAM but changes linux passwd not samba passwd Peter@KKVS Linux - Networking 0 11-26-2006 04:20 AM
Is a Linux sys w/o any passwd's as secure as a microsoft windows sys w/no passwd? t3gah Linux - Security 4 04-22-2005 08:01 PM
passwd / shadow issues -- Authentication failed BartonOC Linux - General 2 02-12-2004 08:50 PM

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

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