LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 07-16-2012, 11:34 PM   #1
aquaboot
Member
 
Registered: May 2005
Location: Berkeley, CA.
Distribution: debain freebsd
Posts: 483

Rep: Reputation: 31
LMDE- No .bashrc or .bash_profile


Hi All,

This is the second fresh install of LMDE (burned gnome Mate version on Saturday 7/14) and I'm running Bash for all 3 users by default (verified in /etc/password). On both default installs, there was no .bashrc or .bash_profile in their home directories. Here is a sample of one of those home directories:

taddek@blvd ~ $ ls -la
total 192
drwxr-xr-x 37 userzero userzero 4096 Jul 16 20:09 .
drwxr-xr-x 6 root root 4096 Jul 14 09:25 ..
drwx------ 3 userzero userzero 4096 Jul 14 11:07 .adobe
-rw------- 1 userzero userzero 417 Jul 16 15:06 .bash_history
-rw-r--r-- 1 userzero userzero 220 Apr 10 2010 .bash_logout
drwx------ 5 userzero userzero 4096 Jul 15 20:12 .cache
drwxr-xr-x 8 userzero userzero 4096 Jul 15 20:12 .config
drwx------ 3 userzero userzero 4096 Jul 14 09:17 .dbus
drwxr-xr-x 13 userzero userzero 4096 Jul 14 13:57 Desktop
-rw------- 1 userzero userzero 28 Jul 16 20:09 .dmrc
drwxr-xr-x 2 userzero userzero 4096 Jul 14 09:17 Documents
drwxr-xr-x 2 userzero userzero 4096 Jul 14 11:41 Downloads
-rw-r--r-- 1 userzero userzero 233 Jul 14 21:07 .epiphany
-rw------- 1 userzero userzero 16 Jul 14 09:17 .esd_auth
drwx------ 2 userzero userzero 4096 Jul 14 13:57 .filezilla
drwxr-xr-x 2 userzero userzero 4096 Jul 14 11:33 .fontconfig
drwx------ 3 userzero userzero 4096 Jul 16 20:09 .gconf
-rw-r----- 1 userzero userzero 0 Jul 14 09:28 .gksu.lock
drwx------ 4 userzero userzero 4096 Jul 16 15:10 .gnome2
drwx------ 2 userzero userzero 4096 Jul 14 09:19 .gnome2_private
drwxr-xr-x 2 userzero userzero 4096 Jul 14 09:17 .gstreamer-0.10
drwx------ 2 userzero userzero 4096 Jul 14 09:17 .gvfs
-rw------- 1 userzero userzero 6778 Jul 16 20:09 .ICEauthority
drwxr-xr-x 5 userzero userzero 4096 Jul 14 11:06 .icons
drwxr-xr-x 3 userzero userzero 4096 Jul 14 21:11 .kde
drwxr-xr-x 3 userzero userzero 4096 Jul 14 10:57 .libreoffice
drwxr-xr-x 5 userzero userzero 4096 Jul 14 09:18 .linuxmint
drwxr-xr-x 3 userzero userzero 4096 Nov 26 2010 .local
drwx------ 3 userzero userzero 4096 Jul 14 11:07 .macromedia
drwxr-xr-x 3 userzero userzero 4096 Jul 14 09:30 .mate2
drwx------ 4 userzero userzero 4096 Jul 16 20:09 .mateconf
drwx------ 2 userzero userzero 4096 Jul 16 20:10 .mateconfd
drwxr-xr-x 4 userzero userzero 4096 Apr 21 10:47 .mozilla
drwxr-xr-x 2 userzero userzero 4096 Jul 15 20:12 .mplayer
drwxr-xr-x 2 userzero userzero 4096 Jul 14 09:17 Music
drwx------ 3 userzero userzero 4096 Jul 14 10:08 .nv
drwxr-xr-x 2 userzero userzero 4096 Jul 14 09:17 Pictures
drwx------ 3 userzero userzero 4096 Jul 14 10:11 .pki
-rw-r--r-- 1 userzero userzero 675 Apr 10 2010 .profile
drwxr-xr-x 2 userzero userzero 4096 Jul 14 09:17 Public
drwx------ 2 userzero userzero 4096 Jul 16 04:57 .pulse
-rw------- 1 userzero userzero 256 Jul 14 09:17 .pulse-cookie
drwxr-xr-x 2 userzero userzero 4096 Jul 14 09:17 Templates
drwxr-xr-x 2 userzero userzero 4096 Jul 14 11:15 .themes
drwx------ 4 userzero userzero 4096 Jul 14 09:29 .thumbnails
drwxr-xr-x 2 userzero userzero 4096 Jul 14 09:17 Videos
-rw------- 1 userzero userzero 118 Jul 16 20:09 .Xauthority
-rw-r--r-- 1 userzero userzero 1626 Jul 16 20:09 .xsession-errors

bash_history and .bash_logout are there but no .bashrc or .bash_profile. A / down search for both files turns up nothing. I'm used to seeing those two files user's home directory with Debian Wheezy. Anyone have any ideas?

Thanks,

ab
 
Old 07-16-2012, 11:38 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

what dotfiles are the /etc/skel directory, and what method did you use to create the users?

Evo2.

---------- Post added 2012-07-17 at 12:38 ----------

Hi,

what dotfiles are the /etc/skel directory, and what method did you use to create the users?

Evo2.
 
Old 07-17-2012, 12:10 AM   #3
aquaboot
Member
 
Registered: May 2005
Location: Berkeley, CA.
Distribution: debain freebsd
Posts: 483

Original Poster
Rep: Reputation: 31
Thanks for the response Evo2.

I used the manage users and groups app via Gnome Mate to create users with the exception of one during the install.
That one also is devoid of .bashrc and .bash_profile

Here is my /etc/skel:

taddek@blvd ~ $ ls -la /etc/skel/
total 40
drwxr-xr-x 6 root root 4096 Apr 20 06:59 .
drwxr-xr-x 160 root root 12288 Jul 16 20:42 ..
-rw-r--r-- 1 root root 220 Apr 10 2010 .bash_logout
drwxr-xr-x 3 root root 4096 Apr 21 10:47 .config
drwxr-xr-x 3 root root 4096 Nov 26 2010 .local
drwxr-xr-x 2 root root 4096 Apr 18 11:09 .mate2
drwxr-xr-x 4 root root 4096 Apr 21 10:47 .mozilla
-rw-r--r-- 1 root root 675 Apr 10 2010 .profile

-ab
 
Old 07-17-2012, 12:22 AM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

so it seems the reason is fairly clear now: there are no .bashrc or .bash_profile in /etc/skel. When using "standard" tools for creating users,
files in /etc/skel are copied into the home directory of the new user.

If you want new users to have these (or any other files) copied to their home directories, then you'll need to put them in /etc/skel before creating the user.

Cheers,

Evo2.
 
Old 07-17-2012, 07:29 AM   #5
aquaboot
Member
 
Registered: May 2005
Location: Berkeley, CA.
Distribution: debain freebsd
Posts: 483

Original Poster
Rep: Reputation: 31
Hi,

How do I get a proper copy of these files. I've seen samples online but they differ slightly.

Thanks Again Evo2
 
Old 07-17-2012, 07:59 PM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

there is no such thing as a "proper copy". What exactly do you want them to do that is not already done in the global bash config files (Eg /etc/bash.bashrc or where ever your distro keeps it)?

Evo2.
 
Old 07-17-2012, 08:13 PM   #7
aquaboot
Member
 
Registered: May 2005
Location: Berkeley, CA.
Distribution: debain freebsd
Posts: 483

Original Poster
Rep: Reputation: 31
I'm used to finding .bashrc in my home directory with Debian and putting my command aliases in there. This is throwing me off a bit. Since the /etc/bash.bashrc is for global settings how would I set a config file customizable for each user. I appreciate your insight Evo2.

Thanks,

ab

Last edited by aquaboot; 07-17-2012 at 08:15 PM.
 
  


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
.bashrc / .bash_profile /etc/profile /etc/bashrc deadeyes Red Hat 2 02-13-2010 12:22 PM
bashrc and .bash_profile happy78 Programming 5 10-19-2005 05:26 PM
bashrc or bash_profile ? ARCIS_house Linux - Newbie 6 07-21-2005 03:09 PM
.bashrc .bash_profile Soulful93 Slackware 4 05-03-2005 04:02 AM
~/.bashrc, ~/.bash_profile Sinope Linux - Newbie 6 08-17-2004 03:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 08:55 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration