LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 09-20-2012, 03:14 PM   #1
nitinsingh
LQ Newbie
 
Registered: Sep 2012
Posts: 1

Rep: Reputation: Disabled
Post Can't edit config files


hello everyone.....
i m novice in Linux. currently i m trying to install oracle 11gR2 database on oracle enterprise linux 5 guest operating system. but before installation we have to do some post installation task in linux configuration. whenever i m trying to edit any linux configuration file its give the error " permission denied". just like....



[root@oel5 ~]# /etc/selinux/config
bash: /etc/selinux/config: Permission denied
[root@oel5 ~]# /etc/security/limits.conf
bash: /etc/security/limits.conf: Permission denied
[root@oel5 ~]#


pls help me ......
 
Old 09-20-2012, 05:13 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by nitinsingh View Post
hello everyone.....
i m novice in Linux. currently i m trying to install oracle 11gR2 database on oracle enterprise linux 5 guest operating system. but before installation we have to do some post installation task in linux configuration. whenever i m trying to edit any linux configuration file its give the error " permission denied". just like....



[root@oel5 ~]# /etc/selinux/config
bash: /etc/selinux/config: Permission denied
[root@oel5 ~]# /etc/security/limits.conf
bash: /etc/security/limits.conf: Permission denied
[root@oel5 ~]#


pls help me ......
Spell out your words. And you're getting that message, because you're not editing a file...Just typing the name.

Try putting a vi in front of the file name.
 
Old 09-20-2012, 06:49 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
i had a "preview" flash of this happening
DO NOT do this
Code:
/etc/selinux/ vi config
this as a normal user

Code:
su -
vi /etc/selinux/config
you DO know how to use "vi" ???? right
https://acms.ucsd.edu/info/vi_tutorial.html
http://cs.stanford.edu/~miles/vi.html

but " nano " should be installed and for simple short edits it is a bit easier
 
  


Reply



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
help to edit Edit my bootloader's config file from kernel prompt jagdishpandey Linux - Kernel 5 07-03-2007 06:59 AM
Suse 9.3 yast2 hangs saving boot config or edit config deh6 SUSE / openSUSE 0 07-16-2006 03:43 PM
Edit the grub config from windows? critical Linux - Software 5 04-13-2006 08:43 AM
kernel .config edit? lonecrow Linux - Newbie 8 04-06-2006 07:47 PM
scripts to edit config files twistedpair Linux - General 1 01-16-2004 12:34 PM

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

All times are GMT -5. The time now is 12:35 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