LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-2020, 09:47 PM   #1
Severny
LQ Newbie
 
Registered: Oct 2017
Posts: 3

Rep: Reputation: Disabled
Terminal using bashrc settings under root but not user in LXDE


Hi,

When I use the linux terminal under root I get all the bashrc settings - colour - aliases etc but when logged in under User I don't. The .bashrc file in in the root directory but no in my home directory. Just wondering how I can fix this.

Julian
 
Old 05-24-2020, 10:11 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.8.2003
Posts: 5,350

Rep: Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004
Create a .bashrc for that User. That should have happened when you created the user. How did you do that?
 
1 members found this post helpful.
Old 05-24-2020, 11:08 PM   #3
Severny
LQ Newbie
 
Registered: Oct 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Many thanks scasey - I copied the .bashrc file from the root dir to my home dir and it worked. I didn't know you could have more that one .bashrc file on the system. I didn't create a user a but just followed the default settings during the LXDE installation. Would the fact that my home directory is on a separate partition have anything to do with the .bashrc issue
Cheers
Julian
 
Old 05-24-2020, 11:22 PM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.8.2003
Posts: 5,350

Rep: Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004
It’s mostly about the fact that each user has its own home directory. Each user has their own .bashrc in that directory.
And I would expect that $HOME for root (/root) would be on a different partition than the user’s (/home/user)

Last edited by scasey; 05-24-2020 at 11:24 PM.
 
Old 05-25-2020, 12:06 AM   #5
Severny
LQ Newbie
 
Registered: Oct 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank very much for your explanation. I feel like I am poking around in the dark most of the time.
Cheers
Julian
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] /etc/bashrc ,dircolors and /root/.bash_profile ,/.bashrc not exist in LFS-7.5(sec9.3) jaassi Linux From Scratch 2 09-20-2014 06:04 PM
~/.bashrc, /etc/bash.bashrc files not read? Tachtory Slackware 3 01-04-2014 01:25 AM
[SOLVED] How to use my /home/kangjoo/.bashrc rather than root/.bashrc kangjoo.lee Linux - Newbie 2 11-05-2012 04:38 PM
Setting path: /etc/profile, /etc/bashrc or ~/.bashrc Swakoo Linux - General 1 08-07-2007 11:59 PM
Gaim connects under root but not under user? wstcoaster07 Linux - Software 6 09-30-2005 11:22 AM

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

All times are GMT -5. The time now is 10:58 PM.

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