Bug 1165982

Summary: root home missing usual skel items
Product: [Retired] Atomic Reporter: mkovacik
Component: rpm-ostreeAssignee: Colin Walters <walters>
Status: CLOSED DUPLICATE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: jzb
Target Milestone: ---Keywords: EC2
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1214810 (view as bug list) Environment:
Last Closed: 2015-08-06 18:57:26 UTC Type: Bug
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: 1214810, 1222060, 1227096    

Description mkovacik 2014-11-20 08:06:56 UTC
Description of problem:

The root account misses the usual skel items.
This renders the root account not being configured properly.
As a side-effect some automation/orchestration frameworks might require atomic-specific workaround.
In my case, automation fails to detect the fall-back prompt: "bash-4.3# "
I've also noticed the /root directory is a symlink into /var/roothome which I think might be related. 


  bash-4.3# rpm -qf /root/
  filesystem-3.2-27.fc21.x86_64
  bash-4.3# 

  bash-4.3# ls -la /root/
  total 20
  drwx------.  3 root root 4096 Nov 19 10:48 .
  drwxr-xr-x. 23 root root 4096 Nov 19 10:48 ..
  -rw-------.  1 root root 7171 Oct 29 10:09 anaconda-ks.cfg
  drwx------.  2 root root 4096 Nov 19 10:48 .ssh
  bash-4.3#



Version-Release number of selected component (if applicable):
F21 Beta; EC2; eu-central-1; ami-4ccef851; filesystem-3.2-27.fc21.x86_64

How reproducible:
Always

Steps to Reproduce:
1. instantiate ami
2. log-in fedora user
3. sudo su -

Actual results:
system-wide skel settings not applied to root account

Expected results:
system-wide skel settings applied to root account

Additional info:
Project Atomic question: http://ask.projectatomic.io/en/question/141/root-home-missing-usual-skel-items/
Project Atomic similar discussion: https://lists.projectatomic.io/projectatomic-archives/atomic-devel/2014-November/msg00052.html

Comment 1 Joe Brockmeier 2014-11-20 17:47:31 UTC
Do you have an example of an automation/orchestration system where things don't work because of this configuration?

Comment 2 mkovacik 2014-12-11 10:59:02 UTC
(In reply to Joe Brockmeier from comment #1)
> Do you have an example of an automation/orchestration system where things
> don't work because of this configuration?
https://github.com/RedHatQE/dva ; where Paramiko failed to detect the prompt in root account; workaround: https://github.com/RedHatQE/dva/commit/d666f2607685f59fed6c6ed9f5bc0787451c6475#diff-d33064dcda1fcd69d95177adc753d69eR151

Comment 3 Colin Walters 2015-08-06 18:55:23 UTC
See https://bugzilla.redhat.com/show_bug.cgi?id=1193590

Comment 4 Colin Walters 2015-08-06 18:57:26 UTC

*** This bug has been marked as a duplicate of bug 1193590 ***