Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 09-05-2009, 09:00 AM   #1
LQ Newbie
Registered: May 2008
Posts: 29

Rep: Reputation: 15
[SOLVED] Root unable to chmod, chown or operate on specific file

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:
chmod: changing permissions of `printers.conf': Operation not permitted

Last edited by chochem; 09-06-2009 at 02:21 AM.
Old 09-05-2009, 09:08 AM   #2
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Try the command
lsattr printers.conf
to see if some special attribute has been set. If you see something like:
----i---------- printers.conf
it means the immutable bit has been set. As superuser you can remove it by issuing:
chattr -i printers.conf
If this does not solves the issue we have to investigate on the mount options of your filesystem.
Old 09-06-2009, 02:19 AM   #3
LQ Newbie
Registered: May 2008
Posts: 29

Original Poster
Rep: Reputation: 15
That was exactly what I was looking for. Thank you!


chmod, cups, permissions

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

All times are GMT -5. The time now is 01:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration