Bug 1279110

Summary: New shell user has neither .bash_profile nor .bashrc
Product: [Fedora] Fedora Reporter: Assen Totin <assen>
Component: anacondaAssignee: David Shea <dshea>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 23CC: anaconda-maint-list, assen, g.kaviyarasu, jonathan, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-09 22:48:38 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:

Description Assen Totin 2015-11-07 22:50:03 UTC
Description of problem:
When a shell user is created by Anaconda during setup, it has neither .bashrc nor .bash_profile installed. 

Version-Release number of selected component (if applicable):

How reproducible:
Every time

Steps to Reproduce:
1. Install Fedora using Anaconda.
2. Create a shell user during installation.
3. Log in with the user (or, if using GUI, open terminal). 

Actual results:
Neither .bash_profile nor .bashrc file is present in user's home directory.

Expected results:
Both .bash_profile and .bashrc should be present.

Additional info:
It is not difficult to install just a simple .bash_profile and .bashrc like Anaconda does for the root user. Without them, even the shell prompt is ugly and uninformative.

Comment 1 David Shea 2016-01-08 19:52:15 UTC
Sorry for the delay in responding. What options are you using to create the user? Can you post the logs from the installation? They are available in /tmp during the install, and copied to /var/log/anaconda on the installed system.

Comment 2 David Shea 2016-02-09 22:48:38 UTC
Anaconda, via useradd, installs everything in /etc/skel to the new user's home directory, so without logs to the contrary this appears to work fine.

Comment 3 Red Hat Bugzilla 2023-09-14 03:12:42 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days