Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11th September 2007, 10:05 PM
powah Offline
Registered User
 
Join Date: Mar 2005
Posts: 83
passwd prompts for new password only once when <enter> is pressed

When I just hit "enter" when it prompts for new password, I should get re-prompted 3 times. Instead, it reprompts once for FC 6.

# adduser admin
# passwd admin
Changing password for user admin.
New UNIX password:
BAD PASSWORD: it is WAY too short
Retype new UNIX password:
No password supplied
No password supplied
No password supplied
passwd: Authentication token manipulation error

# uname -a
Linux tulip 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:54:20 EDT 2006 i686 i686 i386 GNU/Linux
Reply With Quote
  #2  
Old 12th September 2007, 08:31 AM
brr872002 Offline
Registered User
 
Join Date: Aug 2007
Posts: 455
Use web
based admin tool webmin

yum -y install webmin
Reply With Quote
  #3  
Old 12th September 2007, 02:00 PM
powah Offline
Registered User
 
Join Date: Mar 2005
Posts: 83
How to change passwd's behavior so that it will re-prompt 3 times?
Reply With Quote
  #4  
Old 12th September 2007, 02:45 PM
giulix's Avatar
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
Given that root is the super-user, he does not need to enter the previous password: he's asked for the new password and the confirmation password only. I take it you are referring to root because the previous command is useradd, which can only be used by the super-user. If you need other modifications to the password verification/enforcement process, you'll have to dig into PAM.

hth...
Reply With Quote
  #5  
Old 12th September 2007, 06:56 PM
powah Offline
Registered User
 
Join Date: Mar 2005
Posts: 83
My desired response when nothing is entered for the password : passwd program prompt three times (New UNIX password: appeared three times).

# passwd admin
Changing password for user admin
New UNIX password:
BAD PASSWORD: it's WAY too short
New UNIX password:
BAD PASSWORD: it's WAY too short
New UNIX password:
BAD PASSWORD: it's WAY too short

passwd: Authentication token manipulation error
Reply With Quote
  #6  
Old 13th September 2007, 10:53 AM
giulix's Avatar
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
Well, it doesn't work that way... but you can change passwd and PAM configuration and have it work the way you want. That's the beauty of Linux.
Reply With Quote
  #7  
Old 13th September 2007, 03:31 PM
icydog Offline
Registered User
 
Join Date: Nov 2005
Posts: 447
When you're root and it tells you the password is too short or too simple or whatever, that's just a warning by default and not an error. So you can type "a" as password and "a" again to confirm, and it will complain but will take it anyways. I guess it chokes on no input here.
Reply With Quote
  #8  
Old 14th September 2007, 05:18 PM
powah Offline
Registered User
 
Join Date: Mar 2005
Posts: 83
Quote:
Originally Posted by giulix
Well, it doesn't work that way... but you can change passwd and PAM configuration and have it work the way you want. That's the beauty of Linux.
I am not sure which file(s) to change.
Is it /etc/pam.conf and/or /etc/pam.d/system-auth and/or another files?
Do I need to run /etc/pam.d/authconfig?
Reply With Quote
  #9  
Old 19th September 2007, 09:16 PM
powah Offline
Registered User
 
Join Date: Mar 2005
Posts: 83
I modified system-auth as follows but passwd still prompt only once when an empty password is entered.

# passwd testing
Changing password for user testing.
New UNIX password:
BAD PASSWORD: it is WAY too short
Retype new UNIX password:
No password supplied
No password supplied
No password supplied

passwd: Authentication token manipulation error

# cat system-auth
#%PAM-1.0
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth required pam_env.so
auth sufficient pam_unix.so likeauth nullok
auth required pam_deny.so

account required pam_unix.so

password required pam_cracklib.so retry=3
password sufficient pam_unix.so use_authtok nullok md5 shadow
password required pam_deny.so

session optional pam_keyinit.so revoke
session required pam_limits.so
session [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid
session required pam_unix.so
Reply With Quote
Reply

Tags
<enter>, passwd, password, pressed, prompts

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pidgin exits when enter key is pressed michmu Using Fedora 7 9th September 2008 11:44 AM
Cannot enter root password Eklectic Using Fedora 3 25th August 2007 11:24 PM
How can I eliminate password prompts BobBlum Using Fedora 20 9th April 2007 08:56 PM
password prompts gone in gnome and kde bit.shaker Using Fedora 0 26th March 2007 09:27 PM
FC2 Samba prompts for password with share security stefan_tech Servers & Networking 17 2nd September 2004 08:35 PM


Current GMT-time: 03:58 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat