LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices



Reply
 
Search this Thread
Old 11-15-2010, 11:27 AM   #1
mosabja
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 13..my 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
~/.bashrc
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"

thanks
 
Old 11-15-2010, 11:32 AM   #2
crabboy
Moderator
 
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:
Code:
. ./.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
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,563
Blog Entries: 29

Rep: Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179
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
Code:
cd
/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
Vegan
Member
 
Registered: Aug 2010
Location: Idaho
Distribution: Arch, Ubuntu, Fedora
Posts: 113
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
Code:
su
password
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
stoggy
Member
 
Registered: Jun 2008
Location: Dallas, TX
Distribution: Slackware and FC
Posts: 107

Rep: Reputation: 20
Quote:
Originally Posted by mosabja View Post
I tried to edit .bashrc in every way.i logged in as super user ...I tried the command
~/.bashrc
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
 
  


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
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 04:15 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration