LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   permission denied problem /etc/sysconfig file (https://www.linuxquestions.org/questions/linux-newbie-8/permission-denied-problem-etc-sysconfig-file-4175505446/)

anil98433 05-19-2014 08:15 AM

permission denied problem /etc/sysconfig file
 
Hi Team,

Whenever I am trying to edit /etc/services file (OS RHEL 5, VMware) I am getting error unable to edit in readonly mode and same error showing while moving it or deleting it. I had tried many solution however all in vain. below mentioned are details of the system.

1. selinux is disabled
2. full permission as I am root user
3. all the other files under /etc/ are editable and security context of /etc/services file are same as of other editable files.
4. chmod is also not working
5. editing through nano is also not working.
6. chattr -i also not working ...i.e. removing immutable bit from /etc/services file

please help me in this regards

Thanks
Anil

abhijeetdutta 05-19-2014 09:52 AM

are you able to create a test file?

ondoho 05-19-2014 11:47 AM

i get the strangest feeling of deja-vu, like i had already posted to this thread earlier. weird.
anyhow, try this, maybe helps:
http://www.linuxquestions.org/questi...denied-800681/

anil98433 05-19-2014 03:55 PM

Quote:

Originally Posted by ondoho (Post 5173658)
i get the strangest feeling of deja-vu, like i had already posted to this thread earlier. weird.
anyhow, try this, maybe helps:
http://www.linuxquestions.org/questi...denied-800681/

Hi dear,
I don't know about your deja-vu and the post you are talking about is totally different from current scenario which i posted here.....please tell me some consolidate solution of this problem.

anil98433 05-19-2014 03:58 PM

Quote:

Originally Posted by abhijeetdutta (Post 5173601)
are you able to create a test file?

Hi Abhi,

i am able to create file inside it..

anil98433 05-21-2014 08:10 AM

/etc/services file permission problem.
 
can any one help me to solve my problem

joe_2000 05-21-2014 03:46 PM

Is the filesystem mounted in read-only mode?
Just type
Code:

mount
to see mount options of all mounted devices. You may have to remount it in rw mode...

EDIT:
If that's not the problem please post the "some error" mentioned in your initial post. Also specify exactly where you created the "test file"

ilesterg 05-21-2014 06:48 PM

Hello,

Just for verification

Code:

ls -l /etc/services
whoami
groups `whoami`
stat /etc/services
lsattr /etc/shadow

Cheers.

anil98433 05-23-2014 11:18 AM

Thnks to all.....my problem is solved ...


----------
Thanks
Anil


All times are GMT -5. The time now is 06:21 AM.