Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 11-15-2010, 11:27 AM   #1
LQ Newbie
Registered: Nov 2010
Posts: 4

Rep: Reputation: 0
~/.bashrc permission denied fedora 13

I am trying to install Network simulator 2.34 on fedora installation was successful. but I am unable edit my bashrc file...All I had to do was

Add all these lines into your ~/.bashrc file:
export PATH=$PATH:”/opt/ns-allinone-2.34/bin:/opt/ns-allinone-2.34/tcl8.4.18/unix:/opt/ns-allinone-2.34/tk8.4.18/unix”
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:”/opt/ns-allinone-2.34/otcl-1.13:/opt/ns-allinone-2.34/lib”
export TCL_LIBRARY=$TCL_LIBRARY:”/opt/ns-allinone-2.34/tcl8.4.18/library”"

I tried to edit .bashrc in every way.i logged in as super user ...I tried the command
it says
"permission denied"

also I cannot access the root folder When I try its also says"permission denied".

I want to know how to add these lines to .bashrc and also how will I able to open my root folder.."Also there was a similar thread about this question but it wasnt helpful to me"

Old 11-15-2010, 11:32 AM   #2
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
What are the permissions on the .bashrc file? ls -l

Try executing it this way:
. ./.bashrc
Note the leading . space. This will source the file and bring the settings into your current shell.
Old 11-15-2010, 12:43 PM   #3
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian except for netbook still on Slackware 13.37 (and I have to support Ubuntu)
Posts: 8,572
Blog Entries: 30

Rep: Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182
Please copy and paste the commands you are using and their output from a GUI terminal emulator into a post in this thread so we can clearly see what you are doing and seeing.

Please post the output of
/bin/ls -ald . .bashrc
getfacl .bashrc
grep "$( df .bashrc | grep -v Filesystem | cut -d ' ' -f 1 )" /proc/mounts
Old 11-15-2010, 03:11 PM   #4
Registered: Aug 2010
Location: Idaho
Distribution: Arch, Ubuntu, Fedora
Posts: 114
Blog Entries: 2

Rep: Reputation: 10
You need to use a text editor to edit that file. not run it as a program
Try this
gedit ~/.bashrc
add in the lines you need edited and save.

You can replace gedit with another text editor such as vim, nano, or kate
Old 11-18-2010, 01:38 AM   #5
Registered: Jun 2008
Location: Dallas, TX
Distribution: Slackware and FC
Posts: 107

Rep: Reputation: 20
Originally Posted by mosabja View Post
I tried to edit .bashrc in every way.i logged in as super user ...I tried the command
it says
"permission denied"
just putting ~/.bashrc would try to run it, like a binary or executable. Its not usually set to be executable.

you need to edit it. like was said before.

gedit ~/.bashrc
= or =
vi ~/.bashrc
= or =
nano ~/.bashrc


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
Permission denied on Fedora 12? jan1024188 Linux - Software 5 02-26-2010 05:33 AM
/root/bashrc PERMISSION DENIED when using runlevel 3 Berkut83 Red Hat 4 02-22-2010 09:44 PM
su cvs is giving .bashrc permission denied error prasad_ark Linux - Software 1 07-02-2008 06:13 AM
bashrc file access permission denied swift_a2002 Linux - Software 12 02-27-2008 07:51 PM
SU'ing to user and getting ".bashrc permission denied" chris26 Slackware 7 11-23-2006 04:36 PM

All times are GMT -5. The time now is 11:27 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration