Bug 602308

Summary: [sshd]: User plainuser not allowed because account is locked
Product: Red Hat Enterprise Linux 6 Reporter: Alexander Todorov <atodorov>
Component: anacondaAssignee: Ales Kozumplik <akozumpl>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Banas <mbanas>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: akozumpl, ddumas, jzeleny, mbanas
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: anaconda-13.21.51-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 611865 (view as bug list) Environment:
Last Closed: 2010-11-10 19:47:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 582286, 611865    
Attachments:
Description Flags
tarball with all logs
none
syslog none

Description Alexander Todorov 2010-06-09 15:00:57 UTC
Created attachment 422587 [details]
tarball with all logs

Description of problem:
Using the new ssh feature I can't ssh to the system because the user account is locked by default. 

My ks.cfg contains:
sshpw --user plainuser secret --plaintext

and I boot with 'linux sshd ks=...'

Version-Release number of selected component (if applicable):
anaconda-13.21.50-2.el6.x86_64


How reproducible:
always

Steps to Reproduce:
1. Create a kscfg with "sshpw --user plainuser secret --plaintext"
2. Boot with 'linux sshd ks=http://...'
3. After stage2 is started try to ssh to the system.
  
Actual results:
ssh fails

Expected results:
ssh succeeds

Additional info:
Logs will be attached.

Comment 1 Alexander Todorov 2010-06-09 15:01:37 UTC
Created attachment 422588 [details]
syslog

Comment 2 Ales Kozumplik 2010-06-11 06:12:18 UTC
Fixed by 587d0d7eb6536a9f1a2cd30af6151393585b5888 in anaconda-13.21.51-1.el6.

The command should work as expected now. There were questions about giving a password to root, that's possible with something like:

sshpw --user root some_password

Comment 6 Martin Banas 2010-07-02 07:15:44 UTC
Verified on build RHEL6.0-20100701.0 with anaconda-13.21.56-1.el6.

$ ssh plainuser.eng.bos.redhat.com
plainuser.eng.bos.redhat.com's password: 
Last login: Fri Jul  2 03:12:48 2010 from vpn-8-10.rdu.redhat.com
-bash-4.1$ echo $USER
plainuser
-bash-4.1$ logout
Connection to ibm-js12-vios-01-lp1.rhts.eng.bos.redhat.com closed.

Comment 7 releng-rhel@redhat.com 2010-11-10 19:47:12 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.