LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 09-05-2009, 10:00 AM   #1
chochem
LQ Newbie
 
Registered: May 2008
Posts: 29
Thanked: 0
[SOLVED] Root unable to chmod, chown or operate on specific file


[Log in to get rid of this advertisement]
I have a CUPS related problem and as part of my problem solving efforts I followed some misguided advice and used some program or other that should prevent the system from tampering with a configuration file. The file could now not be moved, deleted, replaced, chowned or chmoded. The advice, however, did nothing to solve the problem and I turned my attention to other things.

Now, however I need to edit the file and have in the meantime forgotten what I did to 'freeze' the file and so do not know how to 'unfreeze' it.

Any suggestions as to what I might have done and how it can be undone? Obviously we're not talking chmod or chown as neither is able to touch the file while I'm logged in as root (even though it belongs to the root user) - the reply to 'chmod 777 printers.conf' is:
Code:
chmod: changing permissions of `printers.conf': Operation not permitted

Last edited by chochem; 09-06-2009 at 03:21 AM..
linuxubuntu chochem is offline  
Tag This Post , ,
Reply With Quote
Old 09-05-2009, 10:08 AM   #2
colucix
Guru
 
Registered: Sep 2003
Location: Bologna, Italia
Distribution: OpenSUSE 11.1 CentOS 5.4 VectorLinux 6.0
Posts: 5,134
Thanked: 464
Try the command
Code:
lsattr printers.conf
to see if some special attribute has been set. If you see something like:
Code:
----i---------- printers.conf
it means the immutable bit has been set. As superuser you can remove it by issuing:
Code:
chattr -i printers.conf
If this does not solves the issue we have to investigate on the mount options of your filesystem.
linuxsuse colucix is offline     Reply With Quote
Old 09-06-2009, 03:19 AM   #3
chochem
LQ Newbie
 
Registered: May 2008
Posts: 29
Thanked: 0

Original Poster
That was exactly what I was looking for. Thank you!
linuxubuntu chochem is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
chown v/s chmod justmovedtolinux Linux - Newbie 3 10-02-2008 07:43 AM
File permissions on shared folders: a problem for chmod, chown dedeco Linux - Security 1 07-25-2008 11:15 PM
chown and/or chmod to restore permissions on files moved from another drive by root. Shay Linux - General 4 04-12-2007 09:47 AM
Root user unable to rm, mv or chmod Zoar Linux - Newbie 2 06-16-2004 11:23 PM
chmod vs chown on some root files and yes apps ergo_sum Linux - Newbie 3 11-12-2003 11:49 AM


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

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration