LinuxQuestions.org
Register a domain and help support LQ
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 02-10-2008, 08:36 PM   #1
dale504
LQ Newbie
 
Registered: Jan 2008
Location: IL
Distribution: f8
Posts: 29

Rep: Reputation: 15
how di I do this?


Can any one help I want to replace the call to .baschrc to .bash_profile.and set the umask in bash_profile to 007


thanks
dale504
 
Old 02-10-2008, 08:42 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
For the second part, use your favourite text editor and edit ~/.bash_profile. I use vim, so vim ~/.bash_profile
The line to add is umask 0007

For the first part I'm not sure what you mean. Do you want non-login shells to call .bash_profile instead of .bashrc? If so, that's not practical because of the contents of each file. You could just modify your terminal's config to start login shells instead.
 
Old 02-10-2008, 08:44 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
In a console, as root, run this command: find /etc -type f | xargs grep .bashrc. That will find all references to .bashrc in /etc. The one(s) to change will probably be something like etc/X11/xdm/Xsession and /etc/X11/xdm/sys.xsession.
 
Old 02-10-2008, 09:00 PM   #4
dale504
LQ Newbie
 
Registered: Jan 2008
Location: IL
Distribution: f8
Posts: 29

Original Poster
Rep: Reputation: 15
ok I mean replace the call to .brascrc from.brash_profile. and set umask in .bash_profile to be 007!

how would i do this?
 
Old 02-10-2008, 09:25 PM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
You would do both the way I posted earlier - use your favourite text editor to make the change to ~/.bash_profile

Most distros these days already have a call to ~/.bashrc from ~/.bash_profile. Once you've opened ~/.bash_profile have a look for something like this:
Code:
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi
if you don't want .bash_profile sourced, comment out those lines.
 
  


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




All times are GMT -5. The time now is 12:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration