LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't edit config files (https://www.linuxquestions.org/questions/linux-newbie-8/cant-edit-config-files-4175428271/)

nitinsingh 09-20-2012 04:14 PM

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 ......

TB0ne 09-20-2012 06:13 PM

Quote:

Originally Posted by nitinsingh (Post 4785357)
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.

John VV 09-20-2012 07:49 PM

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


All times are GMT -5. The time now is 12:06 PM.