LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-19-2014, 08:15 AM   #1
anil98433
LQ Newbie
 
Registered: May 2012
Posts: 18

Rep: Reputation: Disabled
Unhappy 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
 
Old 05-19-2014, 09:52 AM   #2
abhijeetdutta
Member
 
Registered: Aug 2009
Posts: 141

Rep: Reputation: 16
are you able to create a test file?
 
Old 05-19-2014, 11:47 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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/
 
Old 05-19-2014, 03:55 PM   #4
anil98433
LQ Newbie
 
Registered: May 2012
Posts: 18

Original Poster
Rep: Reputation: Disabled
Unhappy

Quote:
Originally Posted by ondoho View Post
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.
 
Old 05-19-2014, 03:58 PM   #5
anil98433
LQ Newbie
 
Registered: May 2012
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by abhijeetdutta View Post
are you able to create a test file?
Hi Abhi,

i am able to create file inside it..
 
Old 05-21-2014, 08:10 AM   #6
anil98433
LQ Newbie
 
Registered: May 2012
Posts: 18

Original Poster
Rep: Reputation: Disabled
Angry /etc/services file permission problem.

can any one help me to solve my problem
 
Old 05-21-2014, 03:46 PM   #7
joe_2000
Senior Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,016

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
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"

Last edited by joe_2000; 05-21-2014 at 03:48 PM. Reason: added question for further details
 
Old 05-21-2014, 06:48 PM   #8
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Rep: Reputation: 72
Hello,

Just for verification

Code:
ls -l /etc/services
whoami
groups `whoami`
stat /etc/services
lsattr /etc/shadow
Cheers.

Last edited by ilesterg; 05-21-2014 at 06:50 PM.
 
Old 05-23-2014, 11:18 AM   #9
anil98433
LQ Newbie
 
Registered: May 2012
Posts: 18

Original Poster
Rep: Reputation: Disabled
Thnks to all.....my problem is solved ...


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


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
permission denied to change group of a file i own .... nass Debian 4 02-06-2014 04:50 AM
[SOLVED] Permission Denied When Creating File hitmen Linux - Newbie 6 07-12-2011 12:44 AM
[SOLVED] RHEL 4, /etc/sysconfig/iptables permission denied rfreiberger Linux - Newbie 4 04-07-2010 08:56 PM
permission denied to move a file? trnz$mr Slackware 3 06-05-2009 12:18 PM
corrupt file Permission denied emetib Debian 4 04-20-2008 07:12 AM

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

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